Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i want to show timepicker in spinner mode . can you guide for same ? #11

Open
nitin123sangani opened this issue Feb 6, 2021 · 1 comment
Labels

Comments

@nitin123sangani
Copy link

No description provided.

@gregkorossy
Copy link
Owner

You could set the styling attribute TimePicker.timePickerMode to "spinner" that forces the dialog to use the spinners instead of the clock face.
Here's an example (haven't tested it):

<resources>
    <style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">
        <item name="timePickerStyle">@style/MyTimePicker</item>
    </style>

    <style name="MyTimePicker" parent="@style/Widget.Material.TimePicker">
        <item name="timePickerMode">spinner</item>
    </style>
</resources>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants