Move percentage to left of battery
Original mocks had the percentage on the left side of the battery... So I made it so. Test: visual Bug: 32539932 Change-Id: I311255777b74c2ff74e36c78cbe1b4b9743ec337
This commit is contained in:
@@ -25,5 +25,5 @@
|
||||
android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:gravity="center_vertical|start"
|
||||
android:paddingStart="@dimen/battery_level_padding_start"
|
||||
android:paddingEnd="@dimen/battery_level_padding_start"
|
||||
/>
|
||||
|
||||
@@ -181,6 +181,7 @@ public class BatteryMeterView extends LinearLayout implements
|
||||
if (mTextColor != 0) mBatteryPercentView.setTextColor(mTextColor);
|
||||
updatePercentText();
|
||||
addView(mBatteryPercentView,
|
||||
0,
|
||||
new ViewGroup.LayoutParams(
|
||||
LayoutParams.WRAP_CONTENT,
|
||||
LayoutParams.MATCH_PARENT));
|
||||
|
||||
Reference in New Issue
Block a user