Sunday, December 6, 2015

Android 채팅 EditText 자동 크기 확장 및 멀티라인

<EditText
android:id="@+id/message_edit"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginRight="3dp"
android:hint="@string/chat_room_message_hint"
android:paddingLeft="5dp"
android:textSize="13sp"
android:inputType="textMultiLine"
android:scrollbars="vertical"
android:singleLine="false"
android:minLines="2"
android:maxLines="5"
/>

No comments:

Post a Comment