Android Soft Keyboard Enter key

Source: Internet
Author: User

Enter key, enter key, enter the keyboard on the computer to have a variety of responses. Android Soft Keyboard is no exception

After you enter on the EditText, want to enter the box in the next line, you may need to click on the next line of input box, let it get focus, you may want to hide the soft keyboard, click on the input box, pop-up soft keyboard.

or already to the last line input box, after the input is finished, to click Login, registration, or link button, you may want to hide it, feel the operation is cumbersome. User experience is not good, there is no solution?

You can actually use the soft keyboard's enter key to solve the above experience problem.

Soft keyboard, the most commonly used enter key events are:

Set the EditText IME options property to a different value, and you can display different text or patterns on the ENTER key
Actionnone: Enter, press the cursor to the next line
Actionsend:send
Actionnext:next
Actiondone:done, hide soft keyboard, even if not the last text input box

However, these value response times may be subject to different software, hardware platform limitations, but I did not try, limited conditions

Android Soft Keyboard Enter key

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.