Doist / RecyclerViewExtensions

RecyclerView made easier.
MIT License
493 stars 42 forks source link

Sticky headers pass touch events to the list item below #20

Closed mobilekosmos closed 6 years ago

mobilekosmos commented 6 years ago

Hello, it is supposed that the list goes below the sticky header, when the backgorund of the header is transparent you can see this happening, the problem is, while the backgound is opaque, you touch the header and list item currently below of the header gets selected.

mobilekosmos commented 6 years ago

Ok, this happens if you set clickable and focusable to false in the layout for the header, setting them to true solves the problem.

goncalossilva commented 6 years ago

Indeed, it's just a view on top of the others. By default if a view isn't focusable it'll let touches pass below it.