Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Why I hate mixing implicit/explicit styles
<style name="Widget" />

<style name="Widget.Button" />

<style name="Widget.Button.Alternative" parent="@android:style/SomeOtherStyle />

All buttons either use Widget.Button or Widget.Button.Alternative.

I decide to change something in Widget.Button.

Expected: All buttons change.

Actual: Only Widget.Button changes because Widget.Button.Alternative doesn't have anything to do with Widget or Widget.Button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.