Android EditText prohibits clicking on the keyboard

In the custom payment input box, I need to suppress the click event of the EditText control and pop up the soft keyboard. Here are some examples of commonly used methods~~~

Android EditText prohibits clicking on the keyboard

Method 1: Select which activity in AndroidMainfest.xml, and set the windowSoftInputMode property to adjustUnspecified|stateHidden

Method 2: Let EditText lose focus and use EditText's clearFocus method

Method 3:

nputMethodManager imm(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);            imm.hideSoftInputFromWindow(edit.getWindowToken(),0);

Method 4: edit.setInputType(InputType.TYPE_NULL); Permanently prohibit popup

Make a note of it so you can use it later.

write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325611196&siteId=291194637
Recommended