Android Question Create view ( labels) dynamically in a for loop

Dianzoa

Active Member
Licensed User
Hello friends!
Is there a way to create different views (labels in my case) in for loop like this?

for i = 0 to rows.size -1
Dim lbldistest As Label
lbldistest.Initialize("distest" & i)
lbldistest.Text = pedidoSolicitadoDetalle.dist_estimada
lbldistest.TextSize = 24

next

Is there a way to name them dynamically?
 

Peter Simpson

Expert
Licensed User
Longtime User
Upvote 0

Dianzoa

Active Member
Licensed User
Hey, bro! I will look at it! .Thanks so much, I will comment about it when I can, I'll share my advances in the matter.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…