android - Handle only one either Recycler view's item click or inside view click -


by following handle button click inside row in recyclerview , issue cardview , onclicklistener in recyclerview code working both view i.e complete row , imageview inside row.

if imageview inside row clicked onclick of row item should not fired, happen following approach in given links

like listview item if give focusable="true" of view inside row onitemclick not fired, if view inside row clicked (only onclick(view) fired.

how make possible recycler view?

you may have better success using listeners can "bubble up" events activity/fragment. should able keep things separate.

here example: https://guides.codepath.com/android/using-the-recyclerview#attaching-click-handlers-using-listeners

i followed tutorial create 1 click on row, , created (on own) handle clicking on button within row.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -