XML元素已启用的复选框pcated德$ P $。 Eclipse的告诉我使用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"
我的XML,而不是在我的复选框
to my checkbox within my xml instead of
android:enabled="false"
但是它不显示任何作用。后者不想要的。我不想使用去precated方法。难道我做错了什么?
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?
感谢。
这thread讨论这个问题。罗曼盖伊说,这是不是去precated但也许一些bug /在Eclipse或ADT编辑器的问题会导致它出现在德precated部分。
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.