728x90
LinearLayoutManager mLayoutManager = new LinearLayoutManager(this);
mLayoutManager.setReverseLayout(true);
mLayoutManager.setStackFromEnd(true);
// Set the layout manager to your recyclerview
recyclerView.setLayoutManager(mLayoutManager);
출처 : https://freakycoder.com/android-notes-46-how-to-reverse-recyclerview-by-adding-items-f32db1e36c51
728x90
'안드로이드 > ListView, RecyclerView' 카테고리의 다른 글
[Java] RecyclerView view binding (0) | 2022.05.23 |
---|---|
[코틀린] expandable recyclerview 예제 (0) | 2021.06.03 |
RecyclerView Checkbox 처리 및 Interface 처리 (0) | 2020.07.17 |
RecyclerViewAdapter 만드는 방법 (0) | 2018.10.05 |
RecyclerView에 여러개의 뷰타입 추가 (0) | 2018.07.30 |