Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果想加一个长按事件怎么做啊? #48

Open
niuchongfree opened this issue Nov 17, 2017 · 1 comment
Open

如果想加一个长按事件怎么做啊? #48

niuchongfree opened this issue Nov 17, 2017 · 1 comment

Comments

@niuchongfree
Copy link

项目需要单个图片长按的事件,很头疼

@MirrorFlower
Copy link

去修改库吧,在ImagePreviewAdapter的instantiateItem方法中添加:
imageView.setOnLongClickListener(new View.OnLongClickListener() {
@OverRide
public boolean onLongClick(View view) {
Toast.makeText(context,"长按了",Toast.LENGTH_SHORT).show();
return true;
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants