question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dialog buttons hidden behind keyboard

See original GitHub issue

On some phones, the EditText dialog has buttons hidden behind keyboard.

But normal dialogs in other apps moves away whe keyboard appears. Why not here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Pitelcommented, Jun 29, 2017

On Nexus 5X (Android 7.1), it actualy shrinks the part of dialog with EditText:

device-2017-06-29-160346

But on one fo my customer’s phone with Android 4 or 5, the keyboard is above the dialog and the suggestions bar hides the dialog’s buttons. Sorry, I can’t get the screenshot at the moment.

Maybe this should be another issue your library fixes.

I found this on Stack Overflow.

Maybe just add this to onCreate() of your dialog implementation:

getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
0reactions
ornolisvtcommented, Nov 29, 2019

@ornolisvt Is this present in v1.1.0?

I´m using Xamarin Android with Support libraries, not AndroidX libraries

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android when keyboard open in dialog fragment it hides my ...
When i press edit button, keyboard shows and push up editText but hides 3 buttons bellow. Here is 2 print screen of dialog...
Read more >
Modal Dialog Example | APG | WAI - W3C
The keyboard focus always remains visible. ... Place an interactive element at the top of the dialog, e.g., a button or link. ......
Read more >
Accessible dialog tutorial - ally.js
Accessible dialog tutorial. This document explains what steps need to be taken in order to make a visually compelling, yet fully accessible dialog...
Read more >
Keyboard shortcuts in Windows - Microsoft Support
Windows logo key keyboard shortcuts ; Windows logo key + R · Open the Run dialog box. ; Windows logo key + Alt...
Read more >
Dialog box windows are not displayed in AutoCAD products
Solution: · Execute the command to activate the dialog window. · Press ALT + SPACEBAR on the keyboard. · Press the M key...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found