iRunner
iRunner

Reputation: 1532

Android RelativeLayout Position issue when keypad is getting displayed

I am developing an android app.I am using RelativeLayout for login page and adding a button at the bottom using android:layout_alignParentBottom="true", but whenever i am type into login box keypad is getting displayed and that login button is also getting shifted above the keypad.I want that button always to remain at the bottom.

How to achieve that?

Upvotes: 0

Views: 56

Answers (1)

moDev
moDev

Reputation: 5258

Add android:windowSoftInputMode="adjustPan" to the related activity in AndroidManifest.xml.

<activity android:name="MyActivity"

   android:windowSoftInputMode="adjustPan">

</activity>

Hope it works for you.

Upvotes: 2

Related Questions