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

Fix SimpleMenuPreference for support lib v28.0.0-alpha3 #169

Closed
gregkorossy opened this issue Jul 4, 2018 · 12 comments
Closed

Fix SimpleMenuPreference for support lib v28.0.0-alpha3 #169

gregkorossy opened this issue Jul 4, 2018 · 12 comments
Labels

Comments

@gregkorossy
Copy link
Owner

The SimpleMenuPreference uses some extra elements to simulate the reserved icon space, however, from alpha3 the default value of reserving icon space is set to true but the preference ignores it.

screenshot_1530702764

@gregkorossy gregkorossy added the bug label Jul 4, 2018
@Mygod
Copy link
Contributor

Mygod commented Jul 4, 2018 via email

@gregkorossy
Copy link
Owner Author

Which one?

@gregkorossy
Copy link
Owner Author

gregkorossy commented Jul 4, 2018

Fixed in meanwhile by using Preference.Material as the parent of Preference.SimpleMenuPreference.

gregkorossy added a commit that referenced this issue Jul 4, 2018
@Mygod
Copy link
Contributor

Mygod commented Jul 4, 2018

#111 (comment)

@Mygod
Copy link
Contributor

Mygod commented Jul 4, 2018

@gregkorossy
Copy link
Owner Author

I think it's better to use the Preference.Material as the parent style since if the devs change it, they will be automatically propagated instead of manually copying the changed attributes.

@Mygod
Copy link
Contributor

Mygod commented Jul 4, 2018

According to decompiled source in alpha 1 this is how other preferences do it, but maybe they have changed it.

@gregkorossy
Copy link
Owner Author

Yes, they do it like that, but if they change an attribute in alpha4 (or whatever the next release will be), you have to copy them over instead of just using the changed attributes directly.

@gregkorossy
Copy link
Owner Author

Released v28.0.0.0-alpha3. It fixes this problem.

@ln-12
Copy link

ln-12 commented Jul 20, 2018

Hey guys, sorry that I have to ask another question on this topic. I am currently using version 28.0.0.0-alpha3. Setting isIconSpaceReserved = false works just fine for settings, but not for categories.
Example: Relating to the upper picture, "RingtonePreference" is aligned left but "Dynamic category" is aligned as isIconSpaceReserved was set to true (with extra spacing on the left). Do you have an idea what I'm doing wrong?

Btw: Awesome library!

@gregkorossy
Copy link
Owner Author

See #132 for details. This is a bug in the official lib, and this lib only has the fix in the AndroidX version (for the time being at least).

@ln-12
Copy link

ln-12 commented Jul 20, 2018

Thanks a lot, I'll try it out.

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

3 participants