第三方开源库:流式布局:FlowLayout
来源:互联网 发布:ubuntu怎么安装wps 编辑:程序博客网 时间:2024/05/22 13:50
FlowLayout
github:https://github.com/nex3z/FlowLayout
使用的时候把子view添加到FlowLayout中。
flowLayout.addView(tv);
属性
xml:
<com.nex3z.flowlayout.FlowLayout android:id="@+id/flowLayout" android:layout_width="match_parent" android:layout_height="wrap_content" app:childSpacing="auto" app:childSpacingForLastRow="align" app:rowSpacing="8dp" app:rtl="true"/>
Java
flowLayout = (FlowLayout) findViewById(R.id.flowLayout);array = getResources().getStringArray(R.array.lorem_ipsum);for (int i = 0; i < array.length; i++) { TextView tv = new TextView(this); tv.setText(array[i]); tv.setTextSize(TypedValue.COMPLEX_UNIT_SP,16); tv.setPadding(30,10,30,10); tv.setBackgroundResource(R.drawable.tv_bg_shape); flowLayout.addView(tv);}
0 0
- 第三方开源库:流式布局:FlowLayout
- FlowLayout流式布局
- FlowLayout流式布局
- 流式布局FlowLayout
- 流式布局FlowLayout
- 流式布局 FlowLayout
- FlowLayout,流式布局
- UIcollectionView flowlayout 流式布局
- Android 流式布局FlowLayout
- Android流式布局-FlowLayout
- 自定义流式布局FlowLayout
- Android流式布局FlowLayout
- Android:FlowLayout流式布局
- 流式布局FlowLayout使用
- 关于FlowLayout流式布局
- 自定义流式布局FlowLayout
- Android FlowLayout 流式布局
- 自定义ViewGroup实现流式布局FlowLayout
- PythonOCC 教程1: 安装
- 第三章-使用字符串——python基础教程(第二版)笔记
- [LeetCode] Palindrome Number 解题报告
- Android 缓存机制(二)
- 微信小程序,不可不知的一二三四
- 第三方开源库:流式布局:FlowLayout
- 开源PLM软件Aras详解七 在Aras的Method中如何引用外部DLL
- .cpp调用.c的变量或函数【转】
- 如何判断两个可移动磁盘卷是否在同一个USB HUB上?
- 生产者消费者问题
- Java算法基础之快速排序算法
- ubuntu 14.04 安装虚拟机12.1.0
- 《平凡的世界》读感
- CSS中包含块