Android Question Troubles on centering panel on AsViewPager

EduardoElias

Well-Known Member
Licensed User
Longtime User
Hi There !

View attachment 117364

This oragem area is the ASViewPager.

B4X:
    Private pnl As B4XView = xui.CreatePanel("")
    pnl.SetLayoutAnimated(0,0,0,ViewPagerPlaces.Base.Width,ViewPagerPlaces.Base.Height)
    pnl.LoadLayout("cardPark")
    ViewPagerPlaces.AddPage(pnl, "")

I have painted the ASVIewPager as orage to make easy to demonstrate.

1) I need that the Layout loaded to be centered.

2) Besides I have set the AS View Changer to Carrousel does not make the effect of changing pages. (I repet that same code some times for testing

3) the panel on the layout loaded has the corners rounded on the designer, but it is not showing that
 
Top