I am trying to have a button with an emoji character within the text string for that button. I know there is a way to do this in iOS, is there a way to do this in Android?
Asked
Active
Viewed 265 times
2 Answers
0
In Android, you use Spannable
to display images inline with text (which is similar to the iOS 'NSAttributedString` concept, I believe).
This should work for TextView
Button
and EditText
and there are many references / examples available, depending on your needs.

Jim
- 10,172
- 1
- 27
- 36
0
Check out the answer over here: how set emoji by unicode in a textview?
You have to use unicodes unlike in iOS where you can add them directly

Lone Ronin
- 2,530
- 1
- 19
- 31