I always thought the android keyboard would hide automatically when i touch outside of an EditText
.
I have several text inputs in my application. Only the first has the tag
<requestFocus />
in the xml layout definition. I have no other implementations influencing the keyboard (or at least
i think i dont have any). The only maybe important thing is that i use FragmentActivity
and Fragment
from the support package only.
When i start my app the keyboard pops up correctly with the correct EditText
in the focus. When i rotate my device my keyboard gets hidden (i really dont know why). When i rotate back it gets shown again. And when i click outside the EditText
on the layout itself or on a button or something, the keyboard isnt hiding but i really want it to.
I thought there would be no additional coding needed for this purpose.