Android Question Vertical Label?

William Lancee

Well-Known Member
Licensed User
Longtime User
You can use the Designer Script Extension. You won't see the results in designer, but when you run the code it will be there.

Put this in B4XMainPage
B4X:
Private Sub RotateView(DesignerArgs As DesignerArgs)
    If DesignerArgs.FirstRun Then
        Dim v As B4XView = DesignerArgs.GetViewFromArgs(1)
        Dim angle As Float = DesignerArgs.Arguments.Get(0)
        v.Rotation = angle
    End If
End Sub

In the Designer: Script section, add
B4X:
'All variants script
B4XMainPage.RotateView(-90, Label1)
 
Upvote 1
Cookies are required to use this site. You must accept them to continue using the site. Learn more…