i think your theme should derive from the default style, because if you only specify a style for your buttons, the rest of the app won't have a look. I think that's why Android ignores your style.silverburgh.meryl wrote:I have added this in the manifest file:
<application android:label="@string/app_name" android:theme="@style/MyTheme">
But I want this to work (without putting 'style' attribute everytime I use my custom widget:
<com.mycompany.MyWidget android:id="@+id/my_widget" />
And I would like to know how to specified that in my theme.
I really appreciate if you can help me resolve this problem.
silverburgh.meryl wrote:Thank you very much for your help.
I already have in my attrs.xml:
<attr name="textX" format="integer" min="0"/>
Is that sufficient? What else do I need to add?
Users browsing this forum: Google Feedfetcher and 5 guests