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
Asked
Active
Viewed 35 times
0
-
Consider including the applicable HTML, script or code with your question. – JohnH Jun 19 '23 at 23:13
2 Answers
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