JZXiang / TimePickerDialog
- четверг, 2 июня 2016 г. в 03:12:02
Java
An Android time picker library.
GitHub: https://github.com/JZXiang
An Android time picker library.
It's easy to use.
Supports five types.(YEAR_MONTH,YEAR_MONTH_DAY,MONTH_DAY_HOUR_MINUTE,YEAR_MONTH_DAY_HOUR_MINUTE,HOUR_MINUTE)
It can set the minimum millseconds.
compile 'com.jzxiang.pickerview:TimePickerDialog:0.9.2'
mDialogAll = new TimePickerDialog.Builder()
.setCallBack(this)
.setCancelStringId("cancel")
.setSureStringId("sure")
.setTitleStringId("TimePicker")
.setCyclic(false)
.setMinMillseconds(System.currentTimeMillis())
.setCurrentMillseconds(System.currentTimeMillis())
.setThemeColor(getResources().getColor(R.color.timepicker_dialog_bg))
.setType(Type.ALL)
.setWheelItemTextNormalColor(getResources().getColor(R.color.timetimepicker_default_text_color))
.setWheelItemTextSelectorColor(getResources().getColor(R.color.timepicker_toolbar_bg))
.setWheelItemTextSize(12)
.build();