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

@@ -42,4 +42,9 @@
<!-- Radius of the shadow. -->
<attr name="android:shadowRadius" />
</declare-styleable>
<declare-styleable name="PercentageBarChart">
<!-- Background color -->
<attr name="emptyColor" format="color" />
</declare-styleable>
</resources>