开发者

How to implement wheel widget like in iPhone?

开发者 https://www.devze.com 2023-01-17 01:46 出处:网络
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).

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).

  1. Should I use GlSurfaceView or just extend View?
  2. Should I make it as a compound Vie开发者_如何学JAVAw (it would consist of several Views) or draw everything on the Canvas in onDraw?
  3. 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?

0

精彩评论

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