I have a listview with Textview and EditText in it. Now i want to fetch the value of that Textview and EditText I get the value of the TextView but not EditText. It gives me Blank value for the EditText.
Please Help Me
for (int i = 0; i < list.getCount() ; i++) {
View v = adapter.getView(i, null, null);
ClassA obj = new ClassA ();
obj = (ClassA) v.getTag();
String Text = obj.edittext1.getText().toString();
}
I thought you set listener at the time editText is have no value.
Instead of it sent your editText to Listner and then extract value from editText.
in your main class add a
and a setter method to this editTextList
In your adapter when one view is generated add your editText this view but to do that send a Main activity object in constructor.
Like
now after setting editView in your adapter