This seems like a bug in Eclipse, View.setEnabled() is certainly not
deprecated. There might be a deprecated android:enabled attribute in
one of the XML tags supported by Android which could throw off the
Eclipse editor.

On Sun, Dec 6, 2009 at 6:38 PM, Paul <idi...@gmail.com> wrote:
> I'm working with 2.0 and in my xml layout, I changed the Enabled
> property of a Button, only to see that that is Deprecated. Eclipse
> property manager tells me (when I mouse over the property) :
> "Deprecated use state_enabled instead."
>
> So sure I can set state_enabled in the xml layout, but how to do it
> programatically? Can it be done? I'd like the button to be disabled
> initially and then become enabled depending on user action. How can
> this be done without using the deprecated method????
>
> Frankly I'm completely at a loss as to how to set any and all xml
> attributes programatically. It seems some have matching properties in
> the Java objects and some do not. Some can be set by using
> LayoutParams and some cannot. Please help.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to