ChatKit
ChatKit copied to clipboard
Reverse message list without reversing date headers
I want messages to start from the top. This is possible using messagesList.setAdapter(messageListAdapter, true); to set the reverse boolean parameter as true. However, this also reverses all the date headers so they are then below the appropriate chat bubble.
Is there a way to reverse the message list, so it starts from the top, but also keep the date headers in the correct positions above their appropriate chat bubble?
Assuming Callum is trying to solve the same problem I was: When you only have 2 messages, they appear at the bottom of the view which looks awkward compared to what we're accustomed to.
I solved this by putting wrap_content on my MessageList view. I'm sure this is far from ideal but it works.