Solution to the problem of blocking login button on Android virtual keyboard

The pop-up of Android virtual keyboard will block some UI. Although it can be pushed up with the pop-up of virtual keyboard by setting in the list file, it does not play a great role in the login interface, which will lead to poor user experience; Since there is a problem in the development, it should be solved; First, the idea of first solution: obtain the height of the screen, the height of the virtual keyboard and the height of the layout, subtract the height of the layout from the height of the screen, and compare the height difference with the height of the virtual keyboard; The code implementation is as follows;

The above has been explained in detail, and the operation effect is as follows:

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

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
分享
二维码
< <上一篇
下一篇>>