Android Partial Attribute Learning

Source: Internet
Author: User

Android:imeoptions Property

Talk about personal understanding, set the display of the next/complete button in the software disk, if you need to listen to the button event in the software disk, you need to implement Setoneditoractionlistener

In fact, commonly used words, is the font display next, complete or send, search ... The specific values are

Normal Actiongo    actionsearch    actionsend    actiondone    actionprevious    flagnofullscreen    Flagnavigateprevious    corresponds Flagnavigatenext

Not finished, this looks like still no effect, right, need to add

Android:inputtype= "Text"
Android:singleline= "true"

That's it.

You can listen for events in the keypad by using the following code

Edittext.setoneditoractionlistener (new  Textview.oneditoractionlistener () {            @Override              Public Boolean int ActionId, KeyEvent event) {                Toast.maketext (mainactivity). this, "sending", Toast.length_short). Show ();                 return true ;            }        });

(tested)

Reference articles

http://liliang1222.iteye.com/blog/1130062

http://blog.csdn.net/lastdream/article/details/24365633

Learn, save experience ing

Android Partial Attribute Learning

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.