当我隐藏操作栏时,屏幕的背景颜色变为黑色,为什么会发生这种情况?请帮我。我隐藏了我的清单文件中的操作栏。我有我的清单文件代码。
<activity
android:name=".UserEventsCreation"
android:label="@string/title_activity_user_events_creation"
android:theme="@style/Theme.AppCompat.NoActionBar">
</activity>
答案 0 :(得分:0)
@style/Theme.AppCompat.NoActionBar
引用了一个黑暗的主题
对于灯光主题,请使用@style/Theme.AppCompat.Light.NoActionBar
。