I want the edittext to be "multiline" at the same time need an "Done" button on the softKeyBoard to hide the softKeyBoard. I have the following code
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<EditText
android:id="@+id/etMultiLineDone"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollHorizontally="false"
android:inputType="textImeMultiLine"
android:imeOptions="actionDone"
android:lines="3"/>
</LinearLayout>
When I try the above code in
setContentView(R.layout.activity_main); It works as expected
But when I try the same textview in a Custom Dialog it does not give the same functionality.
android:scrollHorizontally="false" - not working
android:inputType="textImeMultiLine" - not working
android:imeOptions="actionDone" - working
android:lines="3" - not working
Dialog d = new Dialog(context);
d.setTitle("dialog");
d.setContentView(R.layout.dialog);
d.show();
Help/ suggestions much appreciated. Thank you.