相关疑难解决方法(0)

55
推荐指数
8
解决办法
8万
查看次数

以编程方式隐藏/禁用Android软键盘上的表情符号

是否可以隐藏特定的键盘按钮?我有一个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新手,如果不可能,我想知道原因.

谢谢您的帮助.

android android-softkeyboard android-edittext

29
推荐指数
2
解决办法
2万
查看次数

4
推荐指数
2
解决办法
6423
查看次数