display built-in emoji keys for inputmethod

前端 未结 4 1570
梦毁少年i
梦毁少年i 2021-02-08 12:13

I\'m building a custom soft keyboard for android and would like to add a layout to include the emoji keys similar to what the default android keyboard (AOSP) is doing. I\'ve sea

4条回答
  •  难免孤独
    2021-02-08 12:27

    Emoticons-Keyboard

    1) instead emitos ,Iam replacing the ImageView containing an asset with a TextView containing a Unicode sequence.

    After cross referencing Supported Unicode Sequences as well as the Visual Unicode Database I realized that **u1F601** was a 32 bit Unicode representation, and the 16bit representation can be set like :

    EditText messageInput = (EditText) findViewById(R.id.message_input);
    messageInput.getText().append("\ud83d\ude01");
    

    2) http://android.appstorm.net/how-to/customization/how-to-use-emojis-on-your-android-device/

提交回复
热议问题