Catcher.AndroidDemo.LoadingAnimationDemo.Extensions.CustomProgressDialog.CreateDialog C# (CSharp) Метод

CreateDialog() публичный статический Метод

create the dialog
public static CreateDialog ( Android.Content.Context context ) : CustomProgressDialog
context Android.Content.Context the context
Результат CustomProgressDialog
        public static CustomProgressDialog CreateDialog(Context context)
        {
            customProgressDialog = new CustomProgressDialog(context, Resource.Style.CustomProgressDialog);
            //set the view
            customProgressDialog.SetContentView(Resource.Layout.loading);
            //set the gravity
            customProgressDialog.Window.Attributes.Gravity = GravityFlags.Center;

            return customProgressDialog;
        }