没有背景图像和标题栏的android风格
我正在将此样式添加到我的应用程序:没有背景图像和标题栏的android风格,android,android-theme,Android,Android Theme,我正在将此样式添加到我的应用程序: <style name="Theme.NoBackground.noTitleBar" parent="android:Theme.Light.NoTitleBar"> <item name="android:windowBackground">@null</item> </style> @空的 因为我需要隐藏标题栏,同时需要去掉背景,因为我有一个背景图像,不需要在它下面放置任何其他
<style name="Theme.NoBackground.noTitleBar" parent="android:Theme.Light.NoTitleBar">
<item name="android:windowBackground">@null</item>
</style>
@空的
因为我需要隐藏标题栏,同时需要去掉背景,因为我有一个背景图像,不需要在它下面放置任何其他东西
因为我看不清背景是否消失了,这行得通吗…当然行,你加上这个
@null
,对吧?是的,我写的是代码中写的;但是我怎么知道背景图像消失了呢?如果你不添加另一种背景色,那么屏幕上的像素将略微混乱(黑色背景),所以建议你添加背景色,而不仅仅是@null