daimajia / daimajia/AndroidViewHover

Doesn't work properly on button OnClickListener

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.2k
Forks
712
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm trying to add a view hover when I click on a button inside a view, so when I click on the button the view hover doesn't appear, but when I click under the button it works. Here's my code:

viewHolder.commentImageButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
v = LayoutInflater.from(viewHolder.context).inflate(R.layout.hover_home_adapter, null);
viewHolder.hoverLayout.setHoverView(v);
}
});

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.