安卓简单的流布局

导依赖:
compile 'com.fynn.fluidlayout:fluidlayout:1.0'

导在[uild.gradle]包中

布局:

定义数组

    String[] arrs={"阿凡达","古墓丽影","钢铁侠","美国队长","蚁人","华为p20","雷神","超凡蜘蛛侠","复仇者联盟","绿巨人","正义联盟","绝地求生","灭霸"};

找控件

flu = findViewById(R.id.flu);

主要工程代码

for (int x = 0;x
源代码出处:https://blog.csdn.net/zhaochuang4858529/article/details/79571663

你可能感兴趣的:(安卓简单的流布局)