android - Do not resize UI layout elements when keyboard displayed -


when on-screen keyboard displayed ui elements in layout shrink and/or disappear.

i not want underlying ui change @ when keyboard displays or hides.

try try prevent have added keyboardhidden configuration changes declaration in activity manifest believing tell system handle resizing required, has made no difference.

is there simple way prevent resizing when keyboard displays , hidden?

it sounds want adjustpan option windowsoftinputmode attribute in manifest:

the activity's main window not resized make room soft keyboard. rather, contents of window automatically panned current focus never obscured keyboard , users can see typing. less desirable resizing, because user may need close soft keyboard @ , interact obscured parts of window.

the details of different options can found here

you add activity definition in manifest this:

<activity     android:name=".ui.myactivity"     android:label="@string/my_activity_title"     android:theme="@style/apptheme"     android:windowsoftinputmode="adjustpan"/> 

as above it's worth noting using push part of activity off screen if there 'focused' element otherwise hidden keyboard.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -