Skip to content Skip to sidebar Skip to footer

EditText TextChangeListener Called Multiple Times

In this particular scenario the ExpandableList is suppose to show 2 list as group. When a user selects the checkbox, it add the value to the EditText and thats where the TextChange

Solution 1:

Solved it myself.

  1. Placed all the view[CHECKBOX, EDITTEXT, TEXTVIEW] for the getGroupView() method within ViewHolder class [which is nothing but a class which contain views].

  2. Saved it using settag() method of the "view" object which is a parameter of the getGroupView() method if the "view" parameter returned null.

  3. Retrieved the views using getTag() and initialized the ViewHolder object from it if the "view" parameter is not null.


Post a Comment for "EditText TextChangeListener Called Multiple Times"