Android 如何为PreferenceScreen自定义ListPreference的UI
我已经为PreferenceScreen设置了photopreference_layout.xml。 我希望为Android 如何为PreferenceScreen自定义ListPreference的UI,android,Android,我已经为PreferenceScreen设置了photopreference_layout.xml。 我希望为 我该怎么办 <EditTextPreference android:dialogTitle="@string/DefaultEmail" android:key="ToEmail" android:summary="@string/DefaultEmailsummary" android:title="@string/DefaultEmail"
我该怎么办
<EditTextPreference
android:dialogTitle="@string/DefaultEmail"
android:key="ToEmail"
android:summary="@string/DefaultEmailsummary"
android:title="@string/DefaultEmail"
android:layout="@layout/photopreference_layout"
/>
<ListPreference
android:defaultValue="Desc"
android:dialogTitle="@string/Order"
android:entries="@array/Order"
android:entryValues="@array/Order_values"
android:key="SetPhotoOrder"
android:title="@string/Order"
android:summary="@string/Ordersummary"
android:layout="@layout/photopreference_layout"
/>
photopreference_layout.xml
<TextView android:id="@+android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/myTextAppearance"/>
<TextView android:id="@+android:id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/myTextSmall"/>
您想要定制哪些具体项目?这个问题似乎提供了完整的答案。