I read this somewhere here and I totally lost it, but could use some assistance.
My app is pulling the column names from sqlite into an array. I want to create a textview and edit text for each one (via the size of the array), and I remember reading somewhere that you can treat the textViews variable names like an array, but I don't know where that is now.
So how would I dynamically create a textView and editText for however many listings are in an array?
It was something like
TextView tv[] = new TextView()...
for(...){
tv[i]...
}
Is this right?
I appreciate your help!
EditText
s inListView
s. The first is a focus issue which can be solved (see #2680448) but if you are usingEditText
s actually as list items rather than footer/headers then there is also the issue of view recycling - meaning you need to save the text of theEditText
before it goes off-screen and gets recycled. – Eirena