PreferenceFragmentCompat has padding on PreferenceCategory that I can’t get rid of

Actually there is a better hack to fix this, also with resource overriding: Create res/values-sw360dp-v13/values-preference.xml: <?xml version=”1.0″ encoding=”utf-8″?> <resources xmlns:tools=”http://schemas.android.com/tools”> <bool name=”config_materialPreferenceIconSpaceReserved” tools:ignore=”MissingDefaultResource,PrivateResource”>false</bool> <dimen name=”preference_category_padding_start” tools:ignore=”MissingDefaultResource,PrivateResource”>0dp</dimen> </resources> The <bool> fixes the default value of iconSpacePreserved for all Preference; The <dimen> fixes the PreferenceCategory. EDIT: If you are using androidx.preference:preference:1.1.0-alpha01 or above, you won’t need the … Read more

PreferenceFragmentCompat requires preferenceTheme to be set

The sample project can be found here The bugfix is available as a gradle dependency Now one can use the library pretty easy. Here are quickest way to do so, but you should check out the README for more info. 1. Update your module’s gradle file: compile ‘com.takisoft.fix:preference-v7:27.0.0.0’ 2. Use the appropriate class as your … Read more