U
unba1300
Guest
Hi.
I'm trying not to ask questions here every time I get stuck, but I've been working on this for several days now and could use some help.
I'm writing an app that will have several layouts, each having several edittexts for data entry, but each layout will have a different number of edittexts. I had it all working fine with a layout that only had five edittexts because I made them a view array and was able to reference them that way, but with a longer list, I'm adding the edittexts with code to a scrollview, but then they all have the same name; although I do give each one a different tag in a loop. So now when I load this layout I haven't been able to figure out how to populate the edittexts from my list file. Something like this in a loop:
does not work since several edittexts are called etName. I think dealing with both tags and view arrays for the same problem has left me confused. Maybe there's a better approach? Thanks for any help.
I'm trying not to ask questions here every time I get stuck, but I've been working on this for several days now and could use some help.
I'm writing an app that will have several layouts, each having several edittexts for data entry, but each layout will have a different number of edittexts. I had it all working fine with a layout that only had five edittexts because I made them a view array and was able to reference them that way, but with a longer list, I'm adding the edittexts with code to a scrollview, but then they all have the same name; although I do give each one a different tag in a loop. So now when I load this layout I haven't been able to figure out how to populate the edittexts from my list file. Something like this in a loop:
B4X:
etName.Text = lstNames.Get(i)