创建类似于姜饼电池使用图 [英] 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)
我在<一个深深的看href=\"http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/fuelgauge/PowerUsageSummary.java;h=ea28c595c8bfbcfb229ccf0088465aadef254e39;hb=HEAD\"相对=nofollow> Android的混帐,并发现了什么似乎是正确的活度
I am looking deeply in the Android git and found what seem to be the correct activity
不幸的是,我无法找到相关的帆布或绘制的东西,我怎么能使用这个code创建自己的潮流。
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.
推荐答案
我相信图形由<一个处理href=\"http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/fuelgauge/BatteryHistoryChart.java;h=23107da8f4fa33d4f2aa25c65a40c89f0859d9a8;hb=HEAD\"相对=nofollow> BatteryHistoryChart.java 。
这篇关于创建类似于姜饼电池使用图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!