我应该怎么写三个点?

Mus*_*abe 16 java ellipsis

简单的问题:我想设置一个TextView,我希望有三个点(省略号).喜欢

Read more...< - 现在我确定我不应该只写入...字符串.我应该怎么写这三个点?

Daw*_*ica 25

在字符串文字中写下"\ u2026".见http://www.fileformat.info/info/unicode/char/2026/index.htm

  • 但他没有."\ u2026"总是意味着省略号. (2认同)

Eri*_*oen 11

您可以使用UTF-8字符"Horizo​​nal省略号"(U + 2026),"\ u2026":

...

http://www.fileformat.info/info/unicode/char/2026/index.htm

  • 读取XML文件与在字符串文字中使用`\ u`完全不同. (3认同)
  • 在GUI中无关紧要.Java使用UTF-16在内部表示字符串.只有当您想要从文件等输入或输出文本时,编码才有意义:http://stackoverflow.com/questions/9699071/what-is-the-javas-internal-represention-for-string-modified-utf-8- UTF-16.Authorative source来源:http://docs.oracle.com/javase/7/docs/technotes/guides/intl/overview.html,请参阅"文本表示" (2认同)