angel_ Well-Known Member Licensed User Longtime User Jul 5, 2020 #1 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, "")
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 Jul 5, 2020 #2 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
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")
Alexander Stolte Expert Licensed User Longtime User Jul 5, 2020 #3 angel_ said: is it possible to use CustomListView in ASViewPager? Click to expand... Yes it is. Upvote 0