Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin Forms hiding Title bar border

$
0
0

How can I hide the border from the title bar in Xamarin Android? I am using Xamarin Forms & Following code is used in MainActivity.cs to hide the rest of the title bar. `[Activity(Label = "", MainLauncher = true, ScreenOrientation = ScreenOrientation.Portrait)] protected override void OnCreate(Bundle bundle) {

    this.RequestWindowFeature(WindowFeatures.ActionBarOverlay);

    base.OnCreate(bundle);



    //Transperent Action Bar 
    ActionBar.SetIcon(Android.Resource.Color.Transparent);
    ActionBar.SetBackgroundDrawable(new ColorDrawable(Color.ParseColor("#000000ff")));
    ActionBar.SetStackedBackgroundDrawable(new ColorDrawable(Color.ParseColor("#000000ff"))); 

    Xamarin.Forms.Forms.Init(this, bundle);

    SetPage(App.GetMainPage());
}`

Thanks for your help in advance


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>