1.在java代碼中
(SplashActivity繼承AppCompatActivity時無效)

2.在manifest.xml中改Theme

3.先在style.xml中自定義style
<?xml version="1.0" encoding="UTF-8" ?> <resources> <style name="notitle"> <item name="android:windowNoTitle">true</item> </style> </resources>
再在manifest.xml中引用
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/notitle">
以上所述是小編給大家介紹的Android中去掉標題欄的幾種方法(三種),希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對武林網網站的支持!
新聞熱點
疑難解答