i have already set the theme of my activity as android:theme = "@android:style/Theme.Dialog" but i also want to remove the title bar of the activity. so how to use android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" along with the dialog theme.
Try creating a custom style that extends Theme.Dialog
:
<resources>
<style name="DialogNoTitle" parent="android:Theme.Dialog">
<item name="android:windowNoTitle">true</item>
</style>
</resources>
I believe you can specify this in your activity's onCreate():
requestWindowFeature(Window.FEATURE_NO_TITLE);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With