I have a ListView, in which each row contains a TextView and an EditText. I find that I can't get multiline with this EditText. Whatever I type in it, the string doesn't wrap to next line. Besides, the soft keyboard doesn't show "Enter key" -- instead, it shows a "Done" key.
If I copy the block to outside ListView, it works as multiline. But it doesn't work inside ListView.
I'll appreciate it if anyone can shed some light. Thank you!
My ListView row has this layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="140dp"
android:layout_height="fill_parent"
android:gravity="center_vertical|right"
android:paddingLeft="3dp"
android:paddingRight="5dp"
android:id="@+id/listitem_maindesc"
android:textColor="#000000"
android:textSize="16sp"></TextView>
<EditText
android:id="@+id/listitem_entry"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="16sp"
android:singleLine="false"
android:lines="3"
android:minLines="3"
android:inputType="textMultiLine"
/>
</LinearLayout>