iOS Question Label Text Color in B4i?

nazilabdulla

Member
Licensed User
Longtime User
What is the corresponding code for the following in b4i

Dim lbSample As Label
Dim jo As JavaObject = v

' jo.RunMethod("setTextColor", Array As Object(lbSample.TextColor))
 

Semen Matusovskiy

Well-Known Member
Licensed User
You don't need JavaObject in B4A and NativeObject in B4I.
B4X:
For Each v As View In HSVHead.Panel.GetAllViewsRecursive
      If v Is Label Then          
            Dim myLabel As Label = v
            myLabel.TextColor = lbSample.TextColor
      End If        
Next
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…