My Custom Theme for AlertDialog not being shown for ICS

R.U.S.H

New Member
My problem is I have a custom theme for alert dialogs which works fine on 2 android tablets 2.2 and 2.3.3 when I use a ContextThemeWrapper. When I try on ICS (Galaxy nexus) the theme has no effect whatsoever, I have removed the theme reference in manifest to confirm it makes no difference.I have a theme (android:theme="@style/MyTheme") for my application which links to themes.xml\[code\]<?xml version="1.0" encoding="utf-8"?><resources><style name="MyTheme" parent="@android:style/Theme"> <item name="android:alertDialogStyle">@style/dialog</item></style><style name="customTheme" parent="android:Theme"> <item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item> </style> </resources>\[/code\]my dialog style is in styles.xml..\[code\]<?xml version="1.0" encoding="utf-8"?><resources><style name="WindowTitleBackground"> </style><style name="base"> <item name="android:padding">10dp</item></style><style name="title" parent="@style/base"> <item name="android:textColor">#FFFFFF</item> <item name="android:textSize">16sp</item> <item name="android:textStyle">bold</item></style><style name="body" parent="@style/base"> <item name="android:textColor">#000000</item> <item name="android:textStyle">normal</item></style><style name="dialog"> <item name="android:fullDark">@drawable/dialog_body</item> <item name="android:topDark">@drawable/dialog_title</item> <item name="android:centerDark">@drawable/dialog_body</item> <item name="android:bottomDark">@drawable/dialog_footer</item> <item name="android:fullBright">@drawable/dialog_body</item> <item name="android:centerBright">@drawable/dialog_body</item> <item name="android:bottomBright">@drawable/dialog_footer</item> <item name="android:bottomMedium">@drawable/dialog_footer</item> <item name="android:centerMedium">@drawable/dialog_body</item></style></resources>\[/code\]Anyone know why I cant have my custom theme in ICS?Thanks in advance.
 
Back
Top