Android Question {class} iMashPager to aMashPager using HorizontalScrollView

Mashiane

Expert
Licensed User
Longtime User
Hi there

I'm working on sliding panels using the same ahviewpager approach I did for my b4i project here. Whilst there are other pagers here, I just wanted to use the same approach in both my b4a and b4i code bases for maintenance and conversion purposes. My approach here is using a HorizontalScrollView.

For some reason, the page_changed event does not always fire including the gotopage method which is meant to scroll to a particular page.

A small project with the class is included and I would appreciate some help please solving this.

Problems:
  • page_changed event does not always fire for the second page i.e 1, page 0 and 2 work well.
  • gotopage method does not scroll to the respective page provided

Regards with thanks

Mashy
 

Attachments

  • aMashPager.b4a.zip
    7.2 KB · Views: 281
  • pg1.png
    pg1.png
    7.6 KB · Views: 339
Top