I can easily setonclicklistener(s) for clicking individual views no problem. Problems come when I try to long click individual items, I need to long press twice for them to fire off.
This is the code I used, which is essentially a carbon copy of what you had.
in the onClick method I have it to open an image in a cardView and in the second method onLongClick, I have it set to show toast messages when either one of the textViews are clicked. The thing is they don't respond on the first long press, I need to long press them twice for the toast to show up and I have no idea how to solve this issue. Any help would be welcome
I can easily setonclicklistener(s) for clicking individual views no problem. Problems come when I try to long click individual items, I need to long press twice for them to fire off.
This is the code I used, which is essentially a carbon copy of what you had.
in the onClick method I have it to open an image in a cardView and in the second method onLongClick, I have it set to show toast messages when either one of the textViews are clicked. The thing is they don't respond on the first long press, I need to long press them twice for the toast to show up and I have no idea how to solve this issue. Any help would be welcome