我在使用“首選項”屏幕上的支持庫中的新“材料設計”工具欄時遇到了麻煩。我有一個settings.xml文件,如下所示:<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="@string/AddingItems" android:key="pref_key_storage_settings"> <ListPreference android:key="pref_key_new_items" android:title="@string/LocationOfNewItems" android:summary="@string/LocationOfNewItemsSummary" android:entries="@array/new_items_entry" android:entryValues="@array/new_item_entry_value" android:defaultValue="1"/> </PreferenceCategory></PreferenceScreen>字符串在其他地方定義。
創(chuàng)建帶有支持(v21)工具欄的首選項屏幕
慕工程0101907
2019-10-23 16:53:32