Git Product home page Git Product logo

flowlayout-1's Introduction

For most of the current demand flowlayout

sample

image

how to use

          <com.dalong.flowlayout.FlowLayout
                             android:id="@+id/mFlowLayout"
                             app:horizontalSpacing="8dp" //水平间距
                             app:verticalSpacing="8dp" //竖直间距
                             app:textSize="16sp"  //文字大小
                             app:equally="true"   //布局是否均匀分配 已最大的为基准 默认是true
                             app:stype="select"   //是否可以选择  提供tag和select  tag只能显示不能点击选择  select可以点击选择
                             app:isSingle="false" //是否是单选    true就是单选 false 就是多选    默认是单选
                             app:itemPaddingLeft="5dp"  //每个item的内左边距
                             app:itemPaddingTop="2dp"   //每个item的内上边距
                             app:itemPaddingRight="5dp" //每个item的内右边距
                             app:itemPaddingBottom="2dp" //每个item的内底边距
                             app:textColor="@color/test_flowlayout_item_text_color" //设置文字颜色选择器
                             app:flowBackground="@drawable/flow_item_bg_selector"  //设置流布局布局选择器  默认一套 
                             android:paddingLeft="8dp"
                             android:paddingRight="8dp"
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"/>

gradle

compile 'com.dalong:flowlayout:1.0.1'

flowlayout-1's People

Contributors

yixiaolunhui avatar

Watchers

James Cloos avatar CLW_Kaiwen_Bai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.