Android Example [B4X] AS SegmentedTab - Custom tab width


AS SegmentedTab Custom Tab Width.gif


B4X:
    ASSegmentedTab3.mBase.Color = xui.Color_ARGB(255,42, 156, 255)
    ASSegmentedTab3.SelectionPanel.Color = xui.Color_White
    ASSegmentedTab3.ItemTextProperties.TextColor = xui.Color_Black
    ASSegmentedTab3.ItemTextProperties.SelectedTextColor = xui.Color_Black
    ASSegmentedTab3.CornerRadiusBackground = 8dip
    ASSegmentedTab3.CornerRadiusSelectionPanel = 8dip
    ASSegmentedTab3.PaddingSelectionPanel = 4dip
    
    '*********CustomTab************
    Dim Tab1 As ASSegmentedTab_Tab
    Tab1.Initialize
    Tab1.Icon = ASSegmentedTab3.FontToBitmap(Chr(0xE068),True,15,xui.Color_White)
    Tab1.Width = 40dip
    ASSegmentedTab3.AddTabAdvanced(Tab1)

    ASSegmentedTab3.AddTab("Inizio",Null)
    ASSegmentedTab3.AddTab("Fine Prova",Null)
 

Attachments

  • AS SegmentedTab Custom Tab Example.zip
    178.1 KB · Views: 151

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Just tried this example.
Came out looking like this: The tab size for the other tabs is still set to the original 1st tab size.
Checked the version of the B4xLib and its V1.19
I amigine its a version issue.

Thanks.

1704782408255.png
 

Alexander Stolte

Expert
Licensed User
Longtime User

Alexander Stolte

Expert
Licensed User
Longtime User
is fixed in V1.20

The problem was the SetCircleClip function.
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Version 1.19 is the latest.


The problem is that I only tested it in B4A and B4I and not in B4J, because this behavior only occurs in B4J.
I will fix it in the next update.

Funny part being I looked at it in B4J for a project in B4A. :)
Thanks for the fix. Great control.
 
Top