Hi, All
Just to make app translation using AHLocale with Get.Text, i need to make a loop getting all the views, but need to check if TEXT field exists to try to get this text to be translated.
"View" type has no TEXT field, how to get it universally from all view types, if exists ?
Just to make app translation using AHLocale with Get.Text, i need to make a loop getting all the views, but need to check if TEXT field exists to try to get this text to be translated.
B4X:
Sub GetAllTexts (Activity As Activity)
Dim a As View
For i=0 To Activity.NumberOfViews - 1
a = Activity.GetView(i)
If a.text - 'no TEXT field, as not all views have it
Next
End Sub
"View" type has no TEXT field, how to get it universally from all view types, if exists ?