title: How to remove space on the left side of Android searchview (which is not part of actionbar)?
body: <p>I am using a searchview in android app (<strong>searchview is not a part of action bar</strong>). I want to remove the space on the left side of the search icon/ searchview. I searched a lot and received answers which worked for searchviews which are part of action bar.</p>
  
  <p>I tried using <strong>android:layout_gravity, android:gravity</strong>, but they didnt seem to work. I thought of using <strong>android:contentInsetStart, android:contentInsetLeft</strong>, but these options are not available for searchview (which is not a part of action bar). </p>
  
  <p>[<a href="http://postimg.org/image/xz6pf8yp5/][1]" rel="noreferrer">http://postimg.org/image/xz6pf8yp5/][1]</a></p>
  
  <p>(cant post image directly here since my reputation is less than 10)</p>
  
  <p>The serchview is in LinearLayout (vertical orientation). Here is the code which I am using :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context=".MainActivity"
      tools:showIn="@layout/activity_main"&gt;
  
      &lt;SearchView
          android:id="@+id/searchView1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:paddingTop="2dp"
          android:layout_gravity="left"
          android:gravity="left"
          /&gt;
  
      &lt;ListView
          android:id="@+id/listView1"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@android:color/white" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>