我遇到了透明樣式從父類型(AppTheme)繼承按鈕樣式的問題。該按鈕在TransparentActivity主題中具有不同的樣式。爲什麼沒有主題繼承按鈕樣式
這裏是我的風格,爲簡單起見刪除了一些項目。
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated with http://android-holo-colors.com -->
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<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>
'<項目名稱= 「機器人:按鈕樣式」> @風格/ ButtonAppTheme'哪來是名爲** ButtonAppTheme **的樣式? – 2014-10-02 18:50:38