在Android中关于拆除活动标题栏 [英] Regarding removal of Activity Title bar in Android
本文介绍了在Android中关于拆除活动标题栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经把我的活动成为Android的主题:主题=@android:款式/ Theme.Dialog 但我也想删除的活动的标题栏。因此如何使用 机器人:主题=@安卓风格/ Theme.Black.NoTitleBar.Fullscreen 随着对话主题
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.
推荐答案
尝试创建一个扩展 Theme.Dialog
自定义样式:
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>
这篇关于在Android中关于拆除活动标题栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文