I tried this:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <fragment xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" android:name="com.google.android.gms.maps.SupportMapFragment" map:mapType="normal" /> </LinearLayout>
But I have 2 errors:
<fragment xmlns:map="http://schemas.android.com/apk/res-auto" :
Unexpected xmlns namespace prefix found for tag fragment
2. map:mapType="normal" :
Unexpected map namespace prefix found for tag fragment
What am I doing wrong, and what does it look like to integrate more objects besides Google Map in my application ...
thnx!
CHANGE!
I tried this and it works!
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" map:mapType="normal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <fragment android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" android:name="com.google.android.gms.maps.SupportMapFragment" /> </LinearLayout>
I can’t understand why .. also I can’t understand what map:mapType="normal" means map:mapType="normal" and xmlns:map="http://schemas.android.com/apk/res-auto" ... ??
source share