Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an AppCompat equivalent of Widget.Material.Spinner.Underlined?

Is it possible to get the equivalent style of Widget.Material.Spinner.Underlined using the AppCompat libraries for pre v21 devices?

I want to support v16+ in my app, but would really like to get the underline effect on Spinners using the AppCompat libraries if possible.

like image 703
activelogic Avatar asked Jan 18 '15 07:01

activelogic


1 Answers

UPDATE (March 11, 2015): AppCompat revision 22 introduced a Spinner style that includes the underline: "Base.Widget.AppCompat.Spinner.Underlined" (http://developer.android.com/tools/support-library/index.html#revisions)

OLD ANSWER: AppCompat does not have an equivalent, you'll have to figure add the underline yourself.

There is an issue about this, which was marked as being fixed in a "Future release." There have been several AppCompat releases since then, but still no sign of an Underline style.

https://code.google.com/p/android/issues/detail?id=77819

like image 149
Brian Avatar answered Sep 20 '22 10:09

Brian