3

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

jonsca
  • 10,218
  • 26
  • 54
  • 62
Waza_Be
  • 39,407
  • 49
  • 186
  • 260

1 Answers1

1

I believe the graphing is handled by BatteryHistoryChart.java.

Erich Douglass
  • 51,744
  • 11
  • 75
  • 60
  • @user3233280 check this link:https://github.com/android/platform_packages_apps_settings/blob/master/src/com/android/settings/fuelgauge/BatteryHistoryChart.java – hasanghaforian Jan 06 '15 at 18:08
  • @Erich Douglass i m using this link for graph but GraphViewSeries class is not present in this library how can i resolve ?https://github.com/jjoe64/GraphView – user3233280 Jan 06 '15 at 18:27