コード例 #1
0
        /// <summary>
        /// 群组详细信息
        /// </summary>
        /// <param name="groupID"></param>
        /// <returns></returns>
        public ActionResult ShowGroupDetail(long groupID)
        {
            UIGroupInfo groupInfo = null;

            if (groupID == 0)
            {
                return(View(groupInfo));
            }
            var bizGroupInfo = BizGroupInfo.LoadByGroupID(groupID);

            if (bizGroupInfo == null)
            {
                return(View(groupInfo));
            }
            var createUser = BizUserInfo.LoadByUserInfoID(bizGroupInfo.CreateUesrID);

            groupInfo = new UIGroupInfo()
            {
                GroupName      = bizGroupInfo.GroupName,
                GroupInfoID    = bizGroupInfo.GroupInfoID,
                GroupIntro     = bizGroupInfo.GroupIntro,
                CreateTime     = bizGroupInfo.CreateTime,
                CreateUesrInfo = new UIUserInfo()
                {
                    UserEmail       = createUser.UserEmail,
                    UserName        = createUser.UserName,
                    UserImagURL     = createUser.UserImagURL,
                    UserInfoComment = createUser.UserInfoComment,
                },
                CreateUesrID = bizGroupInfo.CreateUesrID,
            };
            return(View(groupInfo));
        }
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            View.BackgroundColor = Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.BackgroundColor);

            ScrollView = new UIScrollViewWrapper();
            ScrollView.Layer.AnchorPoint = CGPoint.Empty;
            ScrollView.Parent            = this;
            ScrollView.Bounds            = View.Bounds;
            View.AddSubview(ScrollView);

            GroupInfoView = new UIGroupInfo();
            GroupInfoView.Create(ScrollView, View.Frame.ToRectF( ), OnJoinClicked);
        }
コード例 #3
0
ファイル: GroupInfoFragment.cs プロジェクト: J3057/MobileApp
                public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
                {
                    if (container == null)
                    {
                        // Currently in a layout without a container, so no reason to create our view.
                        return(null);
                    }

                    GroupInfoView = new UIGroupInfo();

                    View view = inflater.Inflate(Resource.Layout.GroupInfo, container, false);

                    view.SetOnTouchListener(this);

                    view.SetBackgroundColor(Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.BG_Layer_Color));

                    ScrollView       = view.FindViewById <ScrollView>(Resource.Id.scroll_view);
                    ScrollViewLayout = ScrollView.FindViewById <RelativeLayout>(Resource.Id.view_background);
                    ScrollViewLayout.SetBackgroundColor(Rock.Mobile.UI.Util.GetUIColor(ControlStylingConfig.BackgroundColor));

                    GroupInfoView.Create(ScrollViewLayout, new System.Drawing.RectangleF(0, 0, NavbarFragment.GetCurrentContainerDisplayWidth( ), this.Resources.DisplayMetrics.HeightPixels), OnJoinClicked);

                    return(view);
                }