我已经为 PreferenceScreen 设置了 photopreference_layout.xml。我希望自定义 <ListPreference android:dialogTitle="@string/Order" ..>
我该怎么做的选项弹出窗口?
<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"/>