I'm trying to make a custom theme dialog, which extends android:Theme.Dialog :
Using xml Syntax Highlighting
- <style name="RunesDialog" parent="@android:style/Theme.Dialog">
- <item name="android:windowBackground">@drawable/cadre_dialogue
- </item>
- <item name="android:buttonStyle">@style/button</item>
- <item name="android:textViewStyle">@style/textview</item>
- <item name="android:editTextStyle">@style/edittext</item>
- </style>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
So I can use it in the manifest :
Using xml Syntax Highlighting
- <activity android:name=".act.MyActivity" android:theme="@style/RunesDialog" />
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
If I directly use the android:Theme.Dialog theme, the background is transparent, but if I use RunesDialog, the background is always black. Can you help me with that ?
Thanks a lot
Just for information, here is the Theme.Dialog description from Android source code :
Using xml Syntax Highlighting
- <style name="Theme.Dialog">
- <item name="android:windowFrame">@null</item>
- <item name="android:windowTitleStyle">@android:style/DialogWindowTitle</item>
- <item name="android:windowBackground">@android:drawable/panel_background</item>
- <item name="android:windowIsFloating">true</item>
- <item name="android:windowContentOverlay">@null</item>
- <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
- <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
- </style>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4



