Home > Mobile >  Android use in alertdialog recyclerview edittext, soft keyboard is invalid
Android use in alertdialog recyclerview edittext, soft keyboard is invalid

Time:02-25

As title, has set up a file in the dialog to add
 dialog. GetWindow (). ClearFlags (WindowManager. LayoutParams. FLAG_ALT_FOCUSABLE_IM); 

And, when the use of force in the edittext tuning up, soft keyboard displayed in lower alterdialog, unable to enter
 InputMethodManager inputManager=(editText InputMethodManager) 
GetContext (). GetSystemService (Context. INPUT_METHOD_SERVICE);
InputManager. ToggleSoftInput (0, InputMethodManager. SHOW_FORCED);
The editText. RequestFocusFromTouch ();

CodePudding user response:

The layout up?
  • Related