Android的复选框state_enabled [英] Android checkbox state_enabled

查看:385
本文介绍了Android的复选框state_enabled的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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?

感谢。

推荐答案

这<一href="http://groups.google.com/group/android-developers/browse_thread/thread/967de0cb1388811">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.

这篇关于Android的复选框state_enabled的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆