static public ViewProfileFragment ViewProfile(string userId) { var result = new ViewProfileFragment(); result.Arguments = new Bundle(); result.Arguments.PutString(EXTRA_CONTACT_ID, userId); return(result); }
public override bool OnOptionsItemSelected(IMenuItem item) { if (item.ItemId == Resource.Id.chat_profile) { SupportFragmentManager.BeginTransaction() .Replace(Resource.Id.content_frame, ViewProfileFragment.ViewProfile(_conversation.ContactUserId)) .AddToBackStack(null) .Commit(); return(true); } else if (item.ItemId == Resource.Id.chat_key_status) { //++ChadderUI.KeyStatusWarning(_conversation.Contact); return(true); } return(base.OnOptionsItemSelected(item)); }