如何去掉android頭部label的方法

一、在AcdroidMainfest.xml中

<application android:label="App1" android:theme="@android:style/Theme.NoTitleBar"></application>



方法二、

protected override void OnCreate(Bundle bundle)
{
            base.OnCreate(bundle);
            //隱藏標題欄(須放在SetContentView函數之前)  
            this.RequestWindowFeature(WindowFeatures.NoTitle);
            //設置全屏  
            this.Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen);
            SetContentView(Resource.Layout.Main);
}






發佈了39 篇原創文章 · 獲贊 8 · 訪問量 27萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章