Android programming can hide the soft keyboard function by clicking controls other than EditText

This example describes the Android programming to hide the soft keyboard function by clicking the control other than EditText. Share with you for your reference, as follows:

Tool class

Click a control other than EditText to hide the soft keyboard. If it is a ViewGroup control, execute recursively

When calling, you only need to pass the outermost layout.

More readers interested in Android related content can view the special topics of this site: Android control usage summary, Android development introduction and advanced tutorial, Android view skill summary, activity operation skill summary of Android programming, Android database operation skill summary and Android resource operation skill summary

I hope this article will help you in Android programming.

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