Skip to content

流式布局,仿照网易标签栏实现,可拖拽

Notifications You must be signed in to change notification settings

DrownCoder/TabFlowLayout

Repository files navigation

TabFlowLayout

流式布局,仿照网易标签栏实现,可拖拽

Usage

*.xml

<com.study.library.widget.TabMoveLayout
    android:id="@+id/tab_move_layout"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:clickable="true"
    app:itemNum="4"
/>

More Properties:

app:itemNum:"the count of one line"-int
app:widthMargin:"the width between two tag"-int
app:heightMargin:"the height between two line"-int
app:itemWidth:"the tag's width"-int
app:itemHeight:"the tag's height"-int
app:textColor:"the tag's textcolor"-color
app:tabBac:"the tag's bac"-ref
app:textSize:"the tag's textsize"-dimen

*.java

you just need to bind the datasource and set the tag bac

tab_move_layout.setChildView(List<String> data, int bacID);

blog:仿网易新闻标签选择器(可拖动)-TabMoveLayout

About

流式布局,仿照网易标签栏实现,可拖拽

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages