Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android checkbox state_enabled

the xml element "enabled" for a checkbox is deprecated. Eclipse tells me to use state_enabled instead. I tried to add

android:state_enabled="false"

to my checkbox within my xml instead of

android:enabled="false"

But it doesn't show any effect. The latter one does the desired. I don't want to use a deprecated method. Am I doing something wrong?

Thanks.

like image 415
AndyAndroid Avatar asked Jan 05 '11 10:01

AndyAndroid


1 Answers

This thread discusses this. Romain Guy says it is not deprecated but perhaps some bug/issue in Eclipse or the ADT editor causes it to show up in the deprecated section.

like image 115
Walt Armour Avatar answered Oct 01 '22 05:10

Walt Armour