The Android system settings screen for candy seems to use a layout that resembles a “map layout”.

I am trying to find the same for my application, but I can’t understand how they achieved this with the standard PreferenceFragment . Can someone explain to me how I can achieve the same effect without creating my own preferences?
Notice that I saw and read these questions, but they do not give a suitable answer:
If this is interesting, my current xml settings are as follows:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto"> <PreferenceCategory android:title="@string/preferences_title_general"> <Preference android:key="Prefs.Delete.Row.Token" android:summary="@string/preferences_delete_row_token_summary" android:title="@string/preferences_delete_row_token_title"/> <Preference android:key="Prefs.Delete.Cell.Token" android:summary="@string/preferences_delete_cell_token_summary" android:title="@string/preferences_delete_cell_token_title"/> <Preference android:key="Prefs.Null.Token" android:summary="@string/preferences_null_token_summary" android:title="@string/preferences_null_token_title"/> </PreferenceCategory> <PreferenceCategory android:title="@string/preferences_title_appearance"> <SwitchPreference android:dialogTitle="@string/preferences_theme_title" android:key="Prefs.Appearance.Theme" android:summaryOff="@string/preferences_theme_summary_off" android:summaryOn="@string/preferences_theme_summary_on" android:switchTextOff="@string/general_no" android:switchTextOn="@string/general_yes" android:title="@string/preferences_theme_title"/> </PreferenceCategory> <PreferenceCategory android:title="@string/preferences_title_misc"> <SwitchPreference android:dialogTitle="@string/preferences_read_back_title" android:key="Prefs.Voice.Feedback" android:switchTextOff="@string/general_no" android:switchTextOn="@string/general_yes" android:title="@string/preferences_read_back_title"/> <Preference android:key="Prefs.Export.Barcode.Properties" android:title="@string/preferences_export_title" android:summary="@string/preferences_export_summary"/> <Preference android:key="Prefs.Show.Eula" android:title="@string/preferences_eula_title" android:summary="@string/preferences_eula_summary"/> </PreferenceCategory> </PreferenceScreen>
And I extend PreferenceFragment and load xml through
addPreferencesFromResource(R.xml.prefs);
source share