I usually use the following focus settings: add the following attributes to your xml-layout
<AutoCompleteTextView android:focusable="true" android:focusableInTouchMode="true"> </AutoCompleteTextView>
and programmatically adjust focus, for example
((AutoCompleteTextView) findViewById(R.autocomplete_zone)).requestFocus();
fe in onResume or onWindowChanged
public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); if (hasFocus) { ((AutoCompleteTextView) findViewById(R.autocomplete_zone)).requestFocus(); } }
longilong
source share