SingleDateAndTimePicker icon indicating copy to clipboard operation
SingleDateAndTimePicker copied to clipboard

Hour And Minutes PIcker

Open HannahShulman opened this issue 4 years ago • 1 comments

Is there any way to have an hour and minute picker only? without the date?

HannahShulman avatar Oct 27 '20 23:10 HannahShulman

@HannahShulman Yes, every UI element is configurable both using the Builder class and the XML. The Usage Doc has complete examples with screenshots of what you are looking for.

Using Builder Class:

new SingleDateAndTimePickerDialog.Builder(this)
            .bottomSheet()
            .curved()
            .displayMinutes(false)
            .displayHours(false)
            .displayDays(false)
            .displayMonth(true)
            .displayYears(true)
            .displayDaysOfMonth(true)
            .display();

Using XML:

<attr name="picker_displayMonth" format="boolean"/>
<attr name="picker_displayYears" format="boolean"/>
<attr name="picker_displayDays" format="boolean"/>
<attr name="picker_displayDaysOfMonth" format="boolean" />
<attr name="picker_displayMinutes" format="boolean"/>
<attr name="picker_displayHours" format="boolean"/>
<attr name="picker_displayMonthNumbers" format="boolean" />

Akhunzaada avatar Nov 06 '20 10:11 Akhunzaada