Android does not automatically pop up the keyboard, android pop up the keyboard

Source: Internet
Author: User

Android does not automatically pop up the keyboard, android pop up the keyboard

Go to the new Activity page. To prevent the soft keyboard from automatically popping up, set it in the Activity corresponding to AndroidManifest. xml.

Android: windowSoftInputMode = "adjustUnspecified | stateHidden"
The keyboard cannot be automatically displayed on Android phones.

It may be that the default settings are cleared. We recommend that you use a new one, such as sogou and Baidu input methods.
 
How does one set the default pop-up for the Android keypad?

During Anroid development, when you open an interface, the screen focus will automatically stay in the first EditText, And the Android Soft Keyboard will automatically pop up by default, when the user does not even see the UI clearly at first glance, the keyboard pops up, which affects the user experience. When we need to set the interface to open, when EditText gets the focus, the Code is as follows:
// GetWindow (). setSoftInputMode (WindowManager. LayoutParams. SOFT_INPUT_STATE_HIDDEN) is not displayed on the default keyboard );
In the OnCreate () function, add "OK.

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.