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 secrets does the observatory in "La La Land" hide?

Author: Du Lian Audit│Ding Yi Editor: Zhao Jingyu...

Community operation: How to achieve traffic fission within the community?

The author was one of the initial product manager...

Overall planning scheme for Tik Tok short video operations!

Tik Tok short videos are very popular, and both i...

Linux server web environment deployment practice

Chapter 0: Course Introduction 0.1: Course Introd...

The conversion rate is too low! How to write product introduction copy?

Recently I saw an activity called “100-Day Progre...

How to build a high-quality community? 5 elements!

After the activities end, many communities become...

No need for surgery? This technology can "freeze" breast tumors to death!

Breast cancer is the most common cancer affecting...

Why did Li Xiang of CHJ Automotive build a range-extended hybrid car?

Recently, Li Xiang of CHJ Automotive Group offici...

Why are cats the only ones among the cat family that become human pets?

I believe that many cat owners would think that c...

Interpretation of APP advertiser behavior big data in 2017

The data shows that compared with the historical ...

Apple releases latest operating system, Siri can learn to quack like a duck

As long as you upgrade to Apple’s latest iPhone o...