Android: multiline editor and keyboard issues

I have this edittext:

<EditText android:inputType="textMultiLine|textCapSentences" android:layout_width="fill_parent" android:layout_height="240dp" android:scrollHorizontally="false" android:imeOptions="actionNone" android:minLines="9" android:scrollbars="vertical" android:singleLine="false" android:gravity="top" android:layout_gravity="center_vertical|left" android:nextFocusForward="@+id/costo_dettagli" android:layout_weight="1" android:id="@+id/dettagli" android:textSize="20sp" /> 

and this part of the manifest:

 android:windowSoftInputMode="stateHidden|adjustPan" 

problem? when the keyboard appears, it goes below the flashing cursor (on the first line in other words), and not below the whole text! You need to have a keyboard under the widgets.

My whole layout is in scrollview, and I tried everything android: windowSoftInputMode

edittext problem http://imageshack.com/a/img199/9295/jmgb.png

What the heck??? I need some help, please.

+8
android android-edittext multiline keyboard
source share
1 answer

you can use:

 android:imeOptions="flagNoExtractUi" 

in xml file

or basically add this:

 @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI; // etc. } 

or in oncreate paste this code:

 editText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI) 
0
source share

All Articles