Reham Alatris
Reham Alatris

Reputation: 435

How to Push the screen up when the edit text gets the focus

I have a register screen with many fields the problem is after the third field the keyboard hides the bottom edit text and it's only showing on clicking next on the keyboard,i want to push screen up as the user navigate to the fields how can i achieve this

Upvotes: 0

Views: 92

Answers (2)

Dinesh
Dinesh

Reputation: 1670

Add following line in your activity of AndroidManifest file

android:windowSoftInputMode="stateVisible|adjustResize"

stateVisible add this only if you need to appear keyboard when screen open

Upvotes: 0

Akram Bensalem
Akram Bensalem

Reputation: 101

You can add "adjustResize" to your Manifest file to resolve such kind of issue -

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



Hope this helps you :)

Upvotes: 1

Related Questions