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

Hidden divider API in support library

Open Mygod opened this issue 7 years ago • 4 comments

I just discovered that there're app:allowDividerAbove and app:allowDividerBelow APIs. Is it possible to use these?

Mygod avatar Nov 18 '17 07:11 Mygod

Where do you see these attributes?

gregkorossy avatar Nov 19 '17 13:11 gregkorossy

It's in the decompiled Preference class.

Mygod avatar Nov 19 '17 20:11 Mygod

Technically, I think it would be possible to use these values as these are used in the view holder but it would be difficult to tell when should these override the divider flags.

gregkorossy avatar Nov 23 '17 19:11 gregkorossy

In 28.0.0-alpha3, these attributes are being actively used as such:

        <item name="allowDividerAbove">false</item>
        <item name="allowDividerBelow">true</item>
        <item name="iconSpaceReserved">@bool/config_materialPreferenceIconSpaceReserved</item>

Mygod avatar Jun 11 '18 00:06 Mygod