开发者

About switching pages in a ListView

开发者 https://www.devze.com 2023-02-18 13:14 出处:网络
I made a ListView that contains 3 rectangles (pages) & they are flicked horizontally, a rectangle is shown at a time & the view switches between them using a button,

I made a ListView that contains 3 rectangles (pages) & they are flicked horizontally, a rectangle is shown at a time & the view switches between them using a button,

I want to know how to prevent the user from switching between them by pressing & dragging pages (he can only go to another rectangle by pressing 开发者_JAVA百科the button)

Thanks,


you should set the "interactive" property to false. it belongs to the "Flickable" class from which "ListView" is derived.

0

精彩评论

暂无评论...
验证码 换一张
取 消