将UNI code符号EDITTEXT [英] Insert unicode symbols to edittext
本文介绍了将UNI code符号EDITTEXT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何插入统一code符号编辑文本?
在iPhone,我们可以做到这一点,只需通过指定code即 \ U0001F68A
。什么关于Android?
解决方案
editText.setText(\ u00A9 2013年约翰·史密斯);
会把版权符号,其次是2013年约翰·史密斯入中的EditText EDITTEXT。
How to insert Unicode symbols to edit text?
In iPhone we can do it by just by specifying the code i.e \U0001F68A
.What about android ?
解决方案
editText.setText("\u00A9 2013 by John Smith");
will put the copyright symbol followed by " 2013 by John Smith" into the the EditText editText.
这篇关于将UNI code符号EDITTEXT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文