gregkorossy / Android-Support-Preference-V7-Fix

Android androidx.preference support library has some issues, this lib tries to fix them.
https://discord.gg/87NVsSK
Apache License 2.0
497 stars 46 forks source link

Expand/Contract PreferenceCategory #205

Open MPArnold opened 4 years ago

MPArnold commented 4 years ago

I've written a small helper for my implementation of your PreferenceFragmentCompat.

It adds a click listener to the PreferenceCategory title and toggles visibility of the contained preferences which by default are hidden. The user must tap the desired category to see the settings.

The helper also facilitates programmatic selection of a single category OR single preference.

Comments please!

gregkorossy commented 4 years ago

I cannot find your addition.

MPArnold commented 4 years ago

That's because I'm currently testing it on a clone. Happy to create a fork with the new class and updated sample app if in principle you like the idea!

MPArnold commented 4 years ago

I'll take that as a yes :-)

Please see pull request #206