OSDN Git Service

Align bottom text with battery graph in RTL layout.
authorFan Zhang <zhfan@google.com>
Fri, 29 Jul 2016 20:35:41 +0000 (13:35 -0700)
committerFan Zhang <zhfan@google.com>
Fri, 29 Jul 2016 20:35:41 +0000 (13:35 -0700)
commitdd5469e48898a23894b363dbc1d22d3f7af50796
treee3f2dade70cccc03cc2aa23a41710324ea32e484
parent7f37f2693f292f66537757ceeb6d43da4d0c4c3f
Align bottom text with battery graph in RTL layout.

Bug: 30161009

Bottom text (estmitated remaining battery time) should be stay under the
battery graph in RTL. To help alignment, we use a spacer view to the
left or right of text depending on layout direction.

Change-Id: Iaf706c1a963246e7f04764e5f24e6cb4bf3d2bbf
packages/SettingsLib/res/layout/usage_view.xml
packages/SettingsLib/src/com/android/settingslib/graph/UsageView.java