I want to add a button like below google map standard button to my google map application. Please see below image. First button is one of the google map standard button and second is another custom button that user himself added it.
At below link @chintan khetiya described how to add a button to the map from layout codes but this is not a button like standard buttons.
How to draw free hand polygon in Google map V2 in Android?
This is the code of @chintan khetiya:
<fragment
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
class="com.google.android.gms.maps.SupportMapFragment" />
<FrameLayout
android:id="@+id/fram_map"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<Button
android:id="@+id/btn_draw_State"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Free Draw" />
</FrameLayout>
In order to creating a button like the button in below image what is the best way? Surely the location must be exactly below the standard buttons and also images should keep their voice. Do we need to use above layout code and change images and location manually from the layout or there is a better way? I think google should create an other way for adding such buttons to mao. Is there such ways?
Finally I prefer to add this button programatically instead of adding it on the layout.
Thanks