Android Preference Subscreens

I use PreferenceFragmentto inflate settings from xml. In my xml, I have a sub-screen preference. When I click on this preference, a new preferences screen is displayed. For this, as the Google documentation says, I declared another settings screen in my XML file as follows:

 <PreferenceCategory android:title="@string/pref_info_section">

    <PreferenceScreen
        android:key="LegalPref"
        android:title="@string/legal"
        android:persistent="false">

        <Preference
            android:key="PolicyPref"
            android:title="@string/policy">               
        </Preference>

        <Preference
            android:key="OpenSourcePref"
            android:title="@string/open_source">                
        </Preference>

    </PreferenceScreen>

</PreferenceCategory>

, , , . , , Theme.AppCompat.Light witch , ( ), .

+4

All Articles