1

I have seen questions about this previously but none seem to work for me. I want to change the color of the material drop down, as seen here

I want to make the arrow black. I have tried making a custom drawable and using that with dropDownSelector but it didn't show the arrow correctly. I have tried adding it as a style and it didn't work either. Any ideas would be great. Thanks

Aditya Vyas-Lakhan
  • 13,409
  • 16
  • 61
  • 96
Ayohaych
  • 5,099
  • 7
  • 29
  • 51
  • 1
    I shall be interested to see what other answers you get, this may be possible with themeing. However in my experience you get a more customizable and better result if you abandon spinner and create your own image with states and a custom dialogFragment and a listview. – James Oct 13 '15 at 09:40
  • 1
    set background image on spinner whatever you like arrow color – Mohit Suthar Oct 13 '15 at 09:42
  • @MohitSuthar doing that just gives you a stretched version of the icon that goes across the whole view. Doesn't work – Ayohaych Oct 13 '15 at 09:49
  • 1
    Have you try this http://stackoverflow.com/questions/25911287/change-colour-of-small-triangle-on-spinner-in-android – Mohit Suthar Oct 13 '15 at 09:53
  • 1
    try also this http://stackoverflow.com/questions/30135258/changing-spinner-arrow-appcompat-v21 – Mohit Suthar Oct 13 '15 at 09:56
  • @MohitSuthar the problem was my image wasn't saved as a 9patch and edited as one, once I did that setting the background worked. If you want to make an answer I'll set yours as the correct one :) – Ayohaych Oct 13 '15 at 10:03

1 Answers1

0

I have encountered the same problem as well. But i had some focus problems, because Spinner was inside ScrollView. I have solved the issue by implementing ListPopupWindow.

Here is great example how to implement ListPopupWindow :

Aditya Vyas-Lakhan
  • 13,409
  • 16
  • 61
  • 96
Michał Hawryszko
  • 1,376
  • 1
  • 9
  • 9