Hi,
I am using the CustomListAdapter example
(http://redth.info/2010/10/12/monodroid-custom-listadapter-for-your-listview)
to generate a dynamic number of EditText widgets in a ListView. In the
GetView() method, I do:
EditText editText =
view.FindViewById<EditText>(Resource.Id.intText);
then save the EditText widgets in a Dictionary to later retrieve values from
them. I created this method to get the values:
public int getEditTextValue(string key)
{
EditText editText;
_editTextMap.TryGetValue(key, out editText);
return Int32.Parse(editText);
}
However, it appears that every call to the GetView() method is returning the
same EditText widget for all of my rows so all values from the above call
are the same.
Does anyone have a suggestion on how to make sure all the EditText widgets
in the GetView() are unique?
Thanx in advance.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Getting-EditText-values-from-dynamic-ListView-tp4403929p4403929.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid