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

Is it reliable to find a partner through body odor?

Our body odor stores a wealth of biological infor...

Foxconn says it won't run away, but suspicions persist

The topic of manufacturing has attracted particul...

Short video competitor analysis

The short video field is undoubtedly the hottest ...

Programmatic Advertising Quantitative Evaluation Revenue Indicator - eCPM

This article will share with you how to improve &...

Shennongjia National Park: A natural wonderland at 31° north latitude

Shennongjia Park, a national AAAAA-level tourist ...

Guangdiantong backend operation guide!

Recently, many newbies have turned to information...

Why do all mobile phones, not just iPhones, prefer one-piece bodies?

If you pay attention to the new phones released in...

China’s first space lesson on the space station was so exciting!

According to the China Manned Space Engineering O...

Can an air fryer really cook out of thin air?

Fried chicken legs, fried meatballs, fried fish, ...

Selling hot products = building a brand? Don’t call selling goods a brand

This year is truly the year of brands. Everyone s...

Learn the correct method to improve exposure!

My friends, I believe many of you are worried abo...

Unreal Engine UDK official video tutorial

Unreal Engine UDK official video tutorial resourc...