How to wrap GoogleMap fragment into a LinearLayout?

mrtea

New Member
I tried this:\[code\]<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>\[/code\]But I got 2 errors:[*]\[code\]<fragment xmlns:map="http://schemas.android.com/apk/res-auto"\[/code\]: \[quote\] Unexpected namespace prefix "xmlns" found for tag fragment\[/quote\]2.\[code\]map:mapType="normal"\[/code\]: \[quote\] Unexpected namespace prefix "map" found for tag fragment\[/quote\]What am I doing wrong, and how should it looks like in order to integrate more objects except the Google Map in my app...thnx !EDIT !!I tried this, and it works ! \[code\]<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>\[/code\]Can't understand why.. also can't understand what \[code\]map:mapType="normal"\[/code\] and \[code\]xmlns:map="http://schemas.android.com/apk/res-auto"\[/code\] means... ??
 
Back
Top