FlowLayout

项目地址:nex3z/FlowLayout 

简介:A flow layout for Android with auto-spacing.

A FlowLayout for Android, which allows child views flow to next row when there is no enough space. The spacing between child views can be calculated by the FlowLayout so that the views are evenly placed.

Gradle

compile 'com.nex3z:flow-layout:1.2.2'

Usage

<com.nex3z.flowlayout.FlowLayoutxmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"android:layout_height="wrap_content"app:flChildSpacing="auto"app:flChildSpacingForLastRow="align"app:flRowSpacing="8dp"><TextViewandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:text="SUN"/><TextViewandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:text="MON"/><!--...--></com.nex3z.flowlayout.FlowLayout>

Attributes

Attribute Format Description
flFlow boolean true to allow flow. false to restrict all child views in one row. The default is true.
flChildSpacing auto/dimension The horizontal spacing between child views. Either auto, or a fixed size. The default is 0dp.
flChildSpacingForLastRow auto/align/
dimension
The horizontal spacing between child views of the last row. Either autoalign or a fixed size. If not set, childSpacing will be used instead.
flRowSpacing auto/dimension The vertical spacing between rows. Either auto, or a fixed size. The default is 0dp.
flRtl boolean true to layout child views from right to left. false to layout from left to right. The default is false.
flMaxRows integer The maximum height of FlowLayout in terms of number of rows.

FlowLayout相关推荐

  1. Android第三十八期 - 评价标签FlowLayout

    代码已经整理好,这里要说一下,因为手动和Json获取写法不一样. 手动直接xml设置: <LinearLayout xmlns:android="http://schemas.andr ...

  2. 博为峰Java技术文章 ——JavaSE Swing FlowLayout布局管理器I

    2019独角兽企业重金招聘Python工程师标准>>> 博为峰小博老师: 这种布局管理器的策略也非常简单,它是按照控件加入的先后顺序从左到右排列,一行排满了,再换下一行,然后在从左到 ...

  3. Android自定义流式布局-FlowLayout

    很多App在搜索页时都有对热门标签的一个排列,而Android官方没有对应的布局控件,所以自己写了一个流式布局(也称标签布局)--FlowLayout. 为了大家使用的方便,没有添加自定义属性,所以需 ...

  4. java中布局管理器flowlayout,在Java中下列()方法可以把JFrame的布局管理器设为FlowLayout类型。...

    在Java中下列()方法可以把JFrame的布局管理器设为FlowLayout类型. 答:jFrame.setLayout(new FlowLayout() ) 在Word 2010的编辑状态,当前编 ...

  5. swing 之FlowLayout 实现自动换行和滚动条添加

    原文:http://blog.csdn.net/u011393661/article/details/50456022 [java] view plaincopy package guitest; i ...

  6. android 自定义flowlayout,Android 自定义ViewGroup之实现FlowLayout-标签流容器

    本篇文章讲的是Android 自定义ViewGroup之实现标签流式布局-FlowLayout,开发中我们会经常需要实现类似于热门标签等自动换行的流式布局的功能,网上也有很多这样的FlowLayout ...

  7. java例程练习(布局管理器[FlowLayout])

    //FlowLayout,Panel类的默认布局管理器 import java.awt.*; public class TestLayout { public static void main(Str ...

  8. IOS流水布局UICollectionView使用FlowLayout进行自由灵活组合

    IOS流水布局UICollectionView使用FlowLayout进行自由灵活组合 UICollectionView是日常最常用开发组件之一,其重要程度不亚于UITableViewControll ...

  9. Android自定义实现FlowLayout

    实现FlowLayout 何为FlowLayout,如果对Java的Swing比较熟悉的话一定不会陌生,就是控件根据ViewGroup的宽,自动的往右添加,如果当前行剩余空间不足,则自动添加到下一行. ...

  10. 为什么网格布局不显示java_java – 在GridLayout中不显示组件的FlowLayout?

    我正在创建一个应用程序,作为某种类型的中心,用户可以将快捷方式存储到他们喜欢的应用程序并轻松启动它们.不过,我在使用FlowLayout时遇到了一些问题.当我使用GridLayout时,组件显示完美. ...

最新文章

  1. Blender从头开始装配和动画制作低多边形风格的FPS手臂
  2. LeetCode Find the Duplicate Number 找重复出现的数(技巧)
  3. 数据库主键设计之思考(转)
  4. U92904-画地为佬【二分,结论】
  5. 使用React,TypeScript和Socket.io构建聊天应用
  6. Python一题三解:查找字符串中每个字符的首次出现
  7. Spring boot restful api 方法参数 BindException 异常处理
  8. 10个MySQL加载数据内文件示例以将文本文件数据上传到表
  9. MVC四大筛选器—ActionFilterResultedFilter
  10. Julia : 正则表达式
  11. tombstone 信息解析
  12. C#对STK11.4二次开发的Hello World
  13. Tecplot 自定义色谱颜色
  14. 普通路由器DMZ主机设置及访问方法
  15. 李少白讲摄影-不放过一切光线 地坛书市新书首发圆满结束
  16. 如何在命令行状态清除SEP隔离区(Quarantine)
  17. 【2022最新Java面试宝典】—— Memcache面试题(23道含答案)
  18. 马云在大学学计算机,IT大佬高考成绩单:李彦宏是状元 马云数学仅1分
  19. matlab中ga函数的用法,MATLAB中自带遗传算法函数GA的用法
  20. Elliptic Labs推出虚拟智能存在检测传感解决方案,为低功耗笔记本电脑的安全性保驾护航

热门文章

  1. 万事通与。 一个大师:设计师的视角
  2. 2-28 数据库链接操作_JDBC_02
  3. CentOS7 扩容任何目录(包括 /boot)小白都可以学会,每一步都有详细截图引导
  4. Win7codecs解码包实现.avi等视频文件播放
  5. 一些默认地址及用户名密码等
  6. js中的slice方法(开始索引,结束索引-不包含该索引元素)-截取和splice方法-删除(开始索引,删除个数)和插入-(开始索引,删除个数,插入内容)
  7. Luminar助力上汽集团推出量产型R品牌智能电动汽车产品线
  8. 对学校的希望和寄语_对学生的寄语与期望
  9. 服务器查看网络端口,竟然有这么多命令
  10. win10 删除文件的快捷键