RecyclerView的item中一个LinearLayout中包裹了一个TextView,但是TextView在RecyclerView中显示的始终是Wrap_content,始终不能显示出match_parent的效果
RecyclerView的item中一个LinearLayout中包裹了一个TextView,但是TextView在RecyclerView中显示的始终是Wrap_content,始终不能显示出match_parent的效果
2 回答1.5k 阅读✓ 已解决
2 回答1.9k 阅读
3 回答673 阅读✓ 已解决
1 回答2.2k 阅读
1 回答908 阅读✓ 已解决
1 回答1.4k 阅读
1 回答614 阅读✓ 已解决
如果布局文件没错的话,请检查在
RecyclerView
的Adapter
中的onCreateViewHolder
方法中是否正确加载布局文件例如: