LoginSignup
6
6

More than 5 years have passed since last update.

EditText/TextViewに絵文字を入力&表示する

Last updated at Posted at 2012-06-04
EditText edit = new EditText();
Bunble bunble = et.getInputExtra(true);
if ( bunble != null ) bunble.putBoolean("allowEmoji",true); // 絵文字

絵文字が含まれる文字列をTextViewに表示するのはそのままでいいっぽい。

String s = edit.getText().toString();
text.setText(s);

ただし、表示される絵文字はもちろん端末依存というかキャリア依存。

デコメ絵文字もbunble.putBoolean("allowDecoEmoji",true);で入力できるようになる、
とdocomoのページにはあるが、IS12Sは入力できるようにならなかった。
http://www.nttdocomo.co.jp/service/developer/smart_phone/service_lineup/decoemojimanager/guide/textview/index.html#p02

標準IMEが対応してないっぽい?
対応入力ソフトとか入れると出るのかな?

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6