【问题标题】:how to align the text that a textview shows to the left ? in android app in Eclipse [closed]如何将文本视图显示的文本向左对齐?在 Eclipse 的 android 应用程序中[关闭]
【发布时间】:2013-04-09 22:20:46
【问题描述】:

我在滚动视图内有一个文本视图...在线性布局中: 当我打开 avd 来测试应用程序时,我得到的文本的第一行向右对齐,段落的其余部分是正常的(从左开始)。每个段落都是这样。

这就是我所拥有的:

<LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="360dp"
android:addStatesFromChildren="true" >

    <TextView
        android:id="@+id/description_label"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="60dip"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"
        android:textColor="#000000" />

                  <!-- Description Label -->

</ScrollView>




</LinearLayout>

【问题讨论】:

  • 你试过 吗?
  • @darry.ten 我已经试过了:
  • 我也试过了:
  • @darryn.ten 我已经修复了它......这与代码无关......它是关于我在 xml 文件(在描述标签内)的 TextView 上编写文本的方式。 . 它必须将文本一直写到左边(到第一列)。谢谢

标签: android eclipse android-listview android-xml android-scrollview


【解决方案1】:

这不是关于代码..它是关于我在 xml 文件上的 TextView 上写入文本的方式(在描述标记内)..它必须将文本一直写到左边(到第一列)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-22
    • 2018-10-07
    相关资源
    最近更新 更多