I am using Custom ListView in My Android App. The Problem is when i am scrolling ListView, it automatically clears entered data from EditText( Edittext as a list_item ) and it ListView refreshed. I Want to Prevent it to stop clearing entered data on ListView Scroll.
Please Help me..
I am using Custom ListView in My Android App. The Problem is when i
Share
1) define custom list adapter
2) define a an object for each item like
class MyClass { String myText}3) store the value of the EditText of each item in that object
I have a code for storing the state of CheckBox. use and customize it for EditText.
in your situation you should use
addTextChangedListenerinstead ofsetOnCheckedChangeListener