1.僅去掉標題欄
在style.xml文件裏面將Theme改爲 parent="Theme.AppCompat.Light.NoActionBar"
2.去掉標題欄和狀態欄
把androidmanifest.xml裏android:theme改成 android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
1.僅去掉標題欄
在style.xml文件裏面將Theme改爲 parent="Theme.AppCompat.Light.NoActionBar"
2.去掉標題欄和狀態欄
把androidmanifest.xml裏android:theme改成 android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"