如何实现车轮部件像iPhone? [英] How to implement wheel widget like in iPhone?
本文介绍了如何实现车轮部件像iPhone?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想实现一个时间设置轮部件像一个iPhone有(<一个href="http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/art/ui_datetimepicker.jpg">http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/art/ui_datetimepicker.jpg).
- 我应该使用GlSurfaceView或者只是延长查看?
- 我应该让它作为一个复合视图(它将包含若干意见),或在OnDraw中画上的所有印刷品吗?
- 在情况下,我将不会延长GlSurfaceView,怎么办(平滑)动画?启动一个线程,并调用postInvalidate()?
解决方案
HTTP: //$c$c.google.com/p/android-wheel/
I would like to implement a time settings wheel widget like the one iPhone has (http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/art/ui_datetimepicker.jpg).
- Should I use GlSurfaceView or just extend View?
- Should I make it as a compound View (it would consist of several Views) or draw everything on the Canvas in onDraw?
- In case I won't extend GlSurfaceView, how to do (smooth) animations? Start a Thread and call postInvalidate()?
解决方案
http://code.google.com/p/android-wheel/
这篇关于如何实现车轮部件像iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文