Why doesn't theme inherit button style



I am having a problems with my Transparent style inheriting the button style from the parent style (AppTheme). The button has a different style in the TransparentActivity theme.


Here are my styles, with a few items removed for simplicity.



<?xml version="1.0" encoding="utf-8"?>

<!-- Generated with http://ift.tt/1gOuGya -->
<resources xmlns:android="http://ift.tt/nIICcg">

<style name="AppTheme" parent="@style/_AppTheme"/>

<style name="_AppTheme" parent="android:Theme.Light">
...
<item name="android:buttonStyle">@style/ButtonAppTheme</item>
...
</style>

<style name="TransparentActivity" parent="AppTheme">
<item name="android:windowBackground">@color/Trans60</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:textColor">@android:color/white</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowFullscreen">false</item>
</style>

</resources>

No comments:

Post a Comment