Android Pop-up soft keyboard masks edittext text box solution

Source: Internet
Author: User

The

1.android pop-up soft keyboard masks the solution to the EditText text box:

sets the layout for the control in the Activit corresponding layout file Filename.xml file.
(for example: android:layout_weight= ")
and set the height as adaptive as possible: android:layout_height=" WRAP_ Content ",
is the sum of the compressibility of controls that do not have a height set, and if it is larger than the height of the soft keyboard, the soft keyboard that pops up will not obscure the text input box when the EditText text input is
.


2. To set the default soft keyboard hidden method:
in the Androidmanifest.xml project management file, the corresponding activity in the settings
android:windowsoftinputmode= "Adjustunspecified|statehidden"  
(
For example:
<activity android:name= "com. Lepad.mytable "android:windowsoftinputmode=" Adjustunspecified|statehidden "&NBSP;
                android:screenorientation= "Portrait" ></ Activity>
)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.