美文网首页
流式布局

流式布局

作者: 执念蓝枫 | 来源:发表于2018-01-10 20:35 被阅读8次

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

重写的方法 内部类

2.layout内容

flow_activity_layout flow_item_layout

3.加载数据

在需要显示的地方仿写此方法

参考网址:http://blog.csdn.net/zxt0601/article/details/50533658

另外一个比较好用的流式布局,可直接引入使用:https://github.com/LRH1993/AutoFlowLayout

相关文章

网友评论

      本文标题:流式布局

      本文链接:https://www.haomeiwen.com/subject/txannxtx.html