Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android spinner with underline appcompat

I am using a appcompat theme for my application. Need to know how i can show underline to spinner. It is just showing anchor. I tried setting up underline using android:background but it makes the anchor disappear.

like image 209
Pritam Kadam Avatar asked Mar 22 '15 04:03

Pritam Kadam


1 Answers

Update your support library and in XML use

Please add this style to your Spinner

    style="@style/Base.Widget.AppCompat.Spinner.Underlined" 
like image 89
Pritam Kadam Avatar answered Sep 29 '22 05:09

Pritam Kadam