我想我TextView
看起來像這樣:格式的TextView來顯示樂曲
叮叮噹,叮叮噹
叮噹一路
哦,這是什麼好玩的騎
在一匹馬開放雪橇
嘿,叮叮噹,叮叮噹
叮噹一路
哦,這是什麼好玩的騎
在一匹馬駕的雪橇
叮叮噹,叮叮噹
叮噹一路
哦,這是什麼好玩的騎
在一匹馬駕的雪橇
嘿,叮叮噹,叮叮噹
叮噹一路
哦,它是騎
在一匹馬駕的雪橇
這裏有什麼好玩的是activity_main.xml
代碼爲TextView
<TextView
android:id="@+id/txtOut"
android:layout_below="@+id/txtIn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="25sp"
android:textColor="@android:color/black"
android:scrollbars="vertical"
android:text="@string/song"
/>
,你可以看到,最後一個屬性android:text="@string/song"
設置文本從R.strings
在R.strings
我的歌看起來我希望它的方式串,但是當我運行應用程序,這一切看起來是這樣的
叮叮噹,叮叮噹 叮噹一路 哦,有什麼好玩的是騎 在一匹馬開放雪橇 嘿,叮叮噹,叮叮噹 叮噹一路 哦,這是什麼好玩的騎上 在上Ë馬開雪橇 叮叮噹,叮叮噹 叮噹一路 哦,這是什麼好玩的騎 在一匹馬開放雪橇 嘿,叮叮噹,叮叮噹 叮噹一路 哦,有什麼好玩的是騎 在一匹馬開撬
我怎樣才能讓它看起來我想要它?
添加新行到您的字符串資源。 – CommonsWare