【问题标题】:Text alignment of a paragraph in Android studio, xmlAndroid Studio中段落的文本对齐,xml
【发布时间】:2017-04-25 04:34:28
【问题描述】:

每当我有第二行时,它都会从左边开始到屏幕的开头,而我从第一行的某个空格开始,因为我正在尝试写 3 级线,而当第 2 级或第 3 级第二线回到屏幕的开头它破坏了我的组织, 还知道添加空间不是一个好的解决方案,因为当手机处于横向时,如果我添加一个,它会显示该空间

【问题讨论】:

  • 尝试使用内边距和边距
  • margin 解决了我的问题,谢谢,

标签: android android-layout textview android-xml


【解决方案1】:

您必须同时设计纵向和横向视图。由于屏幕布局不同,两者都将使用不同的 xml。所以这将解决纵向和横向的问题。对于从头开始的文本,请尝试在该文本视图上留出边距。

关注This Link

【讨论】:

    【解决方案2】:

    请试试这个:

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

    【讨论】:

      猜你喜欢
      • 2012-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-18
      • 1970-01-01
      • 2017-05-29
      • 1970-01-01
      相关资源
      最近更新 更多