如何在Android中创建新行?

-4 android newline

我正在开发一个android项目.我想使用创建一个新段落/n.但我没有得到预期的结果.有没有其他方法来创建一个新的线?

我的代码如下

tv.setText("Some of the symptoms of cataract include:/n1.Cloudy, blurry or foggy vision/n2. Development of short-sightedness in older people/n3. Seeing colors differently./n3. Problems with glare during the day or night/n4. Double vision/n5. Sudden changes in prescription of glasses");
Run Code Online (Sandbox Code Playgroud)

FD_*_*FD_ 7

\n改用.你的斜线是错误的方向.它必须是一个斜线.


Gau*_*pta 5

\n 此时在文本中插入换行符。

因此,使用\n而不是/n