How to implement wheel widget like in iPhone?
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 Vie开发者_如何学JAVAw (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/
I've put my code for an animated wheel widget here:
http://code.google.com/p/smooth-wheel/
the answer @mbaird gave seems to support animations afaik in 2.0 via their slot machine demo. is this the kind of animation you are looking for?
精彩评论