android spinner takes too much space
<p>Kindly help me I am facing the problem in spinner,i created the spinner . the adapter having only an Imageview. I have added the spinner on Linearlayout which is in Toolbar Layout. </p>

<p>when i creating the view, in Spinner ,the Space between Imageview and arrow. how to get rid of this space. i have added the Images below. check that image and kindly help me to solve this problem.</p>

<p><strong>the Toolbar layout is below.</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;android.support.design.widget.CoordinatorLayout   
   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:fitsSystemWindows="true"
   tools:context=".fragmentbase.Activity_Home"&gt;

  &lt;android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay"
    app:elevation="0dp"&gt;

    &lt;android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?attr/colorPrimary"
        app:popupTheme="@style/AppTheme.PopupOverlay"&gt;
        &lt;LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="center|right"&gt;
            &lt;android.support.v7.widget.SearchView
                android:id="@+id/action_search"
                style="@style/searchviewTheme"
                android:layout_width="wrap_content"
                android:layout_height="match_parent" /&gt;

            &lt;Spinner
                android:id="@+id/spnrChildChange"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:dropDownWidth="wrap_content"
                android:spinnerMode="dropdown"/&gt;

        &lt;/LinearLayout&gt;



    &lt;/android.support.v7.widget.Toolbar&gt;

&lt;/android.support.design.widget.AppBarLayout&gt;

&lt;include
    android:id="@+id/layout_dash_child"
    layout="@layout/content_main" /&gt;


&lt;/android.support.design.widget.CoordinatorLayout&gt;
</code></pre>

<p>When i set to Spinner layout_width="65" the image hide behind the arrow</p>

<p><a href="https://i.stack.imgur.com/umDp3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/umDp3.jpg" alt="When i set to layout_width=&quot;65&quot; the image hide behind the arrow"></a></p>

<p>When i set to Spinner layout_width="wrap_content", the Space appears between circle imageview and arrow of the spinner. </p>

<p><a href="https://i.stack.imgur.com/umqZf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/umqZf.jpg" alt="When i set to Spinner layout_width=&quot;wrap_content&quot;, the Space appears between circle imageview and arrow of the spinner. "></a></p>

<p>and below is the Spinner Item, which is an Imageview,</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"
      android:id="@+id/lnrChildChange"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="#2570F9"&gt;


   &lt;de.hdodenhof.circleimageview.CircleImageView
       android:id="@+id/imgChildChange"
       android:layout_width="@dimen/profile_img"
       android:layout_height="@dimen/profile_img"
       android:layout_margin="@dimen/most_most_min_margin"
       style="?android:attr/spinnerItemStyle"
       android:src="@drawable/place_user"
       app:civ_border_color="#ffffff"
       app:civ_border_width="1dp" /&gt;


 &lt;/LinearLayout&gt;
</code></pre>

<p>I have tested with MI Max,Samsung j5 and Oppo f1s. Oppo f1s no problem. where as rest of the devices facing the problem. </p>