陈嘉乐
2020-12-03 0f2e0147e8990e913d16d99bc1b94fb6bc53abd7
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs
@@ -5,6 +5,12 @@
namespace HDL_ON.UI
{
    /*
     时间:20200915
     删除分享操作,分享操作只在成员管理界面实现
     */
    public partial class RoomEditPage : FrameLayout
    {
        #region 控件列表
@@ -60,22 +66,22 @@
        /// 房间楼层修改跳转按钮
        /// </summary>
        Button btnFloorRight;
        /// <summary>
        /// 分享row
        /// </summary>
        FrameLayout sharedView;
        /// <summary>
        /// 分享标题
        /// </summary>
        Button btnSharedTitle;
        /// <summary>
        /// 分享的信息
        /// </summary>
        Button btnSharedInfo;
        /// <summary>
        /// 分享信息跳转按钮
        /// </summary>
        Button btnSharedRight;
        ///// <summary>
        ///// 分享row
        ///// </summary>
        //FrameLayout sharedView;
        ///// <summary>
        ///// 分享标题
        ///// </summary>
        //Button btnSharedTitle;
        ///// <summary>
        ///// 分享的信息
        ///// </summary>
        //Button btnSharedInfo;
        ///// <summary>
        ///// 分享信息跳转按钮
        ///// </summary>
        //Button btnSharedRight;
        /// <summary>
        /// 功能管理区域
        /// </summary>
@@ -152,7 +158,7 @@
            roomBgView = new FrameLayout()
            {
                Y = Application.GetRealHeight(64),
                Height = Application.GetRealHeight(224),
                Height = Application.GetRealWidth(232),
                BackgroundColor = CSS_Color.MainBackgroundColor,
            };
            bodyView.AddChidren(roomBgView);
@@ -162,7 +168,7 @@
                Gravity = Gravity.CenterHorizontal,
                Y = Application.GetRealWidth(20),
                Width = Application.GetRealWidth(343),
                Height = Application.GetRealHeight(184),
                Height = Application.GetRealWidth(192),//2020-12-01 房间图片比例改回16:9
                //UnSelectedImagePath = room.backgroundImage,
                ImagePath = room.backgroundImage,
                Radius = (uint)Application.GetRealWidth(12),
@@ -273,44 +279,45 @@
            roomInfoView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
            #endregion
            #region 分享
            if (pageTitleId != StringId.AddRoom)
            {
                sharedView = new FrameLayout()
                {
                    Height = Application.GetRealHeight(50),
                };
                roomInfoView.AddChidren(sharedView);
                rowCount++;
                btnSharedTitle = new Button()
                {
                    X = Application.GetRealWidth(16),
                    Width = Application.GetRealWidth(120),
                    TextAlignment = TextAlignment.CenterLeft,
                    TextColor = CSS_Color.FirstLevelTitleColor,
                    TextSize = CSS_FontSize.SubheadingFontSize,
                    TextID = StringId.Shared,
                };
                sharedView.AddChidren(btnSharedTitle);
                btnSharedInfo = new Button()
                {
                    X = Application.GetRealWidth(100),
                    Width = Application.GetRealWidth(230),
                    TextAlignment = TextAlignment.CenterRight,
                    TextColor = CSS_Color.PromptingColor1,
                    TextSize = CSS_FontSize.TextFontSize,
                };
                sharedView.AddChidren(btnSharedInfo);
                btnSharedRight = new Button()
                {
                    X = Application.GetRealWidth(339),
                    Gravity = Gravity.CenterVertical,
                    Width = Application.GetMinRealAverage(16),
                    Height = Application.GetMinRealAverage(16),
                    UnSelectedImagePath = "Public/Right.png",
                };
                sharedView.AddChidren(btnSharedRight);
                roomInfoView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
            }
            //if (pageTitleId != StringId.AddRoom)
            //{
            //    sharedView = new FrameLayout()
            //    {
            //        Height = Application.GetRealHeight(50),
            //    };
            //    roomInfoView.AddChidren(sharedView);
            //    rowCount++;
            //    btnSharedTitle = new Button()
            //    {
            //        X = Application.GetRealWidth(16),
            //        Width = Application.GetRealWidth(120),
            //        TextAlignment = TextAlignment.CenterLeft,
            //        TextColor = CSS_Color.FirstLevelTitleColor,
            //        TextSize = CSS_FontSize.SubheadingFontSize,
            //        TextID = StringId.Shared,
            //    };
            //    sharedView.AddChidren(btnSharedTitle);
            //    btnSharedInfo = new Button()
            //    {
            //        X = Application.GetRealWidth(100),
            //        Width = Application.GetRealWidth(230),
            //        TextAlignment = TextAlignment.CenterRight,
            //        TextColor = CSS_Color.PromptingColor1,
            //        TextSize = CSS_FontSize.TextFontSize,
            //    };
            //    sharedView.AddChidren(btnSharedInfo);
            //    btnSharedRight = new Button()
            //    {
            //        X = Application.GetRealWidth(339),
            //        Gravity = Gravity.CenterVertical,
            //        Width = Application.GetMinRealAverage(16),
            //        Height = Application.GetMinRealAverage(16),
            //        UnSelectedImagePath = "Public/Right.png",
            //    };
            //    sharedView.AddChidren(btnSharedRight);
            //    roomInfoView.AddChidren(new Button() { X = Application.GetRealWidth(16), Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
            //}
            #endregion
            #region 功能管理
            functionManagemantView = new FrameLayout()