EditText get the listener after change text

December 11, 2013   ·   0 Comments

Screen Shot 2014-11-17 at 9.54.17 AM
TextView tv = (TextView)findViewById(R.id.tv);
    textMessage = (EditText)findViewById(R.id.textMessage);
    textMessage.addTextChangedListener(new TextWatcher(){
        public void afterTextChanged(Editable s) {
            tv.setText(String.valueOf(i));
        }
        public void beforeTextChanged(CharSequence s, int start, int count, int after){}
        public void onTextChanged(CharSequence s, int start, int before, int count){}
    }); 

layout in here

<RadioGroup

		android:id="@+id/segment01"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
   <RadioButton
android:id="@+id/button_two"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_weight="1"
       android:layout_gravity="center|left"/>
   <RadioButton
android:id="@+id/button_two"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_gravity="center|right" />
    </RadioGroup>
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