Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insert unicode symbols to edittext

How to insert Unicode symbols to edit text? In iOS we can do it by just by specifying the code i.e \U0001F68A .What about android ?

like image 489
Emel Elias Avatar asked May 08 '12 11:05

Emel Elias


2 Answers

editText.setText("\u00A9 2013 by John Smith");

will put the copyright symbol followed by " 2013 by John Smith" into the the EditText editText.

like image 68
earlcasper Avatar answered Sep 28 '22 00:09

earlcasper


editText.getText().append("\uD83D\uDE0A");
like image 29
Fedor Avatar answered Sep 27 '22 22:09

Fedor