Hello,
Is it possible to add scrollview or similar to assegmented tab so that for large no of tabs say 8-9 can be scrolled horizontally.
Currently if i increase the width say ASSegmentedTab1.Base.Width=550dip only initial tabs are visible
[CODE lang="b4x" title="Activity_Create"]Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
cartBitmap = LoadBitmap(File.DirAssets, "cart.png")
End If
Activity.LoadLayout("1")
ToolbarHelper.Initialize
ToolbarHelper.ShowUpIndicator = True 'set to true to show the up arrow
ToolbarHelper.UpIndicatorDrawable = BitmapToBitmapDrawable(LoadBitmap(File.DirAssets, "hamburger.png"))
ACToolBarLight1.InitMenuListener
sm.Initialize("sm")
Dim offset As Int = 100dip
sm.BehindOffset = offset
sm.Mode = sm.LEFT
Dim lftMenu As Panel
lftMenu.Initialize("")
sm.Menu.AddView(lftMenu, 0, 0, 100%x - offset, 100%y)
lftMenu.LoadLayout("Left")
ASSegmentedTab1.Base.Width=550dip
For i = 1 To 30
ListView1.AddSingleLine("Item " & i)
Next
ASSegmentedTab1.Base.Width=550dip
ASSegmentedTab1.Base.SetColorAndBorder(xui.Color_Black,0,0,0) 'make the view rounded
For i = 0 To 3 -1
ASSegmentedTab1.AddTab("Test " & i,Null)
Next
ASSegmentedTab1.AddTab("Weekly",Null)
ASSegmentedTab1.AddTab("Monthly",Null)
ASSegmentedTab1.AddTab("Yearly",Null)
'ASSegmentedTab1.SelectionPanel.SetColorAndBorder(ASSegmentedTab1.SelectionPanel.Color,0,0,ASSegmentedTab1.SelectionPanel.Height/10)'makes the selector round
End Sub
[/CODE]