How can I fill RecyclerView with GridLayoutManager from right to left

前端 未结 5 581
别那么骄傲
别那么骄傲 2020-11-29 13:06

I\'m trying to fill some data into a RecyclerView with GridLayoutManager:

GridLayoutManager layoutManager = new GridLayoutManager(t         


        
5条回答
  •  旧时难觅i
    2020-11-29 13:38

    Its very simple, just call method setReverseLayout as,

    GridLayoutManager layoutManager = new GridLayoutManager(this, 3, GridLayoutManager.VERTICAL, false);
    layoutManager.setReverseLayout(true);
    

提交回复
热议问题