修改AndroidManifest.xml檔案中的android:theme即可(點一個NoActionBar),
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"
對比一下,在使用如下代碼的情況下,會出現紅框標出的標題欄,
android:theme="@style/Theme.AppCompat.DayNight"

改成如下代碼之后,標題欄就會消失,并且背景也不會變黑,
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"

轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/292379.html
標籤:其他
下一篇:電賽推遲了,回家嗎?
