源码简介
Android仿的ios一个滑轮
源码运行截图
源码片段
final WheelView hours = (WheelView) findViewById(R.id.hour);
hours.setViewAdapter(new NumericWheelAdapter(this, 0, 23));
hours.setCyclic(true);//轮子循环
final WheelView mins = (WheelView) findViewById(R.id.mins);
mins.setViewAdapter(new NumericWheelAdapter(this, 0, 59, "%02d")); // 补齐“ "%02d" ” 正好两位数0-》00
mins.setCyclic(true);
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
源码链接:http://down.51cto.com/data/1968336