的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