Bhaskar Reddy
Bhaskar Reddy

Reputation: 480

How to prevent Title bar hiding when keyboard in active?

I have one form (Scroll View) in TabActivity, tabs appears on bottom of the page, and I have one EditText element bottom of the page. Whenever user wants to enter text total UI moving top along with Title bar. Is there any possibility to prevent it?

Upvotes: 2

Views: 2851

Answers (2)

ankita gahoi
ankita gahoi

Reputation: 1562

Use android:windowSoftInputMode="adjustPan" in android manifest with your activity or refer SoftInputMode documentation.

Upvotes: 1

Som
Som

Reputation: 1544

Try to set android:windowSoftInputMode to the activity in your Manifest. Otherwise change the Layout to relative and make your EditText android:layout_alignParentBottom="true"

Refer this Example

Upvotes: 1

Related Questions