Question

Could someone tell me How to add a custom controller like a button to Google Map Android API V2? I searched a lot and took a look at https://developers.google.com/maps/documentation/android/intro , but nothing I could find in this regard. I have done the same before on web and using Javascript like adding a DIV to a map. For Android, I could not find anything.

Was it helpful?

Solution

Look this xml will put your Layout at the bottom of any View you will use in RelativeLayout

  <RelativeLayout
        android:id="@+id/footer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="#FC0"
        android:gravity="center" >

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="5dp"
            android:text="Fixed Footer"
            android:textColor="#000"
            android:textSize="20sp" />
    </RelativeLayout>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top