Refactor memory measurement

Move out all the memory measurement to a separate class that can cache
all of its data through orientation changes.

Tweak the display to make it draw large squares for the legend instead
of a 1x1 square. Add padding to the percentage bar chart.

Change-Id: I4cd5bc4ba31a422a55740e8f58e5e571cf9866a5
This commit is contained in:
Kenny Root
2010-12-13 16:23:57 -08:00
parent c88a7ff1ef
commit e4330890d6
6 changed files with 610 additions and 284 deletions

View File

@@ -22,5 +22,7 @@
android:gravity="center_vertical"
android:id="@+id/percentage_bar_chart"
android:paddingRight="?android:attr/scrollbarSize"
android:textAppearance="?android:attr/textAppearanceMedium">
android:paddingTop="6dip"
android:paddingBottom="6dip"
emptyColor="@color/memory_avail">
</com.android.settings.deviceinfo.PercentageBarChart>