1

I have seen the previous answers to this kind of question but none of them worked for me so i'll go ahead and post it again. My log cat says:

" Binary XML file line #7: tag requires a 'drawable' attribute or child tag defining a drawable"

in line #7 my xml is: <item ... <solid android:drawable="@color/hex"/> ... </item>

and: <item android:selected="true" android:drawable="@color/white" />

We're All Mad Here
  • 1,544
  • 2
  • 17
  • 41

3 Answers3

1

use argb colors instead like:

<solid android:drawable="#006633"/>
Sheychan
  • 1,777
  • 10
  • 28
1

Use something like this

<solid android:color="#00CCCCCC" />
Sumighosh Charuvil
  • 446
  • 1
  • 4
  • 14
1

In the end after a lot of trying and searching the answer that fited me was here: Selector on background color of TextView

Community
  • 1
  • 1
We're All Mad Here
  • 1,544
  • 2
  • 17
  • 41