public override void OnCreate()
        {
            base.OnCreate();

            AndroidEnvironment.UnhandledExceptionRaiser += AppUnhandledExceptionRaiser;
            CrashExceptionHandler.Instance.Init(this);

            TypefaceProvider.RegisterDefaultIconSets();
        }
示例#2
0
        private void Initialize()
        {
            Typeface typeface = TypefaceProvider.GetTypeface(this.Context, this.fontPath);

            if (this.Typeface != null)
            {
                TypefaceStyle style = Typeface.Style;
                this.SetTypeface(typeface, style);
            }
            else
            {
                this.SetTypeface(typeface, TypefaceStyle.Normal);
            }
        }