Set the most concise solution to disable automatic pop-up of the soft keyboard, keyboard Solution

Source: Internet
Author: User

Set the most concise solution to disable automatic pop-up of the soft keyboard, keyboard Solution

In the Activity list file, add attributes

Android: windowSoftInputMode = "adjustUnspecified | stateHidden"

As follows:

<Activity android: name = ". PulishSellInfoActivity" android: screenOrientation = "portrait" android: windowSoftInputMode = "adjustUnspecified | stateHidden"> </activity>



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.

How can I cancel the Screen Keyboard automatically displayed when I start the system?

Start running
Enter msconfig and find the Startup tab to see if there are any osk startup items (XP is the same, WIN7 should be similar)

If the problem persists, find the auxiliary tool in the control panel and check whether the settings are correct.

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.