1.自定义ViewGroup,全代码如下:








重写的方法

内部类
2.layout内容

flow_activity_layout

flow_item_layout
3.加载数据

在需要显示的地方仿写此方法
参考网址:http://blog.csdn.net/zxt0601/article/details/50533658
另外一个比较好用的流式布局,可直接引入使用:https://github.com/LRH1993/AutoFlowLayout
参考网址:http://blog.csdn.net/zxt0601/article/details/50533658
另外一个比较好用的流式布局,可直接引入使用:https://github.com/LRH1993/AutoFlowLayout