Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to programmatically hide/disable emoticons on Android soft keyboard

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?

like image 674
ellen6a Avatar asked May 09 '14 09:05

ellen6a


People also ask

How do you hide Emojis on Android keyboard?

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.

How do I turn off emoticons on my keyboard?

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.”

How do you open Emoji keyboard on Android?

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.


1 Answers

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.

like image 180
Scorpio Avatar answered Sep 21 '22 15:09

Scorpio