Jak skoncentrować się na EditText w Android
etSearch.requestFocus();
public void showSoftKeyboard(View view) {
if (view.requestFocus()) {
InputMethodManager imm = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
}
}
menifest:
android:windowSoftInputMode="stateVisible"
KushalCodes