Omar Abdelhafiz Omar Abdelhafiz - 4 months ago 6
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!!!


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