当前位置:   article > 正文

android线性布局换行,Android可自动换行的布局 -- AutoWrapLineLayout

autowraplinelayout

AutoWrapLineLayoutDemo

One custom layout that can place views horizontally and auto wrap line.

Samples

MODE_FILL_PARENT

351709b21bcbaabd641d7a0f39f1f6c5.png

MODE_WRAP_CONTENT

6d2c604662a1c09744be1cad806b36ea.png

Usage

Dependency

Add the below dependency in your app level build.gradle. Make sure your project level build.gradle includes the jcenter() repository.

compile 'cn.wolfspider:autowraplinelayout:1.0.1'

How to use

In your layout file, add the AutoWrapLineLayout.

android:id="@+id/auto_wrap_line_layout"

android:layout_width="match_parent"

android:

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/283379
推荐阅读
相关标签
  

闽ICP备14008679号