0

I need to show smileys button by default when user input in my EditText.

Now keyboard for my EditText looks like:

Look at the right bottom, you will see done button.

In same time in sms app keyboard looks like:

[

At the right bottom displays smiles button.

How do I display smile button in keyboard for my EditText?

Now I have next ExitText layout:

<EditText
  ... // some layout params             
  android:inputType="textCapSentences|textAutoCorrect|textAutoComplete"/>
Nik
  • 7,114
  • 8
  • 51
  • 75

2 Answers2

1

You can try by adding following attributes in your EditText. Missing property in you code is textShortMessage. So you can try by adding same.

    android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
    android:imeOptions="actionSend|flagNoEnterAction"
Beena
  • 2,334
  • 24
  • 50
  • It works. Thanks. It looks strange, but I couldn't find solution in Internet during one hour. – Nik Jun 15 '16 at 11:46
1

You just have to add imeOption textShortMessage.

<EditText
  ... // some layout params             
  android:inputType="textShortMessage|textCapSentences|textAutoCorrect|textAutoComplete"/>
Niranj Patel
  • 32,980
  • 10
  • 97
  • 133