Create button menu at the bottom in Google maps v2 android

1

How to create the Menu button equal the Maps App. Here is an example in the red square.

Could someone pass an example?

    
asked by anonymous 14.04.2015 / 04:04

2 answers

1

I think it's a DrawerLayout :

It allows a fragment to be "hidden" to the left or right of the screen.

    
14.04.2015 / 17:22
1

You can use RelativeLayout on the entire screen, put an ImageView with the image you want to be your "button" and use the android:layout_alignParentBottom="true" android:layout_alignParentLeft="true"

Then a 'layout_marginBottom =' 5dp '' to not stick glued to the bottom.

Here's an example:

<RelativeLayout
    android:id="@+id/map"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:id="@+id/button_drawer"
        android:src="@drawable/ic_drawer_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="5dp"/>

</RelativeLayout>
    
14.04.2015 / 20:53