2017-08-10 25 views

回答

0

之前/ N像上面

<TextView 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="\/n" 
      android:textStyle="bold" 
      android:layout_margin="10dp" 
      /> 
0

您可以使用轉義序列\\ñ

添加\
0

您的字符串

<string name="your_string">Your \\n String</string> 
-1

使用\\n前只需添加一個\而不是\n在你的字符串中

相關問題