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
Public Sub LocalizeB4XFloatText(ft As B4XFloatTextField)
ft.HintText = strings.GetDefault(ft.HintText, ft.HintText)
ft.Text = strings.GetDefault(ft.Text, ft.Text)
End Sub
Did you try to change it in the abstract designer. There is a line: Hint text. Change it from : 'Hint' to say 'Greek'. I think that is all you need to do