我试图在后台应用那个交叉线,因为我已经应用了这个代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:background="@drawable/tiles"
android:orientation="vertical" >
<Button
android:id="@+id/Button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginTop="@dimen/dp50"
android:alpha="0.8"
android:background="#99cc00"
android:gravity="left|center_vertical"
android:paddingLeft="@dimen/dp5"
android:text="Login"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@android:color/white" />
<Button
android:id="@+id/Button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp2"
android:alpha=".8"
android:background="#99cc00"
android:gravity="left|center_vertical"
android:paddingLeft="@dimen/dp5"
android:text="Register"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@android:color/white" />
<Button
android:id="@+id/Button3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp2"
android:alpha=".8"
android:background="#99cc00"
android:gravity="left|center_vertical"
android:paddingLeft="@dimen/dp5"
android:text="Policies"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@android:color/white" />
</LinearLayout>
输出是
我也试过 android:layout_height="match_parent" & android:layout_height="wrap_content"
但这没有帮助..
有人可以告诉我我做错了什么吗