title: android searchview grey border around input field API >= 26
body: <p>I am getting a weird grey border around the input text field of a search view with emulators which have API >= 26. Only SearchViews inside of a fragment encounter this issue.</p>
  
  <p>Can you please advise on how this can be resolved?</p>
  
  <p><a href="https://i.stack.imgur.com/HNaDW.png" rel="nofollow noreferrer">SearchView Picture</a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:id="@+id/view_layout"
              android:paddingLeft="0dp"
              android:paddingRight="0dp"
              android:paddingTop="0dp"
              android:paddingBottom="0dp"
              android:background="@color/grey_background"
              android:clickable="true"
              android:focusableInTouchMode="true"&gt;
  &lt;RelativeLayout
      android:id="@+id/search_view_layout"
      android:layout_width="match_parent"
      android:layout_height="70dp"
      android:background="@color/grey_background"&gt;
      &lt;SearchView
          android:id="@+id/search_view"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:iconifiedByDefault="false"
          android:padding="2dp"
          android:layout_margin="5dp"
          android:layout_marginLeft="0dp"
          android:queryHint="Search...."
          android:elevation="0dp"
          android:background="@drawable/search_view_border"
          android:focusable="false"/&gt;
  &lt;/RelativeLayout&gt;
  &lt;android.support.v7.widget.RecyclerView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/recycler_view"
      android:paddingTop="5dp"
      android:background="@color/grey_background"
      android:layout_below="@+id/search_view_layout"
      android:clickable="true"
      android:focusableInTouchMode="true"
      android:focusable="true" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The code for search_view_border.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle" &gt;    
      &lt;item&gt;
          &lt;shape&gt;
              &lt;!-- set the shadow color here --&gt;
              &lt;stroke
                  android:width="10dp"
                  android:color="#A1A9B4" /&gt;    
              &lt;!-- setting the thickness of shadow (positive value will give shadow on that side) --&gt;
              &lt;padding
                  android:bottom="1dp"
                  android:left="1dp"
                  android:right="1dp"
                  android:top="1dp" /&gt;
              &lt;corners android:radius="0dp"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;!-- Background --&gt;
      &lt;item&gt;
          &lt;shape&gt;
              &lt;solid android:color="#ffffff" /&gt;
              &lt;corners android:radius="0dp" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>