Eine Schaltfläche angezeigt, auf der Oberseite der Google maps Android

Hallo, ich versuche eine Schaltfläche angezeigt, auf der Spitze von google maps, könnte mir bitte jemand sagen, wie könnte ich erreichen, dies bitte ich habe versucht, verschiedene Positionen und mein button zeigt hinter der Karte.

Dies ist mein code bisher:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/BlanchedAlmond" >

<Button
    android:id="@+id/startActivityButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center_horizontal|center_vertical"   
    android:onClick="startActivity"
    android:text="@string/start_activity" 
    android:layout_alignParentBottom="true"  />

   <fragment        
    android:id="@+id/map"      
    android:name="com.google.android.gms.maps.MapFragment"        
    android:layout_width="wrap_content"        
    android:layout_height="wrap_content"
    android:layout_above="@id/startActivityButton"    
    /> 

</RelativeLayout>
Verwendet FrameLayout statt RelativeLayout
Wenn Sie sagen 'oben', meinst du, wie ein Kopf-oder ein overlay?
als eine überlagerung ist, was ich möchte

InformationsquelleAutor Natalie Carr | 2014-02-28

Schreibe einen Kommentar