Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EditText is hidden by the softkeyboard in Android

I have a layout in an app with parallax effect on an edittext, my problem is **when I tap on the edittext softkeyboard hides my editext?**Can anybody please help me for this, I have searched for it and found about "WindowsoftInputmode" which is not working in my case.

Code in manifest

<activity
            android:name="one.tusk.stush.activities.NewPostDetailActivity"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustResize|adjustPan" >
like image 216
sulphuric Acid Avatar asked Dec 13 '25 08:12

sulphuric Acid


1 Answers

You should only use android:windowSoftInputMode="adjustResize".

If this is not enough, you might need to add the property android:fitsSystemWindows="true" to the root layout containing your EditText.

like image 108
ThomasV Avatar answered Dec 14 '25 22:12

ThomasV