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

Experts say it's possible to hijack a plane using in-flight WiFi

Information security consultant Ruben Santamarta h...

Nexus and compact cameras couldn't save HTC from rapid decline

HTC released a number of new products in New York...

If you want to make smart hardware, listen to these four pieces of advice

[[131781]] In recent years, Sinovation Ventures h...

Shocked! The prototype of "Patrick Star" is so indescribable!

When it comes to stars, you may first think of Pa...

How to analyze live streaming traffic!

There are two topics today. The first one is &quo...

Net profit fell by 60%, iFlytek has difficulty telling the ChatGPT story

iFlytek’s unsatisfactory performance in 2022 did ...

How to write a new media marketing promotion plan?

What role does new media marketing play? How to s...

How does Meituan trick its members?

The Double 11 and Double 12 carnival is over, are...

Cloud data centers need infrastructure as code (IaC)

The widespread adoption of hardware virtualizatio...