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

activity或fragment含有recyclerview的一个问题 #5

Open
Chenayi opened this issue Jul 27, 2017 · 5 comments
Open

activity或fragment含有recyclerview的一个问题 #5

Chenayi opened this issue Jul 27, 2017 · 5 comments

Comments

@Chenayi
Copy link

Chenayi commented Jul 27, 2017

在含有recyclerview的activity或fragment中,当recyclerview的item中有按钮,并触发按钮点击事件时,键盘好像不隐藏...

@yingLanNull
Copy link
Owner

请问你使用的是哪个版本

@Chenayi
Copy link
Author

Chenayi commented Jul 27, 2017

您好,1.1.2

@yingLanNull
Copy link
Owner

你尝试使用备用方法,HideUtil.init(context,viewgroup);将RecyclerView传入。

@Chenayi
Copy link
Author

Chenayi commented Jul 27, 2017

试了,也不行。
我是使用BaseRecyclerViewAdapterHelper这个库中的 distriAddMemberAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
@OverRide
public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
if (view.getId() == R.id.tv_sq) {
addMember(position, distriAddMemberAdapter.getItem(position));
}
}
});

这个方法来响应item按钮的点击事件

@yingLanNull
Copy link
Owner

这样的话,你可以把HideUtil.init(context,viewgroup)放到Adapter中,把每个条目中包裹你的按钮的viewgroup传入进去测试一下。

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