Android Question AHViewPager

gruizelgruis

Member
Licensed User
Longtime User
Hi all,
I'm pulling my hair out because I cant find a solution to the "Initialize" problem i have.


B4X:
Dim ProductenContainer As AHPageContainer '// <-- lib AHPageviewer
Dim ProductPager As AHViewPager

'Initialize the panels we use for the pages and put them in the container
ProductenContainer.Initialize  '/ AHPageViewer <-- 

Dim Pan As Panel
        Pan = CreateProductPanel( MsgPart(1), TempProductList )
        ProductenContainer.AddPage( Pan ,MsgPart(1))

ProductPager.Initialize(ProductenContainer)

I have been at this all day. And I cant find anything that points to a solution.
 

gruizelgruis

Member
Licensed User
Longtime User
Still having some issues I hope some one can help me out.
My project compiles ok. But crashes on this line: "ProductTabs.Initialize(ProductPager)"
I know the APi has changed. Is the AHViewPagerTabs still functional, if so. How do I implement this

B4X:
    Dim ProductenContainer As AHPageContainer '// <-- lib AHPageviewer
    Dim ProductPager As AHViewPager
    Dim ProductTabs As AHViewPagerTabs

ProductenContainer.Initialize
...
...
Pan = CreateProductPanel( MsgPart(1), TempProductList )

    ProductenContainer.AddPage( Pan ,MsgPart(1))
       
    '/ProductPager.Initialize(ProductenContainer)
           
    ProductPager.PageContainer = ProductenContainer
           
    'As we want to show the tabs page indicator, we initialize it
    ProductTabs.Initialize(ProductPager) '/ app stops at this point


 
Upvote 0

Situ LLC

Active Member
Licensed User
The first 2 Dim move to global area an change for private o public. You will see it works happening a few times ..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…