Android - clicking on a widget inside a clickable cardview
问题 After fighting and eventually implementing this: RecyclerView onClick I manage to make the cardviews clickable and long-clickable. This is working well, or maybe too well, because I also want a certain widget inside the cardview to be clickable so when clicking on it, the cardview should ignore the click, what happens now is that both the widget and the cardview, consume the click. Here is the code: The recyclerview: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"