79350964

Date: 2025-01-13 00:48:50
Score: 2
Natty:
Report link

What you're doing with ItemDecoration doesn't work for touch events because it's only for drawing, not interacting. Instead, make the sticky header a separate view outside the RecyclerView. Use a scroll listener to update the header's data and position as you scroll. This lets the header handle clicks and touch events properly.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What you
  • Low reputation (0.5):
Posted by: Jaxon M