The page is not increased with the keyboard, and the page is increased with the keyboard

Source: Internet
Author: User

The page is not increased with the keyboard, and the page is increased with the keyboard

 

Add this sentence to the corresponding activity in the configuration file: android: windowSoftInputMode = "stateVisible | adjustResize"

After setting

Android: windowSoftInputMode attribute description android: windowSoftInputModeactivity interaction mode between the main window and the keyboard, which can be used to avoid the problem of blocking the input method Panel. This is a new feature after Android1.5. This attribute can affect two things: [1] when there is a focal point, whether the keyboard is hidden or displayed [2] whether to reduce the size of the main active window to free up space. the settings of the keyboard must be a value in the following list or a "state ..." Add "adjust…" to the value ..." Value combination. Set multiple values in any group-multiple "states ..." Values. For example, & mdash has undefined results. Use | to separate values. For example, the value set here (except "stateUnspecified" and "adjustUnspecified") will overwrite the meaning of each value set in the topic: [A] stateUnspecified: the keyboard status is not specified. The system selects an appropriate status or the topic-dependent setting [B] stateUnchanged: When this activity appears, the Soft Keyboard will remain in the status of the previous activity, whether hidden or displayed [C] stateHidden: when the activity is selected, the soft keyboard will always be hidden [D] stateAlwaysHidden: when the main Activity window gets the focus, the keyboard is always hidden [E] stateVisible: the keyboard is usually visible [F] stateAlwaysVisible: when the user selects the activity, the soft keyboard always shows the status [G] adjustUnspecified: the default setting, usually determined by the system whether to hide or display [H] adjustResize: this Activity always adjusts the screen size so as to leave a space for the soft keyboard [I] adjustPan: the content of the current window will be automatically moved so that the current focus is never overwritten by the keyboard and the user can always see the part of the input content.

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.