I am developing app with map in viewPager, I followed the second part of this answer and every thing is ok. Now I need the view to be map with button.
This is the .xml code
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="vertical">
<fragment xmlns:android="http://schemas.android.com/apk/red/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/map"
android:layout_height="match_parent"
android:layout_weight="0.1"
android:layout_width="match_parent"
android:name="com.google.android.gms.maps.SupportMapFragment"
tools:context="com.developers.redfinger.mymap.MainMapActivity"></fragment>
<Button
android:id="@+id/bAdd"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.9"
android:paddingTop="5dp"
android:text="Add Place"
android:textSize="28dp" />
</LinearLayout>
When I override onCreatView()
as first part of answer to define button the unfortunately stop, any help please.