AndroidFlowLayout

Introduction: 一个简单的流式布局,用法类似 LinearLayout,但是能够让子元素根据宽度自动换行
More: Author   ReportBugs   
Tags:

A flow layout for Android

samples

dependencies

gralde

compile 'com.liangfeizc:flowlayout:1.0.0@aar'

maven

<dependency>
    <groupId>com.liangfeizc</groupId>
    <artifactId>flowlayout</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>

usage

<com.liangfeizc.flowlayout.FlowLayout
    android:id="@+id/flow_layout"
    flowlayout:vertical_spacing="10dp"
    flowlayout:horizontal_spacing="10dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

tips

If you min sdk version is smaller than 16, you can add <uses-sdk tools:overrideLibrary="com.liangfeizc.flowlayout" /> to your AndroidManifest.xml.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools