0

我的问题很简单,但我无法解决,也许您可​​以给我一个想法,所以我尝试将图像作为线性布局的背景,但它不会水平拉伸。右角应该像左角一样圆,我在哪里出错?

这是我使用的图像

在此处输入图像描述

这就是结果。

在此处输入图像描述

<LinearLayout
                    android:layout_width="0dip"
                    android:layout_height="match_parent"
                    android:layout_weight="30"
                    android:layout_marginLeft="5dip"
                    android:orientation="vertical"
                    android:background="@color/red">
                <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:background="@drawable/abccc"
                        android:gravity="left|center">
                    <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/uye_girisi"
                            android:textColor="@color/white"
                            android:textSize="25sp"
                            android:textStyle="bold"
                            android:layout_marginLeft="20dip">
                    </TextView>
                </LinearLayout>
            </LinearLayout>
4

0 回答 0