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

What improvements would you like to see on the 2019 iPhone?

In 2017, Apple first launched the iPhone X with a...

How to use fastboot to flash the original image to Android

If your phone has an unlocked bootloader, you can...

Why is it that when someone tries to look cool, it easily offends others?

Many netizens teased him and immediately began to...

Short video operation: 20 rules for explosive growth in short video advertising!

Brand advertisers want to achieve results, and pe...

Goodbye WeChat! My WeChat chat history is not worth 180 yuan

Saving and migrating WeChat chat history has alwa...

Seven details determine whether you can be a successful entrepreneur

[[154346]] Now is an era of entrepreneurship for ...

WeChat Mini Program Development Process, How to Develop WeChat Mini Program?

WeChat Mini Programs are favored by many companie...

What knowledge do you need to learn to be a programmer?

Anyone who asks this question should be beaten, d...