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

Fangduoduo: Organizational management upgrade behind the transformation

Fangduoduo: Organizational management upgrade beh...

Review of the "User Growth Fission" experiment!

Activity review framework: 1. Background (What is...

MH370 found? Mystification or technological breakthrough?

More than seven years later, news about Malaysia ...

In addition to LeTV, which other video websites are making mobile phones?

As a video website for mobile phones, LeTV is by ...

Don’t worry if you lose your phone! Apple Pay explained

After nearly two years of release and various twis...

How to build private domain traffic from 0 to 1

In recent years, private domain traffic has been ...

Source code advanced analysis of the lifecycle component principle

[[421728]] Preface How to use the classes provide...

5 ways to master social media operations!

It is easy to build a good community, but it is n...