LinearLayoutManager setReverseLayout() == true but items stack from bottom

前端 未结 4 554
自闭症患者
自闭症患者 2020-11-27 17:26

This seems like it would be an easy solution, but it seems that setting

private RecyclerView mRecyclerView;
private RecyclerView.Adapter mAdapter;
private Li         


        
4条回答
  •  被撕碎了的回忆
    2020-11-27 17:51

    I'm using a RecyclerView with horizontal orientation and for some unknown reason(s) the accepted answer didn't work for me when i tried to reverse the layout with setReverseLayout(true).

    but doing it via XML worked fine.

                    
    

提交回复
热议问题