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

Modify layout styles for Material Design #81

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

ugonna
Copy link

@ugonna ugonna commented Nov 22, 2014

Made layout changes to match the current Material guidelines for Pickers.

Android Lollipop has native DatePickers and TimePickers that look like the following:

These new pickers are not ported to pre-Android 5.0, even with AppCompat, so I followed the guidelines as close as possible to create a similar look for this library:

while still retaining the original color theme used in this repo (if anyone needs to use custom colors, please see #65 (comment))

Changes made are mostly to layout or style xml files. Commits are self-contained and easy to review.

Tested on Nexus 7, 5 & 4.

- Removes divider
- Uses an "OK/Cancel" paradigm as suggested by guidelines for picker dialogs
- Changes padding and other layout metrics to match guidelines
- Changes "OK/Cancel" font style and color to match dialog guidelines
- Vibrator system service was previously called using a hard-coded string, which could change in future Android versions
- Removes divider
- Uses an "OK/Cancel" paradigm as suggested by guidelines for picker dialogs
- Changes colors to match native TimePickerDialog in Lollipop
…ontainer in landscape

This is unnecessary in portrait mode, but may suffice for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant