Hi guys! Anyone know of a way to disable a click ...
# android
e
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
off the top of my head, you could do some version of
viewHolder.itemView.clickable = position != 0
while binding
👍 2
e
Ok, I'm gonna try it Thank you so much
🤘 1