Hey everyone,
I tried to add to the Localizator some code to translate the B4XFloatText hint text but I did not succeed. Here is what I have done:
I am debugging and I can see that the HintText was changed correctly but it does not show on screen
What I did next was this which suggests that probably it will be much more difficult to translate HintText since it is an ImageView. Is that correct? How can I do that?
I tried to add to the Localizator some code to translate the B4XFloatText hint text but I did not succeed. Here is what I have done:
Translate B4XFloatText:
For Each v As View In Activity.GetAllViewsRecursive
If v.Tag Is B4XFloatTextField Then
Dim ft As B4XFloatTextField = v.Tag
ft.HintText="OK CHANGED"
Exit
End If
Next
I am debugging and I can see that the HintText was changed correctly but it does not show on screen
What I did next was this which suggests that probably it will be much more difficult to translate HintText since it is an ImageView. Is that correct? How can I do that?
Check B4XFloatText's views:
For Each v As View In Activity.GetAllViewsRecursive
If v.Tag Is B4XFloatTextField Then
Log(v)
Dim p As Panel = v
For Each w As View In p.GetAllViewsRecursive
Log(w)
If w Is Label Then
Dim l As Label = w
If l.Text = "OLD TEXT" Then
l.Text = "OK CHANGED"
End If
End If
Next
Exit
End If
Next