Android keypad enter

Source: Internet
Author: User

Enter, enter, and enter on the keyboard. Android keypad is no exception

After you enter it on edittext, you may need to click the next input box to get the focus, or hide the keyboard. In the input box, the keyboard is displayed.

Or you have entered the last line in the input box. after entering the box, you may need to click Login, registration, or link to hide it, which is complicated. The user experience is poor. Is there a solution?

In fact, the Enter key of the Soft Keyboard can be used to solve the above experience problems.

Keyboard, the most common enter key events include:

Set the ime options attribute of edittext to different values. Different texts or patterns can be displayed on the Enter key.
Actionnone: Enter key. Press the button and move the cursor to the next line.
Actionsend: Send
Actionnext: Next
Actiondone: done to hide the keyboard, even if it is not the last text input box

However, the response time of these values may be limited by different software and hardware platforms. However, I didn't try it, but the conditions are limited.

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.