效果图如下
Paste_Image.png
主要方法是GridView设置
gManager = new GridLayoutManager(this,3);
gManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@Override
public int getSpanSize(int position) {
if (position == 0 || position == 7 || position > 13) {
return 3;
} else {
return 1;
}
}
});
参考博文地址:http://blog.csdn.net/chenguang79/article/details/52247912