List view snap to item

后端 未结 6 596
不思量自难忘°
不思量自难忘° 2020-12-02 17:45

I\'m creating a list of pictures using a ListView and the photos are of a size that would fit 2 to 3 photos on the screen.

The problem that I\'m having is that I wou

6条回答
  •  我在风中等你
    2020-12-02 18:08

    Apart from trying the code above one thing you should make sure of is that your listView have a height that can fit exact number of items you want to be displayed. e.g If you want 4 items to be displayed after snap effect and your row height (defined in its layout) should be 1/4 of the total height of the list.

提交回复
热议问题