github

JZXiang / TimePickerDialog

  • четверг, 2 июня 2016 г. в 03:12:02
https://github.com/JZXiang/TimePickerDialog

Java
An Android time picker library.



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