Edittext/checkbox Text/value Inside The Listview
I have a ListView and inside that listview , EditText or 'CheckBox' means chekbox for the first 7 rows then Edittext is visible for other rows. Now I want the values of these rows
Solution 1:
I recommend you to set the id to every EditText in code. Like: holder.text2.setId(position);
You should put it into your else
, I mean after this: /************ Set Model values in Holder elements ***********/
This way you will be always able to get text from all your EditText like this:
for(int i=0;i<data.size();i++){
EditText et=(EditText)vi.findViewById(i);
if(et!=null)
//Get the text from EditText
}
Post a Comment for "Edittext/checkbox Text/value Inside The Listview"