首页输入框支持自动增长,限制3-10行
This commit is contained in:
@@ -303,10 +303,12 @@
|
|||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/inputEditText"
|
android:id="@+id/inputEditText"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="48dp"
|
android:layout_height="wrap_content"
|
||||||
|
android:minLines="3"
|
||||||
|
android:maxLines="10"
|
||||||
android:background="@drawable/input_bg"
|
android:background="@drawable/input_bg"
|
||||||
android:hint="输入待发送内容…"
|
android:hint="输入待发送内容…"
|
||||||
android:inputType="textMultiLine"
|
android:inputType="textCapSentences|textMultiLine"
|
||||||
android:paddingStart="16dp"
|
android:paddingStart="16dp"
|
||||||
android:paddingEnd="16dp"
|
android:paddingEnd="16dp"
|
||||||
android:paddingTop="12dp"
|
android:paddingTop="12dp"
|
||||||
@@ -314,7 +316,8 @@
|
|||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:textColor="@color/text_secondary"
|
android:textColor="@color/text_secondary"
|
||||||
android:textColorHint="@color/text_hint"
|
android:textColorHint="@color/text_hint"
|
||||||
android:gravity="top|start"/>
|
android:gravity="top|start"
|
||||||
|
android:scrollbars="vertical"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|||||||
Reference in New Issue
Block a user