Android-Support-Preference-V7-Fix icon indicating copy to clipboard operation
Android-Support-Preference-V7-Fix copied to clipboard

Expand/Contract PreferenceCategory

Open MPArnold opened this issue 5 years ago • 3 comments

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!

MPArnold avatar Jan 13 '20 22:01 MPArnold

I cannot find your addition.

gregkorossy avatar Jan 14 '20 22:01 gregkorossy

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 avatar Jan 14 '20 23:01 MPArnold

I'll take that as a yes :-)

Please see pull request #206

MPArnold avatar Jan 16 '20 20:01 MPArnold