Android Pulley

Android Pulley

Source code introduction

Android imitates iOS a pulley

Source code running screenshot

Source code snippet

  1. final WheelView hours = (WheelView) findViewById(R.id.hour);
  2. hours.setViewAdapter( new NumericWheelAdapter( this , 0 , 23 ));
  3. hours.setCyclic( true ); //wheel cycle  
  4.           
  5.           
  6. final WheelView mins = (WheelView) findViewById(R.id.mins);
  7. mins.setViewAdapter( new NumericWheelAdapter( this , 0 , 59 , "%02d" )); // Fill in " "%02d" " exactly two digits 0-》00  
  8. mins.setCyclic( true );

Source code link: http://download..com/data/1968336

<<:  Come and join 51CTO's offline open class: guide you to build high-quality mobile apps and win iPad mini and other prizes!

>>:  bmob personal lost property application_app development template

Recommend

BlackBerry and Waterloo: The story of a company and a city

Waterloo is a small city in southern Ontario, Can...

Analysis of competitive products of community group buying products

As social e-commerce has developed to the present...

Is it necessarily the result of staying up late if you have “panda eyes”?

Key Points ★ Staying up late does affect dark cir...

How to operate and plan an offline event?

I participated in a two-day and one-night offline...

A complete 5-step program for user growth!

This article’s 95-point growth plan is mainly div...

Tencent advertising promotion quantity, time and basic overview!

1.How many ads can one account create? In one acc...