如何去掉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万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章