我有一个TextView应该是4行长.
First line text should be "YES"
Second Line ="No"
Third Line = "true"
Fourth line + "false"
Run Code Online (Sandbox Code Playgroud)
怎么能用一个TextView呢?
Ron*_*hta 17
尝试关注多行 TextView.
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLines="4"
android:singleLine="false"
android:text="YES\nNo\ntrue\nfalse" />
Run Code Online (Sandbox Code Playgroud)
您可以尝试\n在下一行中设置文本.
| 归档时间: |
|
| 查看次数: |
24281 次 |
| 最近记录: |