The interface control method of Android soft keyboard popup _android

Source: Internet
Author: User
Tags sqlite database

This article illustrates the interface control method when the Android soft keyboard pops up. Share to everyone for your reference, specific as follows:

Sometimes the layout changes when androidactivity pops up the soft keyboard

Here are three modes to change the display after the soft keyboard pops up

Mode one: Compressed mode soft keyboard eject, will compress the original size
We can set up the activity in Androidmanifet.xml. Such as:

Android:windowsoftinputmode= "Stateunchanged|adjustresize"

Mode two: Translation mode soft keyboard pop-up, will not compress the original size, but cover
We can set up the activity in Androidmanifet.xml. Such as:

Android:windowsoftinputmode= "Stateunchanged|adjustpan"

Mode three: Automatic mode system automatically determines whether to use the translation mode or compression mode, the determining factor is the content can be scrolled.

Android:windowsoftinputmode= "Adjustuspecified"

PS: Here again to provide you with a Androidmanifest.xml access control online query tool:

Android manifest Features and Permissions description Encyclopedia:
Http://tools.jb51.net/table/AndroidManifest

More interested readers of Android content can view this site: "Android SMS and phone Operation tips Summary", "Android operation SQLite Database Skills Summary", "Android Development introduction and Advanced Course", " Android Multimedia How-to Summary (audio, video, audio, etc), summary of Android Basic components usage, Android View tips Summary, Android layout layout tips and a summary of Android controls usage

I hope this article will help you with the Android program.

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.