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
Developer
Posts: 22
Registered: ‎03-05-2011
My Device: Not Specified
Accepted Solution

Reduce ListView sensibility

Hey,

I'm having trouble scrolling the items in my scrollview, this are the properties:

layout: FlowListLayout {

                        orientation: LayoutOrientation.LeftToRight

                    }

  •  snapMode: SnapMode.LeadingEdge
  •  scrollIndicatorMode: ScrollIndicatorMode.ProportionalBar
  •  touchPropagationMode: TouchPropagationMode.Full

Characteristics:

  •  each item in the listView has 768 width(the width of the alpha in portrait mode) and 500 height.
  •  Each Item contains an ImageView
  •  there are 5 items in the ListView

 

When I scroll with my finger with normal speed, the flow will go till 2 more items not just the next one. One solution is to scroll very slowly just to go to the next one. But this may become a bit anoying for the user.

I would only like to reduce the speed of the flow. Is there any property?

I tried this:

 onCreationCompleted: {

                      setScrollStops([[0, 1], [1, 1]]);

                    }

But the truth is i dont really understand the parameters passed to the function. If this is a asolution can anyone explain how it works?

Highlighted
Developer
Posts: 22
Registered: ‎03-05-2011
My Device: Not Specified

Re: Reduce ListView sensibility

still no solution??

New Contributor
Posts: 9
Registered: ‎11-08-2012
My Device: BB 10
My Carrier: Divum

Re: Reduce ListView sensibility

Developer
Posts: 87
Registered: ‎07-23-2009
My Device: Z30
My Carrier: XL

Re: Reduce ListView sensibility

agree with manu_dazlia; you should set

 

snapMode: SnapMode.LeadingEdge
flickMode: FlickMode.SingleItem

 on your ListView

Developer
Posts: 22
Registered: ‎03-05-2011
My Device: Not Specified

Re: Reduce ListView sensibility

Thank you very much! That perfectly solves it !!