Waza_Be
Waza_Be

Reputation: 39558

Creating a graph similar to Battery usage in Gingerbread

I just wanted to create a trend in my activity that would look like the Gingerbread battery one (see picture above)

I am looking deeply in the Android git and found what seem to be the correct activity

Unfortunately, I cannot find something related to canvas or drawing and how I can use this code to create my own trend.

If someone could point me where I could find the drawing process or point me another open source sample with a trend activity, would be very helpful.

enter image description here

Upvotes: 3

Views: 689

Answers (1)

Erich Douglass
Erich Douglass

Reputation: 52002

I believe the graphing is handled by BatteryHistoryChart.java.

Upvotes: 1

Related Questions