///流式布局
<com.zhy.view.flowlayout.FlowLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="11.11专场"
android:textSize="18sp"
android:padding="8dp"
android:layout_margin="2dp"
android:background="#e1e1ef"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="超级秒杀"
android:padding="8dp"
android:textSize="18sp"
android:layout_margin="2dp"
android:background="#e1e1ef"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="欧式壁灯"
android:padding="8dp"
android:textSize="18sp"
android:layout_margin="2dp"
android:background="#e1e1ef"/>
</com.zhy.view.flowlayout.FlowLayout>
依赖
compile 'com.zhy:flowlayout-lib:1.0.3'