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

Android uses Retrofit 2 to implement multiple file uploads

Some time ago, I translated Future Studio's R...

User operation: How to perform user segmentation reasonably?

User stratification is the result of business ope...

Advertising | Analysis of the mobile advertising market in Q3 2020

Important holidays are concentrated in Q3, which ...

Strong science popularization│Brother dei: Are you a hamster or a gopher?

Hello, your little cutie is online~ How about it,...

Amber: Amber that sinks into the earth is the spirit that freezes time.

The protagonist of this issue is an organic miner...

Unexpectedly, the "fighter" among fish also has a soft side

Produced by: Science Popularization China Author:...

Tips for B Station UP Masters to Sell Products

Nowadays, traffic costs are gradually rising and ...