0

如何使用此代碼Preferences.xmlAndroid的首選項佈局

<PreferenceCategory android:title="Remote Proxy" android:key="plugin"> 
     <CheckBoxPreference android:title="Use Remote Proxy" android:key="remote" android:defaultValue="false" /> 
     <ListPreference android:entries="@array/entries_list_preference" android:layout="?android:preferenceLayoutChild" android:title="Proxy Type" android:key="0Handler: 9" android:summary="Choose proxy type" android:dependency="remote" android:dialogTitle="Choose Proxy Type" android:entryValues="@array/entryvalues_list_preference" /> 
     <ListPreference android:entries="@array/headerlist" android:layout="?android:preferenceLayoutChild" android:title="Custom Header" android:key="0Handler: 10" android:summary="Choose custom header" android:dependency="remote" android:dialogTitle="Choose custom header" android:entryValues="@array/headervalue" /> 
     <ListPreference android:entries="@array/serverlist" android:layout="?android:preferenceLayoutChild" android:title="Proxy Server" android:key="0Handler: 11" android:summary="Choose proxy server" android:dependency="remote" android:dialogTitle="Choose Proxy Server" android:entryValues="@array/servervalue" /> 
     <ListPreference android:entries="@array/proxytypelist" android:layout="?android:preferenceLayoutChild" android:title="Real Proxy Type" android:key="0Handler: 14" android:summary="Choose proxy type" android:dependency="remote" android:dialogTitle="Choose Proxy Type" android:entryValues="@array/servertype" /> 
    </PreferenceCategory> 

Layout.xml,我怎樣才能激活我SharedPreferences不使用Android ID

回答