Is it possible to hide a specific keyboard button? I have an EditText
and on some devices its keyboard has smiley faces while on other devices it is missing. I want to hide it on all devices.
Below is the XML for my 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"
Is this possible?
Open any chat on any messenger app so the emoji bar will appear. Start typing and once you see the emoji bar, swipe left on it. You will see a Remove Bar button, tap on it and it will take you to settings. Here you can disable the Emoji fast-access bar toggle to disable that emoji bar completely.
Select the virtual keyboard you're using (like Gboard, and not “Google voice typing”) and then Preferences. (There's a shortcut to this location, too: With virtual keyboard displayed, tap and hold on the comma [,] key until you see a small Settings gear appear.) Now, disable the option “Show emoji switch key.”
You'll want to go to Settings > General, then scroll down and tap on Keyboard. Below a handful of toggle settings like Auto-Capitalization is the Keyboards setting. Tap that, then tap "Add New Keyboard." There, sandwiched between non-English language keyboards is the Emoji keyboard. Select it.
I found something in "Disabling smiley key on keyboards with the stock messaging app in ICS".
You need to remove the textLongMessage
option from the inputType
.
You will still have the ":-)" button on most keyboards, but not the emoji.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With