Skip to content
Advertisement

recycler view hides message upward when keyboard is open / how to keep recycler View from scrolling when keyboard is on

I am making chat app but when I send message recycler view does not show first 2 messages because it is up I want something like whatsapp if I open keyboard recycler view is shown from start I tried following but it sticks chats to end even after I close keyboard:

JavaScript

. following is my code:

JavaScript

}

following is my XML :

JavaScript

Advertisement

Answer

There was a problem in height of the recycler view. I saw it here: https://github.com/stfalcon-studio/ChatKit/issues/103. @andriizhumela said that you need to put match parent in width and height of recycler view . so now it is solved

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement