Passing touch events to the parent view

后端 未结 9 1245
情书的邮戳
情书的邮戳 2020-11-27 05:25

I have a custom ViewSwitcher in which I implemented touch events so I am able to scroll through screens using the touchscreen.

My layout hierarchy looks

9条回答
  •  野性不改
    2020-11-27 05:56

    Did you try setting the ListView items as non-clickable like this: listView.setClickable(false); This should propogate the click event upwards.

提交回复
热议问题