0

I'm following this guide to create a listview with textviews and eddittexts in it. http://www.webplusandroid.com/creating-listview-with-edittext-and-textwatcher-in-android/ When I try to get values from listview items, I get only textviews values. It seems impossible getting text from the edittext based on listview position. I use lv.getItemAtPosition(0).toString()) to retrieve values

Bitle Apps
  • 148
  • 8

1 Answers1

0

Following: Android: Access child views from a ListView

int wantedChild = 1;
View wantedView = listview.getChildAt(wantedChild);
mEditText = (EditText) wantedView.findViewById(R.id.edittext);
Log.d("result",(mEditText.getText().toString()));
Community
  • 1
  • 1
Spidersaw
  • 344
  • 2
  • 4
  • 12