This is a picker view for android , support linkage effect, timepicker and optionspicker.(时间选择器、省市区三级联动)
This is a picker view for android , support linkage effect, timepicker and optionspicker.(时间选择器、省市区三级联动)
Wiki文档,Wiki文档,Wiki文档 !~ 重要的事情说三遍
交流群1: 387051294(已满)
交流群2: 219962328(已满)
这是一款仿iOS的PickerView控件,有时间选择器和选项选择器,新版本的详细特性如下:
——TimePickerView 时间选择器,支持年月日时分,年月日,年月,时分等格式。
——OptionsPickerView 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动 。
compile 'com.contrarywind:Android-PickerView:4.1.9'或者
<dependency>
<groupId>com.contrarywind</groupId>
<artifactId>Android-PickerView</artifactId>
<version>4.1.9</version>
<type>pom</type>
</dependency>//时间选择器
TimePickerView pvTime = new TimePickerBuilder(MainActivity.this, new OnTimeSelectListener() {
@Override
public void onTimeSelect(Date date, View v) {
Toast.makeText(MainActivity.this, getTime(date), Toast.LENGTH_SHORT).show();
}
}).build();…………compile 'com.contrarywind:wheelview:4.1.0'xml布局:
<com.contrarywind.view.WheelView
android:id="@+id/wheelview"
android:layout_width="match_parent"
android:layout_height="wrap_content" />Java 代码:
…Copyright 2014 Bigkoo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.几个错误的农历数据
更新 province.json 的操作方法,获取最新版的省市区数据
自定义布局, wheelview 写在布局文件中, 获取网络数据后, 然后为 WheelView 设置数据, 设置适配器 不显示
AS 无法找到 TimePickerView 类
是否可以设置HOUR 仅显示当天之后的时间,隔天的全天小时
布局与底部导航栏重叠的问题
pickerview 和 animation 发生冲突
自用的 AndroidX 版本
如何解决弹出的时间选择器背景无法覆盖状态栏
getContentText 私有