OSDN Git Service

Fixes in UsageBarPreference
authorGilles Debunne <debunne@google.com>
Fri, 6 May 2011 21:12:13 +0000 (14:12 -0700)
committerGilles Debunne <debunne@google.com>
Fri, 6 May 2011 21:12:15 +0000 (14:12 -0700)
commit783be0a24f328d7e781b5765b7688c55fb24c89c
tree07177f571eefff9e23f9db444ddaed1846f92e96
parent934d21dc2a30a1ec985ece13f9b95599ba56fdd7
Fixes in UsageBarPreference

The widget layout that was used resulted in a clipped usage bar.
It also had a 6dip left offset inherited from the default layout
which adds margin after the text (even if the text is empty here).
Used a custom layout for the whole preference to fix this issue.

Other fixes in the drawing code to prevent accumulative rounding
issues.

Change-Id: Ief9bf85260345355615c9670624d86f0893eb2d2
res/layout/preference_memoryusage.xml
src/com/android/settings/deviceinfo/Memory.java
src/com/android/settings/deviceinfo/PercentageBarChart.java
src/com/android/settings/deviceinfo/UsageBarPreference.java