Android spinner dropdown menu background color change Android spinner dropdown menu background color change android android

Android spinner dropdown menu background color change


Yep, it's possible. Use android:popupBackground on the Spinner in your XML or setPopupBackgroundResource(int) in code.


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:

enter image description hereenter image description here