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:-

enter image description here

any idea how can resolve this?

  1. right click on fragment name.
  2. fragment layout => select fragment name.

good luck. :)


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -