I am trying to style my preferences with a material theme and am almost there.
I imported the following:
compile 'com.android.support:preference-v7:25.1.0'
compile 'com.android.support:preference-v14:25.1.0'
Then in my main app theme set the preference theme:
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
And my preference screen looks pretty good. My only problem is that the categories have zero space or visual separation, making all the preferences look very smashed together.
The material design docs show a divider with what looks like top and bottom shadows (IE above the device category):
A couple of questions:
Does android provide this? If so is there a newer appcompat theme? Or anything else I am doing wrong?
If android does not yet provide this divider in the material preference theme has anyone created it yet? I saw this, where he creates a new category with a custom layout, Divider between category in PreferenceFragment. But I am not entirely sure how to create the desired effect.