I have customised the spinner
items background into black color.But border around spinner and the separartor between each spinner item is in white color.
I want to change separator color and border to dark gray color.
- How can i change these color?
- Is spinner uses list view or some other as parent to populate items in spinner?
- If so can i change the separator background of parent view?
Best Solution
First, you have to define view (horizontal line) which is the separator line of items of spinner and you can change that separator line color at runtime using spinner's setOnItemSelectedListener method like this:
For example, XML file:
MainActivity.java: