Example #1
0
            public static CustomViewFactory getInstance()
            {
                if (mInstance == null)
                {
                    mInstance = new CustomViewFactory();
                }

                return(mInstance);
            }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                LayoutInflater.Factory = CustomViewFactory.getInstance();

                base.OnCreate(savedInstanceState);


                initForm();
            }
            catch (Exception exc)
            {
                ToolMobile.setExceptionInner(exc);

                var err = ToolException.unwrap(exc);

                Close();


                Android.Widget.Toast.MakeText(this.ApplicationContext, err, Android.Widget.ToastLength.Long).Show();
            }
        }