如何在android中的EditText中只输入字母?
textEditText和TextView 的inputType的大多数实现(除了URI,密码等)都允许表情符号 - 尽管在大多数Google键盘配置中,此按钮是隐藏的.有没有办法禁止在EditText中输入表情符号?是否有一个inputType参数可以与textMultiLine禁用表情符号配对?
是否可以隐藏特定的键盘按钮?我有一个EditText和一些设备上它的键盘有笑脸,而在其他设备上它缺少.我想在所有设备上隐藏它.
以下是我的XML EditText:
android:id="@+id/text_editor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignWithParentIfMissing="true"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/send_side"
android:hint="Enter your text"
android:imeOptions="actionSend|flagNoEnterAction"
android:inputType="textLongMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:maxLength="1000"
android:maxLines="3"
android:nextFocusRight="@+id/send_button"
android:padding="12dp"
android:textSize="13sp"
Run Code Online (Sandbox Code Playgroud)
我不得不说我是Android新手,如果不可能,我想知道原因.
谢谢您的帮助.
我想避免让用户在键盘上放一个笑脸EditText.可能吗 ?

你好,我正在寻找限制表情符号正则表达式或输入格式化程序的颤振。如果有人有想法,我想在文本字段中禁用表情符号,请帮助我。提前致谢。