结果跑到程序里是这样的::
不能定义宽高,不能让它的宽match,怎么回事?
PHPz2017-04-17 17:28:19
OnCreateViewholder writes:
Inflater.inflate(r.layout.xxx,container,false).
伊谢尔伦2017-04-17 17:28:19
Post your adapter and oncreateviewholder code. When you look at inflate, there are 3 parameters.
PHP中文网2017-04-17 17:28:19
I have encountered it before, View view = LayoutInflater.from(MainActivity.this).inflate(R.layout.content_item,parent,false); Just change it to bind cardview like this. This is how I solved it. I hope it can be helpful to you. Not helpful
http://m.blog.csdn.net/article/details?id=51108390