I would like to scan through the views in an activity and then set/reset the text value of a view depending on the text (or tag value).
The problem is the VIEW type doesn't have a text value that you can read or set as you go through all the views in an activity.
In an older post the following was proprosed by Erel to get the text value:
https://www.b4x.com/android/forum/threads/how-to-get-text-field-of-all-the-view.14925/#post-377675
Is there a way of setting the text value of a view in a similar way?
The problem is the VIEW type doesn't have a text value that you can read or set as you go through all the views in an activity.
In an older post the following was proprosed by Erel to get the text value:
https://www.b4x.com/android/forum/threads/how-to-get-text-field-of-all-the-view.14925/#post-377675
B4X:
For i = 0 To Activity.NumberOfViews - 1
Dim lbl As Label
IfActivity.GetView(i) Is Label Then
lbl = Activity.GetView(i)
Log(lbl.Text)
End If
Next
Is there a way of setting the text value of a view in a similar way?