-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
adjustResize not working #196
Comments
I found the problem. Its the translucent status bar. When its enabled you set the flag SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
When I set withTranslucentStatusBar(false) the adjustResize is working again and I can scroll the layout when the keyboard is shown. |
@NamingException yeah this is a known behavior of this FLAG. So i've implemented a util which will enable support for keyboards and this behavior. It lowers the layout size and adds enough padding to the bottom. You can enable this by calling |
Hi, I had same issue, and it took me some time to find this question. Only one small problem, it will show a blue (colorPrimary) background before soft keyboard appear, which won't happen with I upload a video to show the problem. |
@GreenSkinMonster to get it working i've created the keyboardSupport function. It is in the sample app. The thing is that in fact this is no issue of the MaterialDrawer. It's Android functionality, and people don't know about this. There were other issues regarding this. If you have FullScreen the So to "fix" it i will resize the layout. as far as i can, i can't fix the display. the blue is your background color so you can change this. |
@mikepenz Thank you for the reply and document update. This a great project with great support. |
@GreenSkinMonster no problem. Thanks ;) |
When you have a fragment with editText in it inside a scrollview and also a Navigation Drawer, when you focus the editText you can't scroll the contents of the fragment and the editText ends up behind the keyboard. If I remove the Navigation Drawer the editText is placed above keyboard and I can also scroll to view rest of content. This only happens on Lollipop.
The text was updated successfully, but these errors were encountered: