title: Drag/Drop feature in Android studio not working
body: <p>I'm new to android programming The drag/ and drop feature in android studio is not working. I can't drag anything to my phone. Right now my fragment is  google map view  and i want to add a search bar to the view. It just doesn't drag. When I try to add it in text it says element item not allowed here?</p>
  
  <p>This is my activity_maps.xml file           </p>
  
  <pre><code> &lt;fragment 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" android:id="@+id/map" tools:context=".MapsActivity"
  android:name="com.google.android.gms.maps.SupportMapFragment"&gt;
  &lt;item android:id="@+id/search"
      android:title="@string/search_title"
      android:icon="@drawable/ic_search"
      android:showAsAction="collapseActionView|ifRoom"
      android:actionViewClass="android.widget.SearchView" /&gt;
  &lt;/fragment&gt;
  </code></pre>