Omar Abdelhafiz Omar Abdelhafiz - 1 year ago 70
Android Question

I want to make something when done from typing EditText

what is the method I should use to type what will happen after being finished from typing in the EditText?

Please use simple statements and use an example with comments of what happens in that line and what to type in that line.


I wish you got the lines above!!!

Answer Source

you need to add a text watcher to the text view


    myEditText.addTextChangedListener(new TextWatcher() {

        public void onTextChanged(CharSequence s, int start, int before, int count) {

            // Your query to fetch Data

        public void beforeTextChanged(CharSequence s, int start, int count, int after) {


        public void afterTextChanged(Editable s) {
            // Your logic here
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download