Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android:state_activated not found

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.

like image 738
George Avatar asked Feb 18 '26 05:02

George


1 Answers

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.

like image 88
codeMagic Avatar answered Feb 19 '26 20:02

codeMagic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!