[android-developers] Where is the View.setStyle() method?

2010-09-03 Thread Mark Wyszomierski
Hi,

Is there a way to set a style for a View at runtime? I've seen this
question a few times on the board here but no answers, so probably
not:

  ImageView
android:id=@+id/blah
style=@style/mystyle
/

  // later...

  ImageView iv = (ImageView)findViewById(...);
  iv.setStyle(R.style.myotherstyle);

is it not possible to do something like this? We have to manually
change everything in code instead?

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


Re: [android-developers] Where is the View.setStyle() method?

2010-09-03 Thread Mark Murphy
On Fri, Sep 3, 2010 at 5:42 PM, Mark Wyszomierski mar...@gmail.com wrote:
 Is there a way to set a style for a View at runtime?

Not that I am aware of, sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
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