Android Question CustomListView in ASViewPager

angel_

Well-Known Member
Licensed User
Longtime User
I use CustomListView with TabStripViewPager, is it possible to use CustomListView in ASViewPager? something like this

TabStrip:
TabStrip1.LoadLayout("LayoutCustomListView1", "Tab1")

Dim pnl1 As B4XView = xui.CreatePanel("")
pnl1.SetLayoutAnimated(0, 0, 0, 100%x, 100%y)
pnl1.LoadLayout("Layout1")
CustomListView1.Add(pnl1, "")
 

angel_

Well-Known Member
Licensed User
Longtime User
I think I found a solution

B4X:
    Dim pnl0 As B4XView = xui.CreatePanel("")
    pnl0.SetLayoutAnimated(0, 0, 0, 100%x, 100%y)
    
    Dim pnl1 As B4XView = xui.CreatePanel("")
    pnl1.SetLayoutAnimated(0, 0, 0, 100%x, 100%y)
    
    Root.LoadLayout("LytASTabMenu")    'CustomListView1 con ASTabMenu
    
    pnl0.LoadLayout("LytASViewPager")
    CustomListView1.Add(pnl0, "")
    
    TabStrip.Initialize(ASTabMenu1, ASViewPager1)
    
    pnl1.LoadLayout("Layout1")
 
Upvote 0
Top