Popup takes up full screen when in adjustPan mode
Reproduction
With this code
<activity android:name=".CustomViewActivity" android:windowSoftInputMode="stateVisible|adjustPan"/>
it shows:

Can confirm this issue too.
What android version, what device, give us sample code so we can reproduce.
What android version, what device, give us sample code so we can reproduce.
Hi Mario, thank you for checking. The issue can be easily seen when using adjustPan to configure activity in AndroidManifest.xml, like the above code snippet shown:
<activity android:name=".CustomViewActivity" android:windowSoftInputMode="stateVisible|adjustPan"/>
per our team's testing, it happens generally to many devices and pixel emulators too. Hope this makes sense.
I am facing same issue.
any new info for this issue ? i'm having the same
@vanniktech i am facing same issue, i am not using any windowsoftinputmode and my device is poco x3 and android 10.
@vanniktech I am facing this same issue when I am using this emoji popup in bottomsheet please help
@payaladbiz feel free to send a PR to fix the problem
@payaladbiz feel free to send a PR to fix the problem could you please let me know what PR mean ?
@vanniktech I'm also facing the same issue. Tried with multiple devices. Redmi, oneplus and pixel emulator. The emoji keyboard opens in full screen no matter which view is passed.
@vanniktech found out why this is happening in my case. it is because of this flag on oncreate :
if I remove this. it is working as expected.
Hope this helps for anyone who is looking for an answer.
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
Edit: This is how I'm achieving full screen :
val decorView = window.decorView
decorView.setOnSystemUiVisibilityChangeListener { visibility ->
if (visibility and View.SYSTEM_UI_FLAG_FULLSCREEN == 0) {
// The system bars(Status bar) are visible. Make any desired
//add a delay here before executing below code so that it doesn't instantly
//close the status bar
window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_FULLSCREEN
} else {
// The system bars(Status bar) are NOT visible. Make any desired
}
}
This hides the status bar which gives full screen appearance.
Hi friends, I also had this problem until I put the following code in the manifest android class:
<Activity android: name = ". Register" android: label = "@string/app_name" android: windowsSoftInputMode="adjustResize"
I hope this code helps those who have this problem
I'm closing this issue due to inactivity. If you have any further input on the issue, don't hesitate to reopen this issue or post a new one.
I have the same issue on Chromebook. It's probably because it has a hardware keyboard, so the soft keyboard never shows.
i didn't figure out why this issue happens so i made a workaround. maybe this workaround helps someone to understand the root cause 🤷♂️
@mahibi can you try using toggle() in your example?
Looking at the code there's a requestApplyInsets call that we don't do when you're doing start/show manually
with toggle() the bug occurs again
the problem still continues for version 0.15.0 when ı downgrade the library to 0.6.0 then android studio gives an error for androidx
note if you wanna a tricky method, before starting to write anything show and dismiss then do what you want.
emojiPopup.show() emojiPopup.dismiss()
I see this problem on version 0.16.0 of the library as well. Sometimes when opening the popupWindow for the first time, it looks just like the screenshot in the OP instead of the proper height.
I was facing the same issue. In my case, i firstly open the keyboard then toggle() the EmojiPopup and its not takes the full screen.
I can't reproduce this but I'd be happy to take a PR that fixes this