Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display emotion icon in Android TextView via Unicode chars or other way

Tags:

java

android

I try to make a chat application for android. Here, I want to show emotion icon in android Text View.

I want to show Emotion Icon like this.

enter image description here

I found one project in github :: https://github.com/sharakova/EmojiTextView. Here is image in drawable but i do not use image. i want to use Unicode chars. So, How can show Emotion icon via Unicode chars.

Some one tell to use Spannable Text but it make my application slow. when use many Emotion icon in chat.

So, Here any way to show Emotion icon in android Text-view?.

Thanks.

like image 837
Md Abdul Gafur Avatar asked Oct 22 '22 09:10

Md Abdul Gafur


1 Answers

1) find UTF-8 character for your emotion For example smile http://www.fileformat.info/info/unicode/char/263a/index.htm

2) insert in to text value of "C/C++/Java source code" field regarding to link above for smile it is "\u263A"

like image 68
Yuriy Vinogradov Avatar answered Oct 24 '22 02:10

Yuriy Vinogradov