Check the comments of the question, it's based on resources which don't have a white arrow, it's grey and it's not for the actionbar. So the best option is to use the generator
Change ActionBar spinner arrow color
-
30-06-2023 - |
Question
I styled my actionbar like so, which results in a normal spinner and not an action bar spinner (without the line on the bottom). But I do want it to be white and prefer to not user my own drawables for this and use the android's spinner style. (See below what the result is).
<style name="AppTheme" parent="@style/Theme.AppCompat.Light">
<item name="android:actionOverflowButtonStyle">@style/AppTheme.OverFlow</item>
<item name="android:actionDropDownStyle">@style/AppTheme.actionBarDropDown</item>
<item name="android:spinnerDropDownItemStyle">@style/DropDownList</item>
<item name="android:actionBarSize">48dp</item>
<item name="actionBarSize">48dp</item>
</style>
<style name="AppTheme.actionBarDropDown" parent="android:style/Widget.Holo.Spinner">
<!--<item name="android:background">@android:style/ab</item>-->
</style>
<style name="DropDownList" parent="@android:style/Widget.Holo.Light.ListView.DropDown">
<!-- background of the list menu -->
<item name="background">@android:color/background_light</item>
<item name="android:background">@android:color/background_light</item>
<item name="android:popupBackground">@android:color/background_light</item>
<!-- dividers -->
<item name="android:divider">@color/border_color</item>
<item name="android:dividerHeight">1dip</item>
<!-- item selected -->
<!--<item name="android:dropDownSelector">@android:color/holo_blue_dark</item>-->
<!--<item name="android:listSelector">@android:color/holo_blue_dark</item>-->
</style>
as you see the line breaks my design of the title. Does anyone know what I could change to use a normal actionbar spinner drawable? I can't seem to find this anywhere on stack.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow