<EditText android:id="@+id/embedded_text_editor"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:autoText="true" android:capitalize="sentences"
android:nextFocusRight="@+id/send_button"
android:hint="@string/type_to_compose_text_enter_to_send"
android:maxLines="4"
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions="actionSend|flagNoEnterAction"
android:background="@null" android:maxLength="1000" />
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:autoText="true" android:capitalize="sentences"
android:nextFocusRight="@+id/send_button"
android:hint="@string/type_to_compose_text_enter_to_send"
android:maxLines="4"
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions="actionSend|flagNoEnterAction"
android:background="@null" android:maxLength="1000" />
本文介绍了一种用于消息输入的文本编辑器配置方案,包括了自动文本修正、句子首字母大写等功能,并设置了合理的最大输入长度及换行规则,适用于即时通讯等场景。
583

被折叠的 条评论
为什么被折叠?



