Connecting list view and a button
-
I have a list view which displays two objects at a time while the rest is hidden behind the frame . I want to have a down button which whenever clicked displays the hidden objects of the list view one at a time . Can anyone help
@vishu_fcb It's difficult to understand what you mean. What is "the frame"? Does the list view size change or should it scroll the items inside it so that they become visible and the old ones are hidden?
-
Set thr ListView property snapMode as,
snapMode: ListView.SnapOneItem
And use the methods,
ListView.incrementCurrentIndex() ListView.decrementCurrentIndex()
On click of buttons.
Also refer the method,
ListView.positionViewAtIndex(int index, PositionMode mode)
-
Set thr ListView property snapMode as,
snapMode: ListView.SnapOneItem
And use the methods,
ListView.incrementCurrentIndex() ListView.decrementCurrentIndex()
On click of buttons.
Also refer the method,
ListView.positionViewAtIndex(int index, PositionMode mode)