0

After I click edit text to show soft key, layout banner at bottom position layout moved up. I want to keep origin layout after click show key board in android

2 Answers2

0

add this attribute to your Activity in AndoridManifest.xml

android:windowSoftInputMode="adjustPan"

Just like below:

<activity
    android:name=".MainActivity"
    android:exported="true"
    android:windowSoftInputMode="adjustPan"
    >
Byte Code
  • 96
  • 1
  • 3
0

add android:windowSoftInputMode="adjustPan" or android:windowsSoftInputMode="adjustResize" in you manifest file. You can choose one of them which is most preferable to your activity layout. For more details you can refer this answer. adjustPan or adjustResize

Please accept this answer if it solved your problem or was the most helpful in finding your solution.

TNT
  • 59
  • 4