Changing Spinner Background Generates Dark Colored Border
Using a simple spinner. When I scroll the spinner the shadow around spinner dropdown starts growing darker in color. I managed to fix the issue but I will appreciate if someone co
Solution 1:
fixed: for Api below 21
style="@style/Widget.AppCompat.Spinner.DropDown"
if working on api 21 and above
android:popupTheme="@style/Widget.AppCompat.Spinner.DropDown"
Solution 2:
As of July 2016, the shadowing issue is still present when android:popupBackground
is used to specify a color (eg: White)
Google has provided a fix for this for Android 6.0 and above via android:popupTheme
but that is not applicable for < 6.0
Detailed explanation : How do I set a different theme for a Spinner's dropdown?
Working Solution (Android < 6.0) - Creating a shape and using it as background : Spinner graphical bug API 21
Post a Comment for "Changing Spinner Background Generates Dark Colored Border"