我想有一个带有标题和摘要的全屏PreferenceScreen。然而,当我给出摘要文本时,它没有显示出来:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
android:title="My Title"
android:summary="My Summary">
......
</PreferenceScreen>发布于 2013-01-22 23:36:33
将此添加到您已有的位置...
<PreferenceCategory android:title="Title"
android:key="title_category_key">
<PreferenceScreen
android:key="my_title_key"
android:title="Main Settings"
android:persistent="false" >
</PreferenceScreen>
<EditTextPreference
android:name="title"
android:defaultValue="@string/title"
android:title="title"
android:key="title_key"
android:editable="false"
android:focusable="false"/>
</PreferenceCategory>
https://stackoverflow.com/questions/11454065
复制相似问题