Android Learning-Solve the problem of tabhost up when the interface pops up the input box

Source: Internet
Author: User

In a Tabhost tab interface, there are more than one edittext can be entered, but each time the text box gets focus popup system keyboard, at the bottom of the tab is top to the middle, but also cause the input is not valid;

650) this.width=650; "title=" 2014-12-09_13-10-03.png "src=" http://s3.51cto.com/wyfs02/M01/54/8E/ Wkiol1sghsajqagqaahskadjp3i354.jpg "alt=" Wkiol1sghsajqagqaahskadjp3i354.jpg "/>

For this issue, the following settings can be resolved:

Modify Androidmanifest.xml file to add: Android:windowsoftinputmode= "adjustpan|statevisible" in the activity where Tabhost is located

As follows:

<activity android:name= "com.yag.UI.MainActivity" android:windowsoftinputmode= "Adjustpan|s Tatevisible ">
</activity>

650) this.width=650; "title=" Done1.png "src=" http://s3.51cto.com/wyfs02/M00/54/90/ Wkiom1sghgatajf0aahgc-mba9k305.jpg "alt=" Wkiom1sghgatajf0aahgc-mba9k305.jpg "/>

This article is from the "Qytag (upspringing)" blog, so be sure to keep this source http://qytag.blog.51cto.com/6125308/1587842

Android Learning-Solve the problem of tabhost up when the interface pops up the input box

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.