是否可以隐藏特定的键盘按钮?我有一个EditText
在某些设备上,其键盘上有笑脸,而在其他设备上则没有。我想在所有设备上隐藏它。
下面是我的 XMLEditText
:
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"
这可能吗?
我在“使用 ICS 中的股票消息应用程序禁用键盘上的笑脸键 https://android.stackexchange.com/questions/20601/disabling-smiley-key-on-keyboards-with-the-stock-messaging-app-in-ics".
您需要删除textLongMessage
选项从inputType
.
大多数键盘上仍然有“:-)”按钮,但没有表情符号。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)