Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Hour And Minutes PIcker #306

Open
HannahShulman opened this issue Oct 27, 2020 · 1 comment · May be fixed by #308
Open

Hour And Minutes PIcker #306

HannahShulman opened this issue Oct 27, 2020 · 1 comment · May be fixed by #308

Comments

@HannahShulman
Copy link

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

@Akhunzaada
Copy link
Contributor

Akhunzaada commented Nov 6, 2020

@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 added a commit to Akhunzaada/SingleDateAndTimePicker that referenced this issue Nov 6, 2020
Other florent37#306, florent37#303, florent37#269, florent37#290
The issues were mainly caused because of incorrect retrieving of today item index.
Optimized today item index search on scroll.
@Akhunzaada Akhunzaada linked a pull request Nov 6, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants