Android 在framelayout或relativeLayout中设置不透明度
编辑:你能帮我吗 我试图在SupportMapFragment上显示一个按钮Android 在framelayout或relativeLayout中设置不透明度,android,android-relativelayout,android-button,android-framelayout,Android,Android Relativelayout,Android Button,Android Framelayout,编辑:你能帮我吗 我试图在SupportMapFragment上显示一个按钮 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" andro
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/menu_model"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
</LinearLayout>
<FrameLayout
android:id="@+id/content_parent"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="N/A"
android:src="@drawable/spongebob" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >
<Button
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="I am transparent" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
第一个LinearLayout用于设置SupportMapFragment的区域,第二个用于设置按钮的位置
但是按钮是透明的,我希望它是不透明的
我该怎么办
提前谢谢 到底是什么问题?按钮是透明的,我希望它是不透明的默认按钮是不透明的。