Skip to content

Individual setOnLongClickListener requires two long presses #3

@epicmau5time

Description

@epicmau5time

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions