Android studio中段落的文本对齐,xml

Android studio中段落的文本对齐,xml,android,android-layout,textview,android-xml,Android,Android Layout,Textview,Android Xml,每当我有第二行时,它都会从左到屏幕的开头,而我在第一行中用一定的空格开始,因为我试图写三级行,当第二或第三级第二行回到屏幕的开头时,它会破坏我的组织, 还要知道添加空间不是一个好的解决方案,因为当手机处于横向时,它会显示该空间,如果我添加一个,您必须同时设计纵向和横向视图。由于屏幕布局不同,两者都将使用不同的xml。所以这将解决肖像画和风景画的问题。对于从开头开始的文本,请尝试在该文本视图上提供边距 请尝试以下操作: <TextView android:layo

每当我有第二行时,它都会从左到屏幕的开头,而我在第一行中用一定的空格开始,因为我试图写三级行,当第二或第三级第二行回到屏幕的开头时,它会破坏我的组织,
还要知道添加空间不是一个好的解决方案,因为当手机处于横向时,它会显示该空间,如果我添加一个,您必须同时设计纵向和横向视图。由于屏幕布局不同,两者都将使用不同的xml。所以这将解决肖像画和风景画的问题。对于从开头开始的文本,请尝试在该文本视图上提供边距

请尝试以下操作:

  <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."/>


尝试使用padding和marginsmargin解决了我的问题,谢谢,