Imeoption in the Android IME

Source: Internet
Author: User

After the SDK has been upgraded to 1.5, when the text input box (EDITTEXT and its subclasses) has the focus, it pops up the system's own soft keyboard
in order to implement some of the custom functions, a little research is done on the following

* When there are multiple edittext in layout and the Android:singleline property of each control is set to True, the text on the soft keyboard's enter key becomes "Next", Press the next edittext will automatically get the focus ("next" function); When the last control gets the focus, the text on the ENTER key becomes "done" and the soft keyboard is automatically hidden when it is pressed

* Set EditText IME Options property to a different value, you can display different text or patterns on the ENTER key
actionnone: Enter, press the cursor to the next line
Actiongo:go,
Actionsearch: A magnifying glass
actionsend:send
actionnext:next
Actiondone:done, hide soft keyboard, even if not the last text input box

Can monitor events with Setoneditoractionlistener

Imeoption in the Android IME

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.