【开源】FlowLayout

FlowLayout

  •  https://github.com/blazsolar/FlowLayout

    介绍:

    FlowLayout是一种根据子view的宽度排列的流式布局,当子view排满一行,FlowLayout会自动换行。其实这种布局很早以前就有人实现了,只不过没有放到github上。

    运行效果:

 

使用说明:

1
2
3
4
5
6
7
8
9
10
11
<com.wefika.flowlayout.FlowLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="start|top">
    <View
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="0dp"
            android:layout_gravity="start|top" />
</com.wefika.flowlayout.FlowLayout>

 

相关代码

  • android-flowlayout

posted on 2015-04-03 10:35  wasdchenhao  阅读(219)  评论(0)    收藏  举报

导航