wxr
2023-11-06 6a8eb1ce9d8e34c50164a4e24e7098e681ee08b6
HDL_ON/UI/UI0-Public/TopViewDiv.cs
@@ -42,6 +42,8 @@
        /// </summary>
        Action backAction;
        public int maginY = 0;
        public TopViewDiv(FrameLayout frame, string str)
        {
            baseView = frame;
@@ -84,7 +86,7 @@
        {
            contentView = new FrameLayout()
            {
                Height = Application.GetRealHeight(64),
                Height = Application.GetRealHeight(64+ maginY),
                BackgroundColor = color,
            };
            baseView.AddChidren(contentView);
@@ -92,7 +94,7 @@
            Button btnBackIcon = new Button()
            {
                X = Application.GetRealWidth(10),
                Y = Application.GetRealHeight(29),
                Y = Application.GetRealHeight(29 + maginY),
                Width = Application.GetRealWidth(40),
                Height = Application.GetRealWidth(28),
                UnSelectedImagePath = "Public/BackIcon.png",
@@ -102,7 +104,7 @@
            btnTilte = new Button()
            {
                Gravity = Gravity.CenterHorizontal,
                Y = Application.GetRealHeight(30),
                Y = Application.GetRealHeight(30 + maginY),
                Width = Application.GetRealWidth(270),
                Height = Application.GetRealHeight(25),
                TextAlignment = TextAlignment.Center,
@@ -225,6 +227,8 @@
            };
        }
        /// <summary>
        /// 房间标题区域
        /// </summary>
@@ -261,17 +265,17 @@
        /// <param name="room"></param>
        /// <param name="skipAction"></param>
        /// <param name="text"></param>
        public void LoadTopView_SettingText(Action skipAction,string text)
        public void LoadTopView_SettingText(Action skipAction,string text,bool isDelColor = false)
        {
            LoadTopView();
            
            var btnSetting = new Button()
            {
                X = Application.GetRealWidth(337-100),
                X = Application.GetRealWidth(355-100),
                Y = Application.GetRealHeight(29),
                Width = Application.GetMinRealAverage(100),
                Height = Application.GetMinRealAverage(28),
                TextColor = CSS_Color.MainColor,
                TextColor = isDelColor ?CSS_Color.WarningColor: CSS_Color.MainColor,
                TextSize = CSS_FontSize.TextFontSize,
                TextAlignment = TextAlignment.CenterRight,
                Text = text,