-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recyclerview scrolls down when soft keyboard appears or disappears #103
Comments
happens to me too. I changed my wrapping group view to linear and it solved my problem but thats not the solution :/ |
For the correct behavior of the MessagesList, you must specify the size of it. In your case, it is enough to specify the maximum height as mach_parent.
|
@andriizhumela Thanks! |
@andriizhumela Works beautiful <3 |
@andriizhumela Life saver <3 |
@andriizhumela is right, setting either the height or setting proper constraints for all edges will solve the problem. |
this works fine when is set to adjustPan, but with adjustResize happens exact the same result, any suggestion? |
The issue is that the recyclerview scrolls down almost a complete row when the soft keyboard appears or disappears.
Here is a visual example
The layout for the activity uses a MessageInput and MessageList object and is as follows:
The activity also has adjustPan set in the manifest:
I have not changed the Recyclerview's linear layout manager from within the MessageList class.
I ideally do not want to set up a keyboard listener and programatically scroll to the bottom every time the keyboard is shown/hidden. It seems that I must be doing something wrong somewhere. Any ideas?
The text was updated successfully, but these errors were encountered: