Before I asked to remove the padding of the PreferenceActivity/PreferenceFragment:
Android: How to maximize PreferenceFragment width (or get rid of margin)?
This time I having trouble adjusting margin/padding before Title Text. (See image below).
Does anybody have any idea?
You could customize you checkbox like this: MyPreference.xml
and custom_checkbox_preference_layout.xml
the point is android:minWidth="0dp".
If you are creating preferences dynamically pass ContextThemeWrapper as a parameter to the new Preference
I have found it in this article: Dynamically creating Preference Screens on Android
For anyone facing this issue and don't want to go through custom layout. I'd like to note that adding:
solved my problem with the left-side empty space.
The custom_checkbox_preference_layout.xml described by user1482130 work also without modifications for other types of preferences such as listpreferences ! Very usefull