偏好活动因调用而膨胀
addPreferencesFromResource(R.xml.preferences);
这里是preferences.xml:
<PreferenceCategory android:title="@string/pref_categ_update_label">
<ListPreference android:title="@string/pref_label"
android:key="update_interval"
android:entries="@array/update_names" android:entryValues="@array/update_values" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_categ_evernote_label">
<EditTextPreference android:title="@string/pref_dialog_edit_username"
android:key="prefUsername"
android:positiveButtonText="@string/save_pref"
android:negativeButtonText="@string/cancel_pref" />
<EditTextPreference android:title="@string/pref_dialog_edit_password"
android:key="prefPassword"
android:positiveButtonText="@string/save_pref"
android:negativeButtonText="@string/cancel_pref"
android:password="true" />
</PreferenceCategory>
一切看起来都不错,但 EditTextPreference 条目(2 和 3)旁边有向下箭头图标,就像 ListPreference (1) 一样。为什么会这样?我怎样才能删除这些图标,因为它们看起来无关紧要?
截图在这里:http: //i.stack.imgur.com/BZUr7.png