转载

时间选择器

Welcome to follow me on GitHub

GitHub: https://github.com/JZXiang

中文版文档

TimerPickerDialog

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.

Download APK

gradle, latest version:

compile 'com.jzxiang.pickerview:TimePickerDialog:0.9.2'

Demo picture

时间选择器

An example configuration

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();

Thanks

android-wheel

原文  https://github.com/JZXiang/TimePickerDialog
正文到此结束
Loading...