main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
android:gravity="center"
android:color="#66FF0000"
>
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/noua"
android:textStyle="bold"
android:textColor="#808080"
/>
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/zece"
android:textStyle="bold"
android:textColor="#808080" />
<Button
android:id="@+id/button3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/unspe"
android:textStyle="bold"
android:textColor="#808080" />
<Button
android:id="@+id/button4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/doispe"
android:textStyle="bold"
android:textColor="#808080"
/>
</LinearLayout>
这是我的main.xml文件,我想让按钮尽可能透明,但仍然要看得到它们,我不知道在哪里添加什么内容,请在xml中使用低透明度来更正。非常感谢:D