android - 如何以编程方式输入新行?

标签 android utf-8 character-encoding character ascii

我的应用程序有一个发送电子邮件的功能,在这封电子邮件中我希望它说这样的话:

Hello,

This is an email.

我的问题是如何以编程方式在 Hello,This is an email 之间输入一个新行?

最佳答案

使用:

“你好,\r\n这是一封电子邮件。”

关于android - 如何以编程方式输入新行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14284169/

相关文章:

Android Gradle keyAlias 变量存储在单独的文件中

android - Camera Intent 创建空图片

php - 将 ISO-8859-1 转换为 UTF-8 问题

java - 与 postgreSQL 数据库连接的非法 UTF-8 序列

html - 内容类型与 HTML 编码

python - 无法从 Python 2.x 下 pandas 的列名中删除 unicode 字符

android - 如何判断 key 是否受硬件支持?

python - 将 utf-8 写入 Excel CSV

java - 构造URL查询字符串: character set encode/decode

android - 使用 AlertDialog.Builder 从对话框中保存值