please check b4i seems not to work here.Add ViewEnable - enable or disable the view
fixed in 1.15please check b4i seems not to work here.
ld: library not found for -lASViewPager
Hi Alexander StolteASTabStrip
Author: Alexander Stolte
Version: 1.00
- ASTabStrip
- Functions:
- AddPage (tab_background_color As Int, tab_text As String, tab_icon As B4XBitmap, tab_tag As Object, pager_layout As B4XView, pager_value As Object) As String
- Initialize (TabMenu As com.as.tabstrip.astabmenu, ViewPager As com.as.tabstrip.asviewpager) As String
Initializes the object. You can add parameters to this method if needed.- IsInitialized As Boolean
Tests whether the object has been initialized.- RemovePage (index As Int) As String
- TabMenu_TabClick (index As Int) As String
- ViewPager_PageChanged (index As Int) As String
AsTabStrip1.PageCount
AsTabStrip1.RemoveAllPages
AsTabStrip1.TopPageIndex
Can create AddPage with new pages (LoadLayout) ? Can give me example for that? thanks before
Dim xpnl As B4XView = xui.CreatePanel("")
xpnl.SetLayoutAnimated(0,0,0,Root.Width,Root.Height)
xpnl.LoadLayout("YourLayout")
ASTabStrip1.AddPage(xui.Color_Black,"Test",Null,"",xpnl,"")
Thanks @Alexander Stolte , i will try your codeB4X:Dim xpnl As B4XView = xui.CreatePanel("") xpnl.SetLayoutAnimated(0,0,0,Root.Width,Root.Height) xpnl.LoadLayout("YourLayout") ASTabStrip1.AddPage(xui.Color_Black,"Test",Null,"",xpnl,"")
well the bilbiothek is so simple, it only switches the index in the TabMenu when you change the page in the ViewPager and vice versa. Best to open the .B4XLib and look inside, there is hardly any code.Is it possible this tabstrip hold a tabmenuadvanced?
No.Can be added ASTabMenu and ASViewPager without designer?
Can be added in future update?No.
What's so bad about the designer? You guys are making way too much work for yourselves...
There are absolutely no advantages to adding views by code, in fact quite the opposite, there is only downside by doing so.
No!Can be added in future update?