I’ve got an Activity with a bunch of EditTexts and a button. When the user clicks the button, an answer based on the input from the EditTexts appears in the caption of the button. In the buttonclick handler I change the focus to the button and the cursor disappears from whatever EditText has the focus, but the soft keyboard remains on the screen. How can I force the soft keyboard to vanish?
EditText1.ClearFocus();
EditText2.ClearFocus();
EditText3.ClearFocus();
calc_btn.Focusable = true;
calc_btn.RequestFocus();
I’ve seen several answers as to how to do this in Java, but I haven’t been able to figure out how to translate them to C#.
Thanks for any advice.
You can do something like this: