知道为什么在 PreferenceScreen 中有多个 SwitchPreferences 会产生一个问题,即如果您选择任何一个框,它会导致其他框发生变化?在运行 4.2.2 但在运行 4.0.4 的 Galaxy S3 上进行测试时会出现此问题。感谢您提供的任何帮助。
<?xml version="1.0" encoding="utf-8"?>
<PreferenceCategory android:title="@string/description_photo_preference">
<SwitchPreference
android:key="use_gallery"
android:title="@string/title_use_gallery_preference"
android:summaryOff="@string/summary_dont_use_gallery_as_photo_source"
android:summaryOn="@string/summary_use_gallery_as_photo_source"
android:defaultValue="true"
/>
<SwitchPreference
android:key="use_camera"
android:title="@string/title_use_camera_preference"
android:summaryOff="@string/summary_dont_use_camera_as_photo_source"
android:summaryOn="@string/summary_use_camera_as_photo_source"
android:defaultValue="true"
/>
<SwitchPreference
android:key="show_last_vin"
android:title="@string/pref_string"
android:summaryOff="@string/pref_display__false"
android:summaryOn="@string/pref_display_true"
android:defaultValue="true"
/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/description_photo_quality_settings">
<ListPreference
android:key="prefPhotoQuality"
android:entries="@array/photo_quality_settings"
android:summary="@string/pref_user_photo_quality_settings"
android:entryValues="@array/photo_quality_settings_values"
android:title="@string/description_photo_quality_settings" />
</PreferenceCategory>