Home

Awesome

PickTime

日期选择控件

apk下载

截图


TYPE_ALLTYPE_YMDHMTYPE_YMDHTYPE_YMDTYPE_HM
Alt textAlt textAlt textAlt textAlt text
<!--<img src="image/all.jpg" height="320" width="180" style="margin-left:100"/>--> <!--<img src="image/ymdhm.jpg" height="320" width="180" style="margin-left:100"/>--> <!--<img src="image/ymdh.jpg" height="320" width="180" style="margin-left:100"/>--> <!--<img src="image/ymd.jpg" height="320" width="180" style="margin-left:100"/>--> <!--<img src="image/hm.jpg" height="320" width="180" style="margin-left:100"/>-->

效果


Alt text

DateType

how to use

	    allprojects {
		   repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	    }
	dependencies {
	        compile 'com.github.codbking:PickTime:v1.0.1'
	}
        DatePickDialog dialog = new DatePickDialog(this);
        //设置上下年分限制
        dialog.setYearLimt(5);
        //设置标题
        dialog.setTitle("选择时间");
        //设置类型
        dialog.setType(DateType.TYPE_ALL);
        //设置消息体的显示格式,日期格式
        dialog.setMessageFormat("yyyy-MM-dd HH:mm");
        //设置选择回调
        dialog.setOnChangeLisener(null);
        //设置点击确定按钮回调
        dialog.setOnSureLisener(null);
        dialog.show();