0
是位于价值/风格
我已经创建自定义对话框:对话主题不使用
<style name="AppTheme" parent="android:Theme.Light" />
<style name="MyDialogTheme" parent="android:Theme.Dialog">
<item name="android:windowBackground">@null</item>
<item name="android:windowNoTitle">true</item>
</style>
然后我想使用它:
final Dialog dialogC = new Dialog(context,R.style.MyDialogTheme);
dialogC.setContentView(R.layout.confirm);
我没有错误,但仍然使用默认主题。当我将它用于我希望作为对话出现的活动时,此主题非常完美。
工作,但我想去除背景也 – Dim