SnapMode

Since: BlackBerry 10.0.0

#include <bb/cascades/SnapMode>

Represents different types of snap modes for a ListView.

Snapping is used in ListView to align items to the borders of the visible area of the ListView.


Overview

Public Types Index

enum Type

Default = 0x0, None = 0x1, LeadingEdge = 0x2

Public Types

Type

Represents the different types of snap modes.

Since:

BlackBerry 10.0.0

Default = 0x0

Let the framework decide the snap mode.

Since:

BlackBerry 10.0.0

None = 0x1

Snapping is disabled.

Since:

BlackBerry 10.0.0

LeadingEdge = 0x2

Align the leading edge of an item to the leading edge of the visible area of the ListView.

In a top-to-bottom ListView layout, the first visible item in the list is aligned to and snaps to the top of the ListView. In a bottom-to-top layout, the last visible item in the list is aligned to and snaps to the bottom of the ListView, and so on.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus