Display widgets on a map

I am a new developer in android application.i would like to display a google map in my application. I would like to display Android widgets on a map. I can display Android widgets like buttons, edit text fields, text views, etc.,

I have a development code for getting a map in xml as follows

<com.google.android.maps.MapView
             android:id="@+id/mapId" 
             android:layout_width="fill_parent"
             android:layout_height="fill_parent"
             android:enabled="true"
             android:clickable="true"
             android:apiKey="XYX_API_CODE_HERE_XYX"
             />

please, any body can help me

Thanks at adavnce

+5
source share
2 answers

There are great demos that come with the android SDK:

, Google API MapsDemo, . API Google:

/add-ons/google_apis-API_LEVEL/samples/MapsDemo

Edit:

, , . , , FrameLayout. :.

<FrameLayout 
         android:layout_width="fill_parent"
         android:layout_height="fill_parent">
    <com.google.android.maps.MapView
         android:id="@+id/mapId" 
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
         android:enabled="true"
         android:clickable="true"
         android:apiKey="XYX_API_CODE_HERE_XYX"
         />
     <LinearLayout 
         android:layout_width="fill_parent"
         android:layout_height="fill_parent" android:orientation="vertical">
           <!-- Your other widgets (buttons, inputBoxes, etc) goes here -->
     </LinearLayout>
</FrameLayout>
+3

FrameLayout, . XML FrameLayout MapView , textview ..

layout_gravity , , , , , cener_vertical ..

0

All Articles