views:

60

answers:

1

I am designing an Android app and I'm having a couple of layout issues.

I have a screen with 3 EditTexts on it in a row, and I would like for the 'next' key on the soft keyboard to cycle between the EditText fields. As for now, the 'next' key has no effect.

Also, when the soft keyboard is displayed, it covers up the third of the EditTexts. Is there any way to push up the layout in the event that the soft keyboard is drawn?

Thanks!

A: 

For the second problem, on your <activity> element of the AndroidManifest.xml use android:windowSoftInputMode="adjustResize":

<activity android:name=".YourActivity"
          android:windowSoftInputMode="adjustResize">
</activity>

Make sure you have wrapped the content of your layout into a ScrollView, so that it will be easily browsable.

Cristian
Great, that helped a lot! Thank you.
Tom G