Answers for "how to set default focus on edittext in android"

-1

how to set default focus on edittext in 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"
Posted by: Guest on April-22-2021

Code answers related to "how to set default focus on edittext in android"

Browse Popular Code Answers by Language