I have a google map and this is the default layout when creating a map activity when starting a new project:
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.xxxxx.xxxxx.xxxxx.xxxxx.MapsActivity" />
When I go into design view I would like to be able to drag a button onto the map/fragment. But it would appear that behaviour isn't allowed.
Is it not possible to drag a UI components onto the map? That is then different to iOS.
If that's the case would I use a linear layout and then include the fragment and button in that?
Thanks.