Italian come trovare tutte le label?

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Io uso:
B4X:
Dim lb as label
For Each v As View In Activity.GetAllViewsRecursive
If v Is Label Then
    lb = v
 

LordZenzo

Well-Known Member
Licensed User
Longtime User
per chi interessa la routine di resize del testo
B4X:
Sub ResiTTS  
    Dim Y,x,te As Float
    Dim i,te1 As Int
    Dim lb As Label
    y=(100%y/800)
    x=(100%x/1280)
    If x<y Then y=x Else x=y
    te=Acc.GetUserFontScale
    te1=(14)*y*(1/te)       ' dimensione 14 del testo
    For Each v As View In Activity.GetAllViewsRecursive
    If v Is Label Then
        lb = v
        lb.TextSize=te1
    End If
      Next
End Sub

Dim Acc As Accessiblity
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Non serve a nulla se non porti fuori "Acc.GetUserFontScale"
 

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Cos'è "Acc.GetUserFontScale"
 
Top