How to implement a wheel widget like on an iPhone?

I would like to implement a widget with time settings similar to one iPhone ( http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/art/ui_datetimepicker.jpg ).

  • Should I use GlSurfaceView or just extend the View?
  • Should I do this as a composite view (it will consist of several views) or draw everything on canvas in onDraw?
  • If I do not extend GlSurfaceView, how to do (smooth) animations? Run Thread and call postInvalidate ()?
+6
android android widget
source share
3 answers
+6
source share

I posted my code for the animated wheels widget here:

http://code.google.com/p/smooth-wheel/

+3
source share

@mbaird's answer seemed to support afaik animation in 2.0 through their demo slot machine. Are these the types of animation you are looking for?

0
source share

All Articles