我有這樣的事情。背景透明和前景較暗
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fb="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="@drawable/blue_bg"
tools:context="com.example.budgetme.MainActivity" >
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
如何使 「機器人:背景=」 @繪製/ blue_bg」透明的,另一個按鈕,Textviews等更黑暗,更 「看到」 提前
你想要什麼?清楚地解釋。 – 2014-11-05 07:00:17
您可以使用具有alpha值的顏色代碼使其透明,如'android:background =「#550000FF」'這裏前兩個字符表示alpha值,其餘6個字符代表顏色代碼。 – dakshbhatt21 2014-11-05 07:01:48
'android:alpha =「0.40」'使背景半透明。 – 2014-11-05 07:02:43