Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why Keyboard lift tabhost to top?

I have set a tabhost in the bottom of screen,on the top of screen is a edittext,when i click the editext,the screen keyboard jump up,and lift tabhost to the middle of the screen.i just want tabhost keeps in the bottom,even though keyboayd diaplay.

like image 238
xiaodouya Avatar asked Nov 29 '22 04:11

xiaodouya


2 Answers

Add this attribute of activity tag in your AndroidManifest file for TabActivityClass

android:windowSoftInputMode="adjustPan"
like image 22
Lalit Poptani Avatar answered Dec 09 '22 23:12

Lalit Poptani


For all facing this problem,

android:windowSoftInputMode="adjustPan|adjustResize"

check this link: SoftKeyboard problem with Tabhost on bottom of screen

like image 126
Sherif elKhatib Avatar answered Dec 09 '22 21:12

Sherif elKhatib