我想让EditTextPreference不可编辑(例如,当你单击Settings页面中的项目时没有任何反应).我怎么做?
这是我的代码:
<PreferenceCategory android:title="My Account" > <EditTextPreference android:clickable="false" android:focusable="false" android:focusableInTouchMode="false" android:key="username_pref" android:summary=" " android:title="Username" > </EditTextPreference> </PreferenceCategory>