Creating a graph similar to Battery usage in Gingerbread

孤街醉人 提交于 2019-12-10 21:39:31

问题


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.


回答1:


I believe the graphing is handled by BatteryHistoryChart.java.



来源:https://stackoverflow.com/questions/5587725/creating-a-graph-similar-to-battery-usage-in-gingerbread

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!