0

I have a BottomSheet with some non-clickable content. This BottomSheet is sliding over a RecyclerView.

Problem is when I tap on the BottomSheet, the RecyclerView item behind it fires (which of course shouldn't happen). The list also scrolls when scrolling on the BottomSheet.

I've tried to set android:clickable=false on the container of the BottomSheet with no effect.

Is there an obvious trick for preventing that?

Ambran
  • 2,367
  • 4
  • 31
  • 46

1 Answers1

1

You need to set android:clickable=true on the container of the BottomSheet instead of android:clickable=false.

buzzingsilently
  • 1,546
  • 3
  • 12
  • 18