gpt4 book ai didi

android减少两个垂直TextViews之间的空间

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:53:58 24 4
gpt4 key购买 nike

<分区>

我的应用程序中有两个垂直的 TextView 元素。TextViews 之间有很多空间,pading 和 layoutMargin 都是 0

有没有办法减少这个空间?

On image space between two text views-padding and margin are 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>

.
.

谢谢

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com