Yes it is possible. See this example here. http://tech-droid.blogspot.com/2010/03/custom-buttons-on-android.html
Thanks and Regards, Kumar Bibek On Mar 29, 1:51 pm, LambergaR <[email protected]> wrote: > I know you can change buttons background by creating a simple XML > file, like this: > > <?xml version="1.0" encoding="utf-8"?> > <selector xmlns:android="http://schemas.android.com/apk/res/android" > > <item > android:state_window_focused="false" > android:state_enabled="true" > android:drawable="@drawable/button_normal" > /> > <!-- ... --> > </selection> > > I was wondering if it is possible to use a similar approach to change > the style attribute of an element using the same (or similar) > technique. > > Or, if that is not possible, how can the style attribute be changed > during runtime (there is no such thing as > button.setStyle(R.style.button)). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

