At some point the library has changed and now it doesn't work as I used to customize the tabs.
After loading the layouts by tabstrip, I call:
The main problems are that it does not take the text size well and only changes the color of the tab text when selecting a tab and not when starting
What is the best way to customize tabs?
Edit: I go back to version v1.24 and it works fine. Is it possible to use the above code in the new version?
After loading the layouts by tabstrip, I call:
B4X:
TabStrip.Initialize(ASTabMenu1, ASViewPager1)
...
TabStrip.AddPage
...
CustomTab
B4X:
Sub CustomTab(TabMenu As ASTabMenu)
TabMenu.TabStripMode = True
TabMenu.text_font = xui.CreateFont2(CustomFontB4X, TabMenu.text_font.Size * 0.8)
TabMenu.TabTextColor = xui.Color_Gray
TabMenu.SelectedTabTextColor = xui.Color_Green
TabMenu.UnderLineHeight = 5dip
TabMenu.UnderLineColor = xui.Color_LightGray
TabMenu.SetTab(TabMenu.CurrentIndex, False, False)
TabMenu.CommitChanges
End Sub
The main problems are that it does not take the text size well and only changes the color of the tab text when selecting a tab and not when starting
What is the best way to customize tabs?
Edit: I go back to version v1.24 and it works fine. Is it possible to use the above code in the new version?
Last edited: