I just wish to know how can i show or hide edit text preference that i use to add username and password.
can i use such kind of feature here -to enable or disable a button in xml for edit text preference as well
ImageButton ready = (ImageButton) findViewById(R.id.ready);
ready.setVisibility(View.INVISIBLE);
<EditTextPreference android:key="password" android:title="@string/pref_title_password" android:defaultValue="@string/pref_default_password" android:selectAllOnFocus="true" android:inputType="textPassword" android:capitalize="words" android:singleLine="true" android:maxLines="1" />