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

recyclerview模块的listitem_layout 的textview宽度使用match_parent无效。 #72

Open
Clearlove2015 opened this issue Mar 27, 2017 · 1 comment

Comments

@Clearlove2015
Copy link

Clearlove2015 commented Mar 27, 2017

recyclerview模块的listitem_layout 的textview宽度使用match_parent无效。

@Clearlove2015
Copy link
Author

这个bug已解决,将适配器解析布局处修改一下。
@OverRide
public ViewHolder onCreateViewHolder(ViewGroup viewHolder, int position) {
View view = inflater.inflate(R.layout.listitem_layout, viewHolder,false);
return new ChildViewHolder(view);
}

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

1 participant