Two fixes, the Compat and legacy toolbars
This commit is contained in:
parent
e952f62516
commit
27531cfb98
1 changed files with 10 additions and 9 deletions
|
|
@ -58,6 +58,15 @@ namespace BookAStar.Droid
|
||||||
|
|
||||||
base.OnCreate(bundle);
|
base.OnCreate(bundle);
|
||||||
|
|
||||||
|
global::Xamarin.Forms.Forms.SetTitleBarVisibility(Xamarin.Forms.AndroidTitleBarVisibility.Never);
|
||||||
|
|
||||||
|
//var tb = FindViewById<Android.Support.V7.Widget.Toolbar>(ToolbarResource);
|
||||||
|
// FIXME tb is null
|
||||||
|
var stb = new Android.Support.V7.Widget.Toolbar(this);
|
||||||
|
SetSupportActionBar(stb);
|
||||||
|
var tb = new Toolbar(this);
|
||||||
|
SetActionBar(tb);
|
||||||
|
|
||||||
if (Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat)
|
if (Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat)
|
||||||
{
|
{
|
||||||
Android.Webkit.WebView.SetWebContentsDebuggingEnabled(true);
|
Android.Webkit.WebView.SetWebContentsDebuggingEnabled(true);
|
||||||
|
|
@ -87,14 +96,6 @@ namespace BookAStar.Droid
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Theme.Resources.FinishPreloading();
|
|
||||||
// Theme.ApplyStyle(Resource.Style.MainTheme, false);
|
|
||||||
|
|
||||||
// XmlREader tb = Resources.GetLayout(Resource.Layout.Toolbar);
|
|
||||||
// FIXME Why does Forms try to theme this toolbar?
|
|
||||||
var tb = new Toolbar(this);
|
|
||||||
this.SetActionBar(tb);
|
|
||||||
// this.SetTheme(Resource.Style.MainTheme);
|
|
||||||
LoadApplication(new BookAStar.App(this));
|
LoadApplication(new BookAStar.App(this));
|
||||||
// TabLayoutResource = Resource.Layout.Tabbar;
|
// TabLayoutResource = Resource.Layout.Tabbar;
|
||||||
// ToolbarResource = Resource.Layout.Toolbar;
|
// ToolbarResource = Resource.Layout.Toolbar;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue