android - <fragment> Pick preview layout from "Fragment Layout" context menu -
iam including map in app. doing below:-
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".mainactivity" > <spinner android:id="@+id/spr_place_type" android:layout_width="wrap_content" android:layout_height="60dp" android:layout_alignparenttop="true" /> <button android:id="@+id/btn_find" android:layout_width="wrap_content" android:layout_height="60dp" android:layout_alignparenttop="true" android:layout_torightof="@id/spr_place_type" android:text="@string/str_btn_find" /> <fragment android:id="@+id/map" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/spr_place_type" class="com.google.android.gms.maps.supportmapfragment" />
but in graphical layout following error:-
any idea how can resolve this?
- right click on fragment name.
- fragment layout => select fragment name.
good luck. :)
Comments
Post a Comment