Skip to content

- The simple and powerful time picker for Android.

Notifications You must be signed in to change notification settings

sushantgiri/TimePicker

Repository files navigation

Date Time Picker

  • The simple and powerful date time picker for Android.

##Features:

  • Set to default current time.
  • Set default value on start Up.
  • Completely customizable views.

##Implementation:

1.Instantiate DateFragment Class as:

  • DateTimeFragment dateTimeFragment = DateTimeFragment.newInstance();
  1. Customize the parameters: //View Customizations
  • setDateHeaderText(String text) -- Change Date Header Text
  • setDateHeaderColor(@ColorInt int color) -- Change Date Header Color

Root Background (Choose either of the option)

  • setBackgroundResource(@DrawableRes int resource)

  • setBackgroundColor(@ColorInt int color)

  • setBackground(Drawable backgroundDrawable)

  • setTimeHeaderText(String text) -- Change Time Header

  • setTimeHeaderColor(@ColorInt int color) -- Change Time Header Color

  • setConfirmText(String text) -- Change Confirm Text

  • setConfirmTextColor(@ColorInt int color) -- Change Confirm Text Color

Confirm Button Background (Choose either of the option)

  • setConfirmBackground(Drawable drawable) -- Change Confirm Button
  • setConfirmBackgroundResource(@DrawableRes int resource)
  • setConfirmBackgroundColor(@ColorInt int confirmBackgroundColor)

Center Selected Color

  • setSelectedColor(@ColorInt int selectedColor)

Remaining Unselected Color other than center text

  • setUnSelectedColor(@ColorInt int unSelectedColor)
  1. Add DateTime Fragment in container.

SOURCE: FORKED (CHINA | चीन )

About

- The simple and powerful time picker for Android.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages