Android spinner dropdown menu background color change
To change the background color of the drop-down list, add android:colorBackground
parameter to the theme in your styles.xml
Code:
<style name="AppTheme" parent="Theme.AppCompat.Light">
<item name="android:colorBackground">#ff0000</item>
</style>
Thus, the overall style is preserved: the effect when pressed, rounded corners, etc.
Screenshot:
Yep, it's possible. Use android:popupBackground
on the Spinner in your XML or setPopupBackgroundResource(int)
in code.