How to create a spinner with rectangular box with triangle drop down arrow?
<p>I need to create a spinner with rectangular border with triangle drop down arrow. How to create such spinner? I tried but my actual output difers from expected output.
Here is expected output.</p>

<p><a href="https://i.stack.imgur.com/OHDKI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OHDKI.png" alt="enter image description here"></a></p>

<p>But my output looks like this.</p>

<p><a href="https://i.stack.imgur.com/0oWNa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0oWNa.png" alt="enter image description here"></a></p>

<p>How to create a spinner with drop down image with rectangular box?</p>

<p>Here is my code which I applied.</p>

<pre><code>       &lt;LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_marginTop="1dip"
        android:orientation="vertical" &gt;
        &lt;TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:text="Preferred contact method"&gt;
        &lt;/TextView&gt;
        &lt;Spinner
            android:id="@+id/account_spinner"
            android:layout_width="match_parent"
            android:layout_height="70dp"
            android:layout_marginTop="2dp"
            style="@style/Base.Widget.AppCompat.Spinner.Underlined"
            /&gt;
        &lt;TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:text="Telephone"&gt;
        &lt;/TextView&gt;

        &lt;EditText
            android:layout_width="match_parent"
            android:layout_height="30dp"
            android:inputType="phone"
            android:ems="10"
            android:background="@drawable/edittext_border"
            android:id="@+id/editText" /&gt;
</code></pre>

<p>EditText border.xml</p>

<pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" &gt;
&lt;solid android:color="#ffffff" /&gt;

&lt;stroke
    android:width="1dp"
    android:color="#000000" /&gt;
</code></pre>

<p></p>

<p>But how to apply for spinner with triangle arrow and outer rectangle border?</p>

<p>Thanks in advance. </p>