Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 17
Registered: ‎06-19-2013
My Device: BlackBerry Z10
My Carrier: O2

How to control how much is scrolled

I am using a horizontal scrollview containing images but when i flick my finger horizontally it will only scroll a little compared to the width of the image - ideally i would like it to scroll the full width of the image and show the next image in the scrollview - what would i need to do to accomplish this?

 

Thanks.

Highlighted
Developer
Posts: 293
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: How to control how much is scrolled

Use the flickMode and snapMode properties in the ListView

flickMode: FlickMode.SingleItem
snapMode: SnapMode.LeadingEdge

Contributor
Posts: 17
Registered: ‎06-19-2013
My Device: BlackBerry Z10
My Carrier: O2

Re: How to control how much is scrolled

I cannot use listview as these horizontal scrollable components are already in a list and I have spent 2 days trying to get lists within a list working - see previous post if interested - so I am now using scrollviews which doesn't have flick mode.