有人遇到过这种情况。我需要显示的最小4线的EditText当的minlines给出itworks正常,但当加的inputType标签给它,闵行失败..在android中输入inputType时,Min Line不工作
<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" />
如有说错了指正,并提供我一个解决方案....
我曾试图沿增加的inputType为多行实现这一目标...没有运气..和 你试过吗? – GvSharma
你用 安卓的inputType = “textCapSentences | textMultiLine | textAutoCorrect” – Shailesh
是... textMultiline作品... 你能解释一下我为什么失败 “安卓的inputType =” textCapSentences | textAutoCorrect “” – GvSharma