Issue
I would like to put transparent (map visible under it) button over mapview? How can i achieve that?
Solution
Try using this on the button android:background="@null" or android:background="@android:color/transparent" EDIT: to place over use a relative layout:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.maps.MapView android:id="@+id/google_maps"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="@string/maps_key"/>
<Button android:id="@+id/googlemaps_select_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:text="Select"/>
</RelativeLayout>
Answered By - SquiresSquire
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.