i am using multiple edittext in a scrollview
when checking for enterpressed or gotfocus i always get the data of the last edittext in the scrollview not the one i am using
Dim edtxt(listitems.size) As B4XView 'number of edittext
For i = 0 To listitems.size -1 'your list
Dim myEdTXT As EditText
myEdTXT.Initialize("etView")
edTXT(i) = myEdTXT
edtxt(i).Tag = i
Next
Tip: It's almost always better to use CustomListView instead of ScrollView. Even in your case, since it seems to me that all elements have the same layout (which would be better to load from file).
Dim edtxt(listitems.size) As B4XView 'number of edittext
For i = 0 To listitems.size -1 'your list
Dim myEdTXT As EditText
myEdTXT.Initialize("etView")
edTXT(i) = myEdTXT
edtxt(i).Tag = i
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.