To turn a RecycerView
upside-down, and add elements from the bottom like a chat window, use this:
recyvlerView.layoutManager = LinearLayoutManager(context).apply {
reverseLayout = true
stackFromEnd = true
}
To turn a RecycerView
upside-down, and add elements from the bottom like a chat window, use this:
recyvlerView.layoutManager = LinearLayoutManager(context).apply {
reverseLayout = true
stackFromEnd = true
}