Android Question IME Strange beaviour

Gianni Sassanelli

Active Member
Licensed User
Hi,
i have strange beaviour using on screen keyboard and ime

when i got focus on edittext view keyboard appears in the foreground and the activity view is resized automatically
after keyboard_enter i hide the keyboard with IME.hide()
after this, for ever view focused, the keyboard appear in foreground, but the activity view is not resized and keyboard cover the edittext

is this ready ?
tks
 

Erel

Administrator
Staff member
Licensed User
Have you set the adjust mode to adjustResize in the manifest editor?
 

Gianni Sassanelli

Active Member
Licensed User
hi Erel,
i have this code in Manifest

B4X:
SetActivityAttribute(trend_commesse_elenco,        android:theme, @android:style/Theme.Translucent.NoTitleBar)
SetActivityAttribute(trend_commesse_elenco,     android:windowSoftInputMode, adjustResize)
Esempio.jpg
 

Erel

Administrator
Staff member
Licensed User
You are using an Android 2 theme. This is not good.

Does it work if you comment the first SetActivityAttribute line?
 

Erel

Administrator
Staff member
Licensed User
Android 5+ devices use the material theme. Android 4 devices use the holo theme. Android 4+ devices also support AppCompat themes.
 
Top