What about if you try to involve the Tag property. Something like this works, but I have not applied it to accessibility to see if it works. In designer put 0 in the regular label tag and 1 in the AutoTextSizeLabel tag
Code:
Sub ResetUserFontScale(p As Panel)
For Each v As B4XView In p.GetAllViewsRecursive
If v Is Panel Then
v.Color=xui.Color_Magenta
Else if v Is Button Then
Dim b As Button=v
b.Color=xui.Color_Green
b.Text="Click me"
b.TextSize=40
Else if v Is Label Then
Dim lbl As Label = v
If lbl.Tag ="0" Then 'in designer put 0 in the regular label tag and 1 in the AutoTextSizeLabel tag
lbl.Text= "I am just a label"
lbl.Color=xui.Color_Yellow
lbl.TextSize= 30
Else if lbl.Tag ="1" Then
lbl.Text= "I am AutoTextSizeLabel"
lbl.Color=xui.Color_Blue
lbl.TextSize=10
End If
End If
Next
End Sub