android - namespace declarations in Google V2 map fragment -
the docs can specify following xml define v2 map...
<fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.supportmapfragment" map:camerabearing="112.5" map:cameratargetlat="-33.796923" map:cameratargetlng="150.922433" map:cameratilt="30" map:camerazoom="13" map:maptype="normal" map:uicompass="false" map:uirotategestures="true" map:uiscrollgestures="false" map:uitiltgestures="true" map:uizoomcontrols="false" map:uizoomgestures="true"/>
however when try map fragment definition, ...
<fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.supportmapfragment" />
the compiler flags 2 xmlns lines saying "unexpected namespace prefix "xmlns" found tag fragment"
so, not understanding? thanks, gary
move xmlns
declarations top-level element.
Comments
Post a Comment