android仿ios的时间滚动控件WheelView
来源:互联网 发布:淘宝怎样买枪 编辑:程序博客网 时间:2024/04/30 08:26
效果图这样的:
根据开源的https://github.com/chemalarrea/Android-wheel改编的
将WheelView移动到自己的项目中
在布局文件中:
<LinearLayout android:layout_width="200dp" android:orientation="horizontal" android:layout_gravity="center_horizontal" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:textColor="#000000" android:textSize="16sp" android:text="时间:" /> <com.sds.smarthome.widget.wheeltime.WheelView android:id="@+id/wv_hour" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /> <com.sds.smarthome.widget.wheeltime.WheelView android:id="@+id/wv_minute" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /> </LinearLayout>
一个代表小时一个代表分钟
wvHour.setAdapter(new NumericWheelAdapter(00, 24));
wvHour.setLabel(“时”);
其实很简单吧
0 0
- android仿ios的时间滚动控件WheelView
- Android 仿iOS时间选择器自定义WheelView
- android仿ios时间控件
- android仿ios时间控件
- WheelView滚动选择控件
- 关于时间控件WheelView的用法体验
- 自定义时间选择控件(仿ios滚动效果)
- Android View 滚动的轮子-WheelView
- Android自定义图文混合滚动控件(基于WheelView修改)
- 学习笔记:实现二维的滚动选择控件WheelView
- android WheelView时间选择器
- Android 自定义控件WheelView
- Android滚轮控件WheelView
- WheelView Android滚轮控件
- 自己实现个Android下仿IOS的时间选择器、时间控件Time-Selector
- 仿网易ios滚动条控件的实现
- Android 时间滚动控件
- Android 滚动的时间日期选择控件
- canvas:利用js遍历绘制七巧板
- 落叶枫桥LOGO
- 关系型数据库基础第一章
- IPC-消息队列
- jdbc Access mdb Driver
- android仿ios的时间滚动控件WheelView
- oC语言 复合
- Linux文件系统与挂载
- POJ-1952 BUY LOW, BUY LOWER(线性DP)
- ORM框架中用枚举类型enum来接收数据库中的tinyint字段
- 如何使用hadoop对海量数据进行统计并排序
- Qt中对象序列化的实现
- Masonry介绍与使用
- 简单数据查询