的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与bottons上的低透明度。有预谋的谢谢你:D
你可以给我发送我的xml编辑请:|? – user3104504
编辑答案,请参阅android:alpha属性 – CSmith
非常感谢你,这是我需要的! – user3104504