Android Question Custom dialog - Position when keyboard is visible

TheRealMatze

Active Member
Licensed User
Hi!
I try to use a custom dialog with 3 text-boxes. It works - basically - but i have a problem when the keyboard is visible. because it´s overlayed over my dialog.
I already tried SetLayoutAnimated(5,0dip,10dip,90%x,190dip), but the dialog is always centered on the screen.

How can i bring the dialog to the top of the screen or at least over the keyboard?

Thanks
Matze
 
What kind of custom dialog do you use? the dialog will floated up with soft keyboard is visible.
 
Upvote 0
If you wrote the custom dialogue yourself then you will need to intercept the IME.HeightChanged event and reposition the dialogue, I think. If you are using a published library then that should have been taken care of.
 
Upvote 0
I think that the OP is using a B4xDIalog with ShowCustom.

you can use dialog.putattop = True

which will move the dialog to the top of the screen which can help.
 
Upvote 0
Back
Top