Пример #1
0
        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);
            }
        }