Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何为PreferenceScreen自定义ListPreference的UI_Android - Fatal编程技术网

Android 如何为PreferenceScreen自定义ListPreference的UI

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"

我已经为PreferenceScreen设置了photopreference_layout.xml。 我希望为
我该怎么办

<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"/>  



您想要定制哪些具体项目?这个问题似乎提供了完整的答案。