コード例 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            try
            {
                var application = new App();
                LoadApplication(application);

                application.SwitchFloatingTools();
            }
            catch (Exception ex)
            {
            }

            //ActionBar.CustomView = LayoutInflater.Inflate(Resource.Layout.MyCard, null);
            //ActionBar.DisplayOptions = ActionBarDisplayOptions.ShowCustom;

            /*
            ActionBar.CustomView = Inflate(context, Resource.Layout.PersonControl, this);
            ActionBar.DisplayOptions = ActionBarDisplayOptions.ShowCustom;
            ActionBar.SetHomeButtonEnabled(true);
            */
            /*if ((int)Android.OS.Build.VERSION.SdkInt >= 21)
            {
                ActionBar.SetIcon(new ColorDrawable(Resources.GetColor(Android.Resource.Color.Transparent)));
            }*/
        }