Multi-Multi Text Editing

I have a few EditText lines and a submit button below it.
When the user clicks on the EditText area, a soft keyboard appears.
It has an input key that allows the user to go to the next line.
My problem is that the soft keyboard hides my submit button - so when the user finishes editing, he / she must press the back button on the device to hide the soft keyboard for sending.
Is there a way to save both the enter and exit button on the keyboard? Or is there another better solution?

Thanks in advance.

+4
source share
2 answers

yes, you can use a layout where the button always remains at the bottom of the page, but on top of the keyboard, something like this

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Button android:id="@+id/button_save" android:layout_width="0dip" android:layout_height="wrap_content" android:enabled="false" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:text="@string/button_save" /> <ScrollView android:id="@+id/scroll_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_above="@+id/button_save" android:fadeScrollbars="false" > ...all your stuff here </ScrollView> </RelativeLayout> 
0
source

You can also set imeAction in the xml layout, which will allow you to call Done / Next / Search, etc. directly from the soft keyboard, as long as your editText has a listener for these events.

0
source

All Articles