Emel Elias
Emel Elias

Reputation: 572

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 ?

Upvotes: 6

Views: 2980

Answers (2)

earlcasper
earlcasper

Reputation: 915

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

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

Upvotes: 6

Fedor
Fedor

Reputation: 43412

editText.getText().append("\uD83D\uDE0A");

Upvotes: 4

Related Questions