有人可以解释一下为什么这个陈述非常有效:
setStyle(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Holo);
并且下一个语句没有传递
setStyle(DialogFragment.STYLE_NO_TITLE, R.style.dialog);
这就是我在风格部门所拥有的:
<style
name="dialog">
<!-- title encapsulating main part (backgroud) of custom alertdialog -->
<item
name="android:windowFrame">@null</item>
<!-- turn off any drawable used to draw a frame on the window -->
<item
name="android:windowBackground">@null</item>
<!-- turn off any drawable used to draw a frame on the window -->
<item
name="android:windowIsFloating">true</item>
<!-- float the window so it does not fill the screen -->
<item
name="android:windowNoTitle">true</item>
<!-- remove the title bar we make our own-->
<item
name="android:windowContentOverlay">@null</item>
<!-- remove the shadow from under the title bar -->
</style>