3

My android project minimum API 10. Support v4 included. In the android doc i found selector state "activated" enter image description here

But when i try use it, IDE mark it as missed.

enter image description here

Here https://stackoverflow.com/... and here https://stackoverflow.com/questions/92.. this state looks like a solution to my problem, but i can not use it.

Community
  • 1
  • 1
George
  • 643
  • 9
  • 23

2 Answers2

1

It looks like it may be a bug in the docs. It shows it from the screen you are showing but if you go to the R.attr class and look at the corresponding variable then it is greyed out with API 10 selected and to the left it shows requires API 11

enter image description here

Sorry, my graphic arts skills aren't great but zoom in and you will see.

Here is a solution that may or may not work for what you need. I didn't read through the whole example but you can give it a look.

And Here is a SO answer dealing with the same issue.

Community
  • 1
  • 1
codeMagic
  • 44,549
  • 13
  • 77
  • 93
0

Try updating your build target in eclipse. Right click the project and click Properties. Then select Android from the tree on the left. You can then select the target version on the right.

Adam Johns
  • 35,397
  • 25
  • 123
  • 176