0

I'm new to Android Studio, I read some posts talking about that, but I didn't understand, can you help me?

I want to change the color of "the items in the list", I don't know if it's clear, I mean the color of the text that appears when you click on the spinner.

I saw in all the other question that you have to create a new layout (I tried but didn't manage to make it work), but when I created the new layout, how can I place the spinner in the right place of the activity layout?

If it isn't clear, please ask, thank you in advance

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Johnson
  • 297
  • 2
  • 5
  • 18
  • The "new layout" is simply the layout with a textview for your adapter that you will need to create. – codeMagic Dec 28 '16 at 22:43
  • @codeMagic but how can I do that? How can I reference my spinner in the other xml? – Johnson Dec 28 '16 at 22:44
  • It is used when you create the adapter for your spinner. Look at the examples in that link. You create an xml file that just has a textview and set the color there. Then you use that when creating your adapter – codeMagic Dec 28 '16 at 22:45
  • @codeMagic which link? – Johnson Dec 28 '16 at 22:46
  • The one that I closed this as. Check the top of the page ;) – codeMagic Dec 28 '16 at 22:49
  • 1
    Oh yes, sorry, thanks! @codeMagic – Johnson Dec 28 '16 at 22:49
  • @codeMagic I followed it, but it only changes the color of the selected items, and not the color of all the items, and the problem isn't solved in that question – Johnson Dec 28 '16 at 23:06
  • Your question is not clear. Do you not want to change the color of the selected item in the list? Do you want to change the color of all the items? Or the background of all of them in the spinner? Or the items themselves? – The_Martian Dec 28 '16 at 23:29
  • @codeMagic I found the solution, I'll post it nearly tomorrow – Johnson Dec 28 '16 at 23:32
  • You must not have looked closely. The answer *is* in that link – codeMagic Dec 29 '16 at 00:38

0 Answers0