Android style parent chaining unexpected result -


regarding this link, tried use style chain parenting behavior isn't expect. i've written styles below

<style name="headline">     <item name="android:textsize">@dimen/fontsize_headline</item> </style> <style name="white_text">     <item name="android:textcolor">@color/poinila_post_background</item> </style> <style name="west_side">     <item name="android:background">@color/west_side</item> </style> <style name="west_side.headline"></style> <style name="west_side.headline.white_text">  

what expect yellowish button white text , headline text size textcolor , textsize unchanged.

my question is: doing right thing , thing right? what's reason misbehavior?

multiple parents not allowed in styles.

what you've done here

<style name="west_side.headline.white_text"/>  

was creating new style called white_text parent west_side.headline .

to expected result have add textcolor attribute new style.

<style name="west_side.headline.white_text">     <item name="android:textcolor">@color/poinila_post_background</item> </style> 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -