【发布时间】:2011-08-23 14:18:47
【问题描述】:
我的应用中有两个垂直的 TextView 元素。 TextViews之间有很多空间,pading和layoutMargin都是0
有没有办法减少这个空间?
编辑 这是我的代码:
.
.
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="right"
android:paddingRight="10dp"
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/text_size_extra_small"
android:textColor="@color/home_tab_text_normal"
android:text="Test1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/orange_text_color"
android:textSize="@dimen/text_size_large"
android:textStyle="bold"
android:text="Text2"/>
</LinearLayout>
.
.
感谢
【问题讨论】:
-
显示你的代码,可能是因为 TextViews 父布局的设置
-
@Zsolt Safrany 这个问题较旧,重复只能是最新问题:)
-
@Jovan 没关系。他们问同样的问题,并且有一个解决方案。