spinner android add underline like edittext

Solutions on MaxInterview for spinner android add underline like edittext by the best coders in the world

showing results for - "spinner android add underline like edittext"
Ariana
16 Sep 2018
1<?xml version="1.0" encoding="utf-8"?>
2<inset xmlns:android="http://schemas.android.com/apk/res/android"
3    android:insetBottom="8dp"
4    android:insetLeft="4dp"
5    android:insetRight="4dp"
6    android:insetTop="4dp">
7    <selector>
8        <item
9            android:state_checked="false"
10            android:state_pressed="false">
11            <layer-list>
12                <item
13                    android:left="-8dp"
14                    android:right="-8dp"
15                    android:top="-8dp">
16                    <shape android:shape="rectangle">
17                        <stroke
18                            android:width="1dp"
19                            android:color="@color/colorAccent" />
20                        <padding android:bottom="4dp" />
21                    </shape>
22                </item>
23            </layer-list>
24        </item>
25        <item>
26            <layer-list>
27                <item
28                    android:left="-8dp"
29                    android:right="-8dp"
30                    android:top="-8dp">
31                    <shape android:shape="rectangle">
32                        <stroke
33                            android:width="2dp"
34                            android:color="@color/colorAccent" />
35                        <padding android:bottom="4dp" />
36                    </shape>
37                </item>
38            </layer-list>
39        </item>
40    </selector>
41</inset>
42
similar questions