Skip to content
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

Layout height not changing with keyboard open #2310

Closed
5 tasks
shalevmo opened this issue Jun 5, 2018 · 2 comments
Closed
5 tasks

Layout height not changing with keyboard open #2310

shalevmo opened this issue Jun 5, 2018 · 2 comments

Comments

@shalevmo
Copy link

shalevmo commented Jun 5, 2018

About this issue

I created a custom layout, and put it in a drawer.
The custom layout is made of a few EditText items, wrapped in a LinearLayout, wrapped in a ScrollView.
When I focus one of the Edittext and the keyboard opens up, the height of the layout doesn't change to fit, so I can't see the bottom EditText items, and I can't scroll to see them.

Details

  •  Used library Verizon : 6.0.7
  •  Used support library version: 27.1.1
  •  Used gradle build tools version: 3.1.0
  •  Used tooling / Android Studio version: 3.1.1
  •  Other used libraries, potential conflicting libraries: irrelevant.
@tallevi12
Copy link

@mikepenz can you help? Im having this issue too. Thanks!

@mikepenz
Copy link
Owner

mikepenz commented Jun 9, 2018

Please see:
https://github.com/mikepenz/MaterialDrawer/blob/develop/library/src/main/java/com/mikepenz/materialdrawer/util/KeyboardUtil.java

and relevant topics:
http://stackoverflow.com/a/9108219/325479

#183
#877
#721

In case you make the UI fullscreen, try not to and simply work with the scrims and the fitsSystemWindows flag

@mikepenz mikepenz closed this as completed Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants