Insert unicode symbols to edittext

折月煮酒 提交于 2019-12-22 05:50:30

问题


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 ?


回答1:


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

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




回答2:


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


来源:https://stackoverflow.com/questions/10497322/insert-unicode-symbols-to-edittext

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!