Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoiding hidden controls by virtual keyboard

In my application there are some EditText controls. When virtual keyboard appears it hides some of these controls. How can I "shink" my display to avoid this? My base layout is LinearLayout. Thanks, Eyal.

like image 481
eyal Avatar asked May 19 '26 02:05

eyal


1 Answers

You should use adjustResize value for android:windowSoftInputMode attribute in AndroidManifest.xml for your activity :

<activity ... android:windowSoftInputMode="adjustResize">

enter image description here

like image 121
inazaruk Avatar answered May 21 '26 12:05

inazaruk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!