Anybody have come across with this situation. I need to show minimum 4 lines for edittext and when minLines given itworks fine But when add inputType tag to it , Min Lines fails..
<EditText
android:id="@+id/my_review_review_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:inputType="textCapSentences|textAutoCorrect"
android:background="@drawable/rect"
android:gravity="top|left"
android:hint="Add a review"
android:maxLines="5"
android:minLines="4"
android:padding="10dp" />
Please correct me if am wrong and provide me a solution....
You can use
android:inputType="textCapSentences|textMultiLine|textAutoCorrect"
<EditText
android:id="@+id/notes_box"
android:inputType="textCapSentences|textMultiLine|textAutoCorrect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/notes_title"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:padding="9dp"
android:lines="5"
android:gravity="top|left"
android:maxLength="500"
android:textColor="@color/gray"/>
Try it..
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With