Android Question [SOLVED] TabStripViewPager Replace Layout ? (LoadLayout)

Magma

Expert
Licensed User
Longtime User
Hi there...

just have 1 month using now the TabstripViewPager seems fantastic... but i have one question... how can i replace layout of a tab/page?

For exampe:
B4X:
    TabStrip1.LoadLayout("1", "first page")
    TabStrip1.LoadLayout("2", "second page")
    TabStrip1.LoadLayout("3", "third page")

....
...
    TabStrip1.LoadLayout("3a", "third page")
' That will add a new tab/page - i just wanna replace "third page"

Is that possible ?
 

Magma

Expert
Licensed User
Longtime User
I have a problem...

after some loadlayouts the top and left of basepanel moves down and right...

layouts.jpg
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
..Is just the continue of the thread... but it helps i ll post again the part of code... if not that helps tell to post the zip (thanks for fast answer)
B4X:
TabStrip1.LoadLayout("1", "first page")
TabStrip1.LoadLayout("2", "second page")
TabStrip1.LoadLayout("3", "third page")
....
BasePanel.RemoveAllViews
BasePanel.LoadLayout("3a")

The "3" and "3a" designer files have inside a pane named basepanel and have anchors hor:LEFT / vertical:TOP

and here was the error at the designer .left=10 and .top=10 not zero...

so every time was loading layout was going 10 step dip down and right!
 
Upvote 0
Top