FlickMode

Since: BlackBerry 10.0.0

#include <bb/cascades/FlickMode>

Represents different types of flick modes for a ListView.

Flicking is a gesture used to scroll a ListView. The gesture involves a touch, drag, and release motion along the layout axis of the list. For the flick behavior to be triggered, there must be sufficient speed in the motion of the gesture, unless FlickMode::None is specified in which case flicking is disabled.


Overview

Public Types Index

enum Type

Default 0x0, None 0x1, Momentum 0x2, SingleItem 0x3

Public Types

Type

Represents the different types of flick modes.

Since:

BlackBerry 10.0.0

Default 0x0

The default flick gesture, which is currently set to Momentum.

None 0x1

Flick gestures are disabled.

Since:

BlackBerry 10.0.0

Momentum 0x2

A flick gesture along the layout axis generates a momentum scroll effect proportional to the speed of the flick gesture.

Since:

BlackBerry 10.0.0

SingleItem 0x3

A flick gesture along the layout axis scrolls the ListView a single item in the direction of the flick.

When the flick occurs, the leading edge of the next item becomes aligned with the top of the ListView.

Note:

SingleItem is only supported for a ListView that uses a StackListLayout.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus