https://kotlinlang.org logo
#android
Title
# android
e

ed_mayen

10/08/2020, 7:21 PM
Hi guys! Anyone know of a way to disable a click on the first position of the recyclerview? I got a recyclerview with implementation of onClickListener but I need to disable the click only for the first position, anyone know how to do it?
stackoverflow 2
m

Matthew Laser

10/08/2020, 8:00 PM
off the top of my head, you could do some version of
viewHolder.itemView.clickable = position != 0
while binding
👍 2
e

ed_mayen

10/08/2020, 8:10 PM
Ok, I'm gonna try it Thank you so much
🤘 1