Skip to content

Instantly share code, notes, and snippets.

@tomoyamkung
Last active December 17, 2015 06:49
Show Gist options
  • Save tomoyamkung/5568380 to your computer and use it in GitHub Desktop.
Save tomoyamkung/5568380 to your computer and use it in GitHub Desktop.
[Android]EditText に絵文字を入力できるようにするコード
protected void enableInputEmoji(int id) {
EditText editor = (EditText) findViewById(id);
Bundle bundle = editor.getInputExtras(true);
if(bundle != null) {
bundle.putBoolean("allowEmoji", false);
bundle.putBoolean("allowDecoEmoji", false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment