Electricity meter-like view - Android

僤鯓⒐⒋嵵緔 提交于 2019-12-11 21:13:15

问题


I am trying to include a widget / view in my Android app that displays a number and when the number is incremented, the new number slides into view as if each digit was on a rolling dial. In the UK (at least), electricity meters work in this way. Examples would be:

See app image of https://play.google.com/store/apps/details?id=ie.esb.app.android

See screenshots of http://www.appszoom.com/android_applications/lifestyle/using-the-power-meter-in-tokyo_vvfi.html

A Google image search for "android electricity meter view" also brings up some similar results.

On iOS, the Nike+ FuelBand app shows their fuel points on the same dial:

I'm not even sure I know what to call those things. I am told that they were originally called a "Digital Clock", but that is obviously not a good thing to search for. Does Android code exist for one somewhere already?

Otherwise I think I could create one by sliding Fragments in and out of view, perhaps using a ViewPager. Would this be a good way to go about this problem?


回答1:


Actually, I call it DigitalView, using ScrollView as every bit to implement slide effect.



来源:https://stackoverflow.com/questions/21133871/electricity-meter-like-view-android

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