Android textview比我要填充的区域小

Android textview比我要填充的区域小,android,Android,在生成xml代码时出现了问题。如果我把horizontalScrollView保存在问题中,如果有太多的文本,但当它不够时,希望整行都被填满。 1.图片txtview必须比另一个小得多。 2.图片是我想要的,但灰色的边框是透明的。我不想看到这三个文本框之间的边界 如果我使用horizontalscrollview,文本视图的表面将被压缩。。但我想要什么它都不比屏幕的重量小,但它必须在一行上,我的问题的答案是: HorizontalScrollView:fillViewport=true您能更好地

在生成xml代码时出现了问题。如果我把horizontalScrollView保存在问题中,如果有太多的文本,但当它不够时,希望整行都被填满。 1.图片txtview必须比另一个小得多。 2.图片是我想要的,但灰色的边框是透明的。我不想看到这三个文本框之间的边界


如果我使用horizontalscrollview,文本视图的表面将被压缩。。但我想要什么它都不比屏幕的重量小,但它必须在一行上,我的问题的答案是:
HorizontalScrollView:fillViewport=true

您能更好地解释这个问题吗?如果我使用HorizontalScrollView,它的文本视图的表面是压缩的。但我希望它不小于屏幕的重量,但它必须在一行上
<LinearLayout 
   android:orientation="horizontal"
   android:layout_width="match_parent"
   android:layout_height="wrap_content">
        <TextView
           android:id="@+id/txtMemory"
           android:layout_width="fill_parent"
           android:layout_height="match_parent" 
           android:layout_weight="10"           
           android:background="@drawable/stackview1"
           android:textColor="@color/darkgreen"
           android:gravity="left"           
           android:layout_marginTop="3sp"
           android:layout_marginLeft = "5sp"/>

        <HorizontalScrollView
           android:layout_width="fill_parent"
           android:layout_height="match_parent"
           android:id="@+id/scrollView"
           android:layout_weight="1"
           android:layout_marginRight="5sp"
           android:layout_marginTop="3sp"
           android:gravity="right">

           <TextView
                android:id="@+id/txtStack"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"           
                android:background="@drawable/stackview1" />
        </HorizontalScrollView>
</LinearLayout>