开发者

Make meter in Android

开发者 https://www.devze.com 2023-03-08 17:25 出处:网络
I\'m newbie and i\'m making small application for Android. I would like to display a meter to show CPU开发者_StackOverflow usage.

I'm newbie and i'm making small application for Android. I would like to display a meter to show CPU开发者_StackOverflow usage. I already get CPU usage but do NOT know how to make the meter like that: http://vb2.upanh.com/thumbpic/22.878.29891111.asR0/capture.700x0.jpg

Somebody help me! Thanks all.


GeekYouUp's Battery Widget includes a simple example of creating a graph/meter somewhat similar to the example posted. It's code and graphics are available at code.google.com/p/batterywidget/

Where will is the meter graphic to appear? On a main activity screen? In the taskbar? In an app widget? Live wallpaper?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号