Skip to main content
Question Unprotected by Paul Hodges
improved question format
Source Link
Ranjithkumar
  • 18.6k
  • 16
  • 135
  • 174

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. I assume that this isCan someone provide a simple piece of code, but where can I find an example of ithow to achieve this?

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. I assume that this is a simple piece of code, but where can I find an example of it?

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. Can someone provide a simple example of how to achieve this?

Fixed the question formation - missing auxiliary (or helping) verb - see e.g. <https://www.youtube.com/watch?v=t4yWEt0OSpg&t=1m49s> (see also <https://www.youtube.com/watch?v=kS5NfSzXfrI> (QUASM)) - alternatively, drop the question mark.
Source Link
Peter Mortensen
  • 31.1k
  • 22
  • 111
  • 134

How tocan I close/hide the Android soft keyboard programmatically?

How tocan I close/hide the Android soft keyboard programmatically?

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. I assume that this is a simple piece of code, but where can I find an example of it?

How to close/hide the Android soft keyboard programmatically?

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. I assume that this is a simple piece of code, but where can I find an example of it?

How can I close/hide the Android soft keyboard programmatically?

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. I assume that this is a simple piece of code, but where can I find an example of it?

deleted 3 characters in body
Source Link
Vidar Vestnes
  • 43.1k
  • 30
  • 89
  • 100

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching it outside the keyboard. I assume that this is a simple piece of code, but where can I find an example of it?

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching it outside the keyboard. I assume that this is a simple piece of code, but where can I find an example of it?

I have an EditText and a Button in my layout.

After writing in the edit field and clicking on the Button, I want to hide the virtual keyboard when touching outside the keyboard. I assume that this is a simple piece of code, but where can I find an example of it?

fixed Grammar
Source Link
Ramesh R
  • 7.1k
  • 4
  • 27
  • 40
Loading
Fixed the title
Link
Vidar Vestnes
  • 43.1k
  • 30
  • 89
  • 100
Loading
Grammar, clarify question
Source Link
Josh Correia
  • 4.4k
  • 3
  • 43
  • 67
Loading
add question more detail.
Source Link
Dr.jacky
  • 3.6k
  • 6
  • 58
  • 98
Loading
added tag
Link
Vivek Mishra
  • 5.7k
  • 10
  • 54
  • 89
Loading
Rollback to Revision 13
Source Link
Cœur
  • 39.1k
  • 25
  • 207
  • 283
Loading
Loading
Rollback to Revision 13
Link
Ryan M
  • 20.6k
  • 35
  • 76
  • 86
Loading
Fixed title.
Link
Samet ÖZTOPRAK
  • 3.4k
  • 3
  • 36
  • 39
Loading
change grammer
Source Link
user6754053
user6754053
Loading
Tag edit
Link
Milad Rashidi
  • 1.4k
  • 4
  • 25
  • 40
Loading
edited tags
Link
Suragch
  • 516.9k
  • 340
  • 1.4k
  • 1.4k
Loading
added 5 characters in body
Source Link
PEHLAJ
  • 10.2k
  • 10
  • 44
  • 57
Loading
easy for reading style
Source Link
Artem
  • 4.7k
  • 12
  • 49
  • 90
Loading
Rearranged tags
Link
Farid
  • 2.6k
  • 1
  • 25
  • 46
Loading
deleted 1 character in body
Source Link
Pratik Butani
  • 62.6k
  • 63
  • 289
  • 454
Loading
This Problem needs this tag
Link
GOLDEE
  • 2.3k
  • 3
  • 26
  • 49
Loading
Post Made Community Wiki by Siddharth_Vyas
Edited Title as per SO's defined standards ("How to"/"How do I" are discouraged)
Link
Loading