Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/208.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在framelayout或relativeLayout中设置不透明度_Android_Android Relativelayout_Android Button_Android Framelayout - Fatal编程技术网

Android 在framelayout或relativeLayout中设置不透明度

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

编辑:你能帮我吗

我试图在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"
    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的区域,第二个用于设置按钮的位置

但是按钮是透明的,我希望它是不透明的

我该怎么办


提前谢谢

到底是什么问题?按钮是透明的,我希望它是不透明的默认按钮是不透明的。