Android Question [Solved] Two lines in a tab of TabStripViewPager

asales

Expert
Licensed User
Longtime User
Is possible to have two lines in a tab of TabStrip, like this?


I tried this code, but don't works:
B4X:
tsProfile.LoadLayout("Layout5", "PROFILE")
tsProfile.LoadLayout("Layout6", "DOCUMENTATION" & CRLF & "ACCOUNTS")

Thanks in advance for any tip.
 

Mahares

Expert
Licensed User
Longtime User
Thanks in advance for any tip.

And if you want to add a little flair to the tabstrip label with csbuilder, use this:
B4X:
tsProfile.LoadLayout("Layout6", "")
.....
Dim lbl As Label = GetAllTabLabels(TabStrip1).Get(1) '2nd tab in your example
    lbl.SingleLine = False
    Dim cs As CSBuilder=lbl
    cs.Initialize.Size(16).Typeface(Typeface.MONOSPACE).Color(Colors.Red)
    cs.Append("DOCUMENTATION").Pop.append(CRLF).color(Colors.Blue).Append("ACCOUNTS").PopAll
    lbl.Text=cs
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…