Android solves the problem of soft keyboard blocking buttons in an elegant way
•
Android
preface
For example, in the login operation, the user must want to directly click the login button after entering the password. The experience of hiding the soft keyboard with the return key must be very bad. Programmers can solve problems when they encounter problems.
Implementation 1
xml
java
Implementation 2
XML ditto
Create gon.xml under anim
visiable.xml
Or directly in the code
What is the effect
The above is the Android elegant way introduced by Xiaobian to solve the problem of soft keyboard blocking buttons. I hope it will be helpful to you. If you have any questions, please leave me a message, and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码