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

前端 未结 4 556
自闭症患者
自闭症患者 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 18:15

    I found the effective method to solve this using xml:

    app:layoutManager="android.support.v7.widget.LinearLayoutManager"
    app:stackFromEnd="true"
    

提交回复
热议问题