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

How much does it cost to join a makeup app?

How much does it cost to join a makeup mini progr...

What do foreign media say about Microsoft's unification?

[[133464]] Arstechnica: Microsoft is very ambitio...

It’s 2020, but I still want to buy a 4G phone

It's interesting to say that as an editor of ...

Import open source libraries into projects built on Android Studio

[[126313]] Since Google released the official ver...

What is the best way to kill rabbits? Detailed instructions for reference

Many people like to eat rabbit meat, but it is no...

How to write an event planning proposal? These elements are essential!

Do you hope that the event will become a hit? Tha...

No bragging! Teach you how to promote millions of users at zero cost (Part 1)

A blind cat catches a dead mouse How did we do it...

5 Top Traffic Video Marketing and YouTube Video Production Tutorials

For many foreign trade people, video marketing is...

How to build a product operation data indicator system!

In the era of big data, the importance of data in...

What's a good gift to give to girls on 520? What gift should I give to a girl?

The romantic 520 is a holiday that every girl lik...

What is a 404 page? How to set up a 404 page?

Many times when we visit a certain page of the we...