Created
September 17, 2014 13:23
-
-
Save anonymous/2f10cb1687506ba5311b to your computer and use it in GitHub Desktop.
<style name="AppTheme" parent="@style/Theme.Leanback"> </style> <!-- in Theme.Leanback --> <style name="Widget.Leanback.ImageCardViewStyle" parent="Widget.Leanback.BaseCardViewStyle"> <item name="cardType">infoUnder</item> <item name="infoVisibility">activated</item> <!-- i want to override this --> <item name="android:background">@color/lb_bas…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style name="AppTheme" parent="@style/Theme.Leanback"> | |
</style> | |
<!-- in Theme.Leanback --> | |
<style name="Widget.Leanback.ImageCardViewStyle" parent="Widget.Leanback.BaseCardViewStyle"> | |
<item name="cardType">infoUnder</item> | |
<item name="infoVisibility">activated</item> | |
<!-- i want to override this --> | |
<item name="android:background">@color/lb_basic_card_bg_color</item> | |
</style> |
<style name="Widget.Leanback.BaseCardViewStyle" />
try this instead:
<style name="Widget.Leanback.BaseCardViewStyle.ImageCardViewStyle">
<item name="cardType">infoUnder</item>
<item name="infoVisibility">activated</item>
<!-- i want to override this -->
<item name="android:background">@color/lb_basic_card_bg_color</item>
</style>
from the manifest i target theme
<android:theme="@style/AppTheme" >
<style name="AppTheme" parent="Theme.Leanback">
<item name="@style/Widget.Leanback.ImageCardViewStyle">@style/my</item>
</style>
<style name="my">
<item name="cardType">infoUnder</item>
<item name="infoVisibility">selected</item>
<!-- i want to override this -->
<item name="android:background">@color/orange</item>
</style>
i have tried this, doesnt work! :(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is the style for "Widget.Leanback.BaseCardViewStyle"