looking to implement a wall (GridView?) that goes off-screen and user can touch to move it around

后端 未结 4 1832
半阙折子戏
半阙折子戏 2021-02-05 08:13

Desired effect I have a bunch of small images that I\'d like to show on a \"wall\" and then let the user fling this wall in any direction and select an image.

4条回答
  •  情书的邮戳
    2021-02-05 08:48

    I have implemented a GridView that overrides the onInterceptTouchEvent methods. I set the OnTouchListeneras explained by Fuzzical Logic. My issue is that setting a custom OnTouchListener, the objects of my gridView are not clickable anymore. Is that because the default OnTouchListener of a GridView calls onItemClickListener ?

    I would like to have a 2 directions scrollable GridView but that has still cliackable objects. Should I implement my own method to check whether a touch matches a item or is there a easier way to achieve this ?

    Grodak

提交回复
热议问题