Android Question [B4X] [XUI] AsViewPager touch event for B4XRulerPicker child view

AymanA

Active Member
Licensed User
I am using B4XRulerPicker as a child view for AsViewPager; however the touch event for the ruler seems is affected by the parent.

I have tried multiple options and tried to set Scroll to false to overcome this but didn't work.

I have attached a small project that shows the difference when adding the ruler view directly to the layout as opposed to be the child of the AsViewPager.

Thank you for your help!
 

Attachments

  • Project.zip
    18 KB · Views: 182

Alexander Stolte

Expert
Licensed User
Longtime User
Very difficult on Android. The ASViewPager is based on the xCustomListView and this is based on the HorizontalScrollView in horizontal mode. Even the ASViewPagerNative has problems and this is based on a native ViewPager. No idea what to do about it. Sorry for this.
 
Upvote 0

AymanA

Active Member
Licensed User
Thank you so much for your reply and for this awesome library!

No worries, I am glad that I have not wasted more days trying to solve it, so thank you for your help! :D
 
Upvote 0
Top