美文网首页
RecyclerView的布局样式

RecyclerView的布局样式

作者: csp | 来源:发表于2017-03-08 14:11 被阅读50次

样式有很多种,网格,线性,还可以反转等。
// rv.setLayoutManager(new LinearLayoutManager(this));

//        rv.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,false));

    rv.setLayoutManager(new GridLayoutManager(this,3));

相关文章

网友评论

      本文标题:RecyclerView的布局样式

      本文链接:https://www.haomeiwen.com/subject/kvybgttx.html