0
votes

It looks like a rather common thing. I am trying to display a list of EditText controls, like Label1 EditText1 Label2 EditText2 … so that user can edit text “in-place”, and this list has to be shown in Dialog (AlertDialog?). I am using ArrayAdapter to fill the list. The problem is that I can not find the right EditText for its label to get the user-modified values. BTW, It’s hard to believe how many passes the system makes filling the list with getView(). It is also being called when I click on one of EditText. Maybe my approach is wrong and there is a different way to do this?

1

1 Answers

0
votes

Take a look at this example. Note the use of ViewHolder and how they package groups of elements using a container like class and then set the Views tag to point at that object. There is an interesting discussion here as well. To be clear, ViewHolder is just a class you create and define and is more of a pattern then an answer. But it can provide a performance improvement as well as an organizational improvement in many cases. The example may give you other insight into what you are working on.