Android: How to remove margin/padding in Preference Screen
I am facing very weird problem in designing preference screen. Though I am not giving any margin in layout,it is leaving some space in left. As you can see in image below: XML: <PreferenceScreen android:title="demo" > <CheckBoxPreference android:defaultValue="false" android:key="prefSync"` android:title="Auto Sync" /> </PreferenceScreen> Am I doing something wrong in adding check-box preference in 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,