編集:私を助けてくれませんか?
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 の領域を設定するために使用され、2 番目はボタンの位置を設定するために使用されます。
しかし、ボタンは透明で、不透明にしたいです。
私はそれのために何をすべきですか?
前もって感謝します!