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

没有长按的情况下(删除按钮不出现),单独的item点击事件没有做处理 #9

Closed
ltym2016 opened this issue Jun 28, 2017 · 4 comments

Comments

@ltym2016
Copy link

没有长按的情况下(删除按钮不出现的情况),单独的item点击事件没有做处理?

@LightSun
Copy link
Owner

目前确实没处理。 你有这个需求?

@LightSun
Copy link
Owner

这个本来就是编辑标签用的。

@ltym2016
Copy link
Author

ltym2016 commented Jul 2, 2017 via email

@LightSun
Copy link
Owner

LightSun commented Jul 5, 2017

这样使用即可。不过需要注意。自己要去处理点击标签和非标签的情况
mDragflowLayout.setOnItemClickListener(new DragFlowLayout.OnItemClickListener() {
@OverRide
public boolean performClick(DragFlowLayout dragFlowLayout, View child, MotionEvent event, int dragState) {
Logger.w(TAG,"performClick","");
return true;
}
});

@LightSun LightSun closed this as completed Jul 5, 2017
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