Android development listview+edittext-deadly focus and soft keyboard problem resolution "original link"
This article perfectly solves the bug that I haven't concluded for a few months ...
Thank you for sharing the technology talent ~
How did I get into this big hole ...
Demand:
A edittext in the ListView accepts the user input message.
Pre-solutions:
Bind the focus event to this edittext .... The tragedy began ...
You know? When this edittextview is ordered, its focus is constantly gaining, losing, acquiring, losing ... Just a little bit ... Frequent repetition. In the end, most of them lose focus. And every character in the Edittextview, it loses focus, then gets the focus ... Oh.
About getting the focus is because you saved the variable. When the floppy disk bounces, it is redrawn and needs to be re-focused.
Correct solution:
You should not listen to the focus event, listen to the touch event, and when you click, write down the focus and then give the focus when redrawing.
Article humble, please understand ~
"Turn" Android development listview+edittext-a deadly focus and solutions for soft keyboard problems