Android 之Preference控件基本使用示例详解

  

  xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"

  android:title="@string/display_settings"

  settings:keywords="@string/keywords_display">

  

  android:key="phone_category"

  android:title="我的手机">

  

  android:key="phone"

  android:summary="关于手机"

  android:title="小米" />

  

  android:key="phone_status"

  android:title="状态信息" />

  

  

  android:key="other_category"

  android:title="其他">

  

  android:key="permission"

  android:summary="位置权限,定位获取位置信息"

  android:title="权限" />

  

  

  android:fragment="com.android.settings.accessibility.ToggleFontSizePreferenceFragment"

  android:key="font_size"

  android:title="@string/title_font_size"

  settings:keywords="@string/keywords_display_font_size" />