Пример #1
0
        public static MessageDialogFragment NewInstanceCustomView(int customViewResId, int positiveResId, int negativeResId)
        {
            Bundle args = new Bundle();

            args.PutInt(ArgCustomViewResId, customViewResId);
            args.PutInt(ArgPositiveResId, positiveResId);
            args.PutInt(ArgNegativeResId, negativeResId);

            MessageDialogFragment pdf = new MessageDialogFragment {
                Arguments = args
            };

            return(pdf);
        }
Пример #2
0
        public static MessageDialogFragment NewInstance(string content, string positive, string negative)
        {
            Bundle args = new Bundle();

            args.PutString(ArgContent, content);
            args.PutString(ArgPositive, positive);
            args.PutString(ArgNegative, negative);

            MessageDialogFragment pdf = new MessageDialogFragment {
                Arguments = args
            };

            return(pdf);
        }