के लिए विषय स्थापित करने के लिए कैसे कृपया कोई व्याख्या कर सकते हैं क्यों इस बयान पूरी तरह से अच्छी तरह से काम करता है:DialogFragment
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>
क्या 's मुद्दा टुकड़ा की onCreate में कोड का उपयोग करने की कोशिश करना देर से? – Blackbelt