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

MultipleItemRvAdapter里的注解 不能在 lib项目里用 #2136

Closed
a710398739 opened this issue Apr 11, 2018 · 3 comments
Closed

MultipleItemRvAdapter里的注解 不能在 lib项目里用 #2136

a710398739 opened this issue Apr 11, 2018 · 3 comments

Comments

@a710398739
Copy link

@ItemProviderTag(
viewType = TimChatAdapter.TYPE_TEXT;
layout = R.layout.item_tim_chat_text_msg;(这里会报和buttknife在Lib使用一样的错误)
)

可以不可以拓展用代码 set layout 进去 ,兼容下

@AllenCoder
Copy link
Collaborator

已经重构了一波 代码
#2139

移除了接口注解的方式,同时也避免了在lib里面无法设置view的资源id情况

@chaychan
Copy link
Contributor

@a710398739 @AllenCoder
BaseItemProvider新增支持注解或重写方法返回viewType和layout的id;

修复itemProvider覆盖onItemClickListener回调的问题,如有设置onItemClickListener则不回调到itemProvider的onClick方法中,长按事件如同

#2140

@AllenCoder
Copy link
Collaborator

已修复,并移除

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

3 participants