How To Get Edittext Text Inside Listview
I have an EditText inside the ListView of 20 rows. I want the text of all the Edittext text on clicking of the button. The App gets crash giving the NullPointerException Error on c
Solution 1:
use vListSortOrder=list.getAdapter().getView(i, null, null);
in stead of vListSortOrder=list.getChildAt(i);
Thanks
Solution 2:
you must store contents of editext and other information to show in listview in a model, and create arraylist of that model. This help you maintaing the list item state on scroll and also to get proper content.
And on Button click get the content from arraylist of that model...
Post a Comment for "How To Get Edittext Text Inside Listview"