I recently studied setting the color of the separator between elements in the Spinner drop-down list, and I found a way to do this for all players right away through the application theme. For example:
<style name="custom_divider">
<item name="android:divider">#FFFFFF</item>
<item name="android:dividerHeight">5dp</item>
</style>
<style name="holo_light_dark_action_bar_custom_dropdown" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:dropDownListViewStyle">@style/custom_divider</item>
</style>
What I want to do is the separator style for one specific counter (in this case, the counter in the action bar), and not for all spinners. I have not seen any solutions for this, so I hope that it will be something obvious and that I just missed it. :)
source
share