setting.xml
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<CheckBoxPreference
android:defaultValue="true"
android:key="autoBack"
android:summaryOff="关闭"
android:summaryOn="开启"
android:title="自动回复" />
<PreferenceCategory android:title="SMS 助手" >
<CheckBoxPreference
android:defaultValue="false"
android:key="smsSilence"
android:summaryOff="关闭"
android:summaryOn="开启"
android:title="静音" />
<PreferenceScreen android:title="更多选项" >
<CheckBoxPreference
android:defaultValue="true"
android:key="cb21"
android:summaryOff="关闭"
android:summaryOn="开启"
android:title="功能1" />
<CheckBoxPreference
android:defaultValue="true"
android:key="cb22"
android:summaryOff="停用"
android:summaryOn="使用"
android:title="功能2" />
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>