Esempio n. 1
0
        public View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            string          messageId = Arguments.GetString(MESSAGE_ID_KEY);
            RichPushMessage message   = RichPushManager.Shared().RichPushUser.Inbox.GetMessage(messageId);

            if (message == null)
            {
                return(null);
            }


            View view = inflater.Inflate(Resource.Layout.message_dialog, container, true);

            RichPushMessageView messageView = (RichPushMessageView)view.FindViewById(Resource.Id.message_browser);

            messageView.LoadRichPushMessage(message);
            message.MarkRead();

            // Update the widget, this dialog can show a message on any activity
            RichPushWidgetUtils.RefreshWidget(this.Activity);


            Dialog.SetTitle(Resource.String.rich_push_message_dialog_title);

            return(view);
        }
 public View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 {
     browser = new RichPushMessageView(container.Context);
     browser.LayoutParameters = container.LayoutParameters;
     return(browser);
 }