相关疑难解决方法(0)

使用支持创建首选项屏幕(v21)工具栏

我在"首选项"屏幕上的支持库中使用新的"材质设计"工具栏时遇到问题.

我有一个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>
Run Code Online (Sandbox Code Playgroud)

字符串在别处定义.

android android-actionbar android-actionbar-compat android-5.0-lollipop android-toolbar

115
推荐指数
9
解决办法
7万
查看次数