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