2

There are many questions and answers explaining how to set the background color of a selected ListView item by using an adapter and selector.

When an list view item is selected I want to define what background color it will have for the time being selected and I want to have different colors for different items.

Using an OnItemSelectedListener did not work, probably doing it at that stage is too late.

Anonymous
  • 11,748
  • 6
  • 35
  • 57
Mahoni
  • 7,088
  • 17
  • 58
  • 115

0 Answers0