OSDN Git Service

Change battery icon to the side of bt icon
authorjackqdyulei <jackqdyulei@google.com>
Wed, 6 Sep 2017 23:38:23 +0000 (16:38 -0700)
committerjackqdyulei <jackqdyulei@google.com>
Wed, 13 Sep 2017 20:22:47 +0000 (13:22 -0700)
commit98b7fdbd5c11af30afdf147d0c4cc44fe4ef240a
tree4511de023075ca21a4a83be7b9208df3b6e8c34d
parent406042a5be6f06c57f9e76858b5535c5197f5515
Change battery icon to the side of bt icon

Also add a new parameter to control the size of battery icon at
the side.

In spec the height of battery icon should be 55% of the bt icon.
Since bt icon has different natural margin in its vector drawable.
This cl adds a padding and then change the ratio to 75%.

Bug: 65397557
Test: RunSettingsLibRoboTests

Change-Id: I442149392edcec2ee23f651232ffe3e204badc38
packages/SettingsLib/res/values/dimens.xml
packages/SettingsLib/src/com/android/settingslib/graph/BatteryMeterDrawableBase.java
packages/SettingsLib/src/com/android/settingslib/graph/BluetoothDeviceLayerDrawable.java
packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/BluetoothDeviceLayerDrawableTest.java
packages/SystemUI/res/drawable/ic_qs_bluetooth_connected.xml
packages/SystemUI/res/layout/qs_detail_item.xml
packages/SystemUI/res/values/dimens.xml
packages/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java