Android: How to remove margin/padding in Preference Screen

Updating this for androidx. After a lot of experimentation, I resolved this issue by adding this to each preference that had the excess indentation: app:iconSpaceReserved=”false” Of course, you’ll also need to add this to the PreferenceScreen declaration itself at the top of your xml: xmlns:app=”http://schemas.android.com/apk/res-auto” Follow Up For Custom Preferences I noticed that in the … Read more