PowenKo, Android Tutorial 012-8,EditText ,TextChangedListener,onEditorAction

November 18, 2011   ·   0 Comments

EditText1.setOnEditorActionListener(new OnEditorActionListener() {

       @Override
       public boolean onEditorAction(TextView arg0, int arg1, KeyEvent arg2) {
       if (arg1 == EditorInfo.IME_ACTION_DONE ) {

       	// do something


       }
       return false;
       }
   });

 EditText1.addTextChangedListener(new TextWatcher() {
       @Override
	public void afterTextChanged(Editable s) {}
       @Override
	public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
       @Override
	public void onTextChanged(CharSequence s, int start, int before, int count) { }
});
shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Android7

Amazon

adsbygoogle

Recent Posts

Categories

Amazon