Skip to content

一个Android高效日期选择控件,支持(年月日时分星期)等多种模式的控件

Notifications You must be signed in to change notification settings

codbking/PickTime

Repository files navigation

PickTime

日期选择控件

apk下载

截图


TYPE_ALLTYPE_YMDHMTYPE_YMDHTYPE_YMDTYPE_HM
Alt textAlt textAlt textAlt textAlt text

效果


Alt text

DateType

  • TYPE_ALL--年、月、日、星期、时、分
  • TYPE_YMDHM--年、月、日、时、分
  • TYPE_YMDH--年、月、日、时
  • TYPE_YMD--年、月、日
  • TYPE_HM--时、分

how to use

  • Add it in your root build.gradle at the end of repositories:
 allprojects{repositories{... maven{url 'https://jitpack.io' } } } 
  • Add the dependency
 dependencies{compile 'com.github.codbking:PickTime:v1.0.1' }
  • java
DatePickDialogdialog = newDatePickDialog(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();

About

一个Android高效日期选择控件,支持(年月日时分星期)等多种模式的控件

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages