Ejemplo n.º 1
0
        public VideoPlayerRenderer(Context context) : base(context)
        {
            Android.Views.Window window = MainActivity.Current.Window;
            var attributes = window.Attributes;

            attributes.DimAmount = 0f;
            window.Attributes    = attributes;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Called when the app is launched
        /// </summary>
        /// <param name="bundle"></param>
        protected async override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            CrossCurrentActivity.Current.Init(this, bundle);
            CrossCurrentActivity.Current.Activity = this;
            await CrossPermissions.Current.RequestPermissionsAsync(Plugin.Permissions.Abstractions.Permission.Storage);

            fileDirectory = this.GetExternalFilesDir(null).ToString();

            FacebookClientManager.Initialize(this);

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

            this.LoadApplication(new App());
            this.currentWindow = this.Window;
            this.Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize);
        }