2017-04-25 38 views
0

每當我有第二行時,它將從左側開始到第一行,因爲我正在嘗試寫入3當第二級或第三級第二行回到屏幕的開始時,它會破壞我的組織, 也知道增加空間不是一個好的解決方案,因爲當手機在橫向時,它顯示的空間,如果我添加一個Android工作室中的段落文本對齊,xml

+1

嘗試使用填充和利潤 –

+0

保證金解決我的問題,謝謝, – user7833150

回答

1

您必須設計縱向和橫向視圖。由於屏幕布局不同,兩者都將使用不同的xml。所以這將解決縱向和橫向問題。對於從開始的文本嘗試給該文本視圖提供保證金。

按照This Link

0

請試試這個:

<TextView 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="\t\t\t\t\t\tLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."/>