我有这样的事情。背景透明和前景较暗
<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