The style can be passed to a view's constructor.

On Feb 1, 2009 5:28 PM, "skink" <psk...@gmail.com> wrote:


hi,

i created my style in styles.xml, lets say MyStyle.

i can use it in any layout file by style="@style/MyStyle".

also my generated R class have R.style.MyStyle, my question is if i
can use it at runtime to "setStyle" - unfortunately View doesn't have
such a method. if not what is R.style.MyStyle used for? (i already
know that custom themes IDs are also in R.style and can be used to
setTheme, but MyStyle is not a theme)

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