How to create the Menu button equal the Maps App. Here is an example in the red square.
Could someone pass an example?
How to create the Menu button equal the Maps App. Here is an example in the red square.
Could someone pass an example?
I think it's a DrawerLayout :
It allows a fragment to be "hidden" to the left or right of the screen.
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>