Hi, I create my own widget with its own drawable for background.
So in my styles.xml file, I have this: <resources> <style name="MyWidget"> <item name="android:background">@drawable/btn_mywidget_bg</item> </style> </resources> In my main.xml, if i specified my 'style' attribute, my background drawable was displayed correctly. <test.MyWidget android:id="@+id/mywidget" style="@style/MyWidget" /> but if I just do this: <test.MyWidget android:id="@+id/mywidget" /> , the background drawable is not display correctly. Can you please tell me how can I specify the default style of my widget so that I don't need to add style="@style/MyWidget" everytime I use my widget? Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---