问题:没有填充整个宽度。
原因:inflate的参数问题,没有传入parent
解决:
//View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_home,null);
View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_home, viewGroup,false);
Inflation.from参数调用详解:
http://blog.jobbole.com/72156/