CardView中設置margin屬性無效果,后來查了一下,發(fā)現(xiàn)解析的時候要使用:
LayoutInflater.from(context).inflate(R.layout.item, parent, false);
原來使用的:
View.inflate(context, R.layout.item, viewGourp);
CardView中設置margin屬性無效果,后來查了一下,發(fā)現(xiàn)解析的時候要使用:
LayoutInflater.from(context).inflate(R.layout.item, parent, false);
原來使用的:
View.inflate(context, R.layout.item, viewGourp);