Android checkbox state_enabled

北城以北 提交于 2019-12-21 07:05:53

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/4603031/android-checkbox-state-enabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!