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包含的是gridview样式 我要分别点击执行不同的时间逻辑 怎么搞 #41

Closed
hxingever opened this issue Dec 3, 2016 · 1 comment

Comments

@hxingever
Copy link

有个item包含的是gridview样式 我要分别点击gridview中的item执行不同的事件逻辑 怎么搞 ??
除了extends MultyTypeAdapter 加个setOnItemClickListener方法可以实现之外 还有其他更好的方式吗
一般的事件都是可以在ItemViewProvider中实现
qq 20161203100834
但是如果像gridview这种我要分别点击执行不同的时间逻辑还有更好的方法么?image

@drakeet
Copy link
Owner

drakeet commented Dec 3, 2016

这是很容易的事情,在 Item View Provider 内部进行即可,或者你也可以由 Provider 提供出接口方法。详情见我的详解文章:https://drakeet.me/effective-multitype

@drakeet drakeet closed this as completed Dec 3, 2016
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