HDL Home App 第二版本 旧平台金堂用 正在使用
hxb
2022-08-30 25429f085093d89d543a0b90e30d0d62d1b7dac9
ZigbeeApp/Shared/Phone/Device/CommonForm/TopFrameLayout.cs
old mode 100755 new mode 100644
@@ -9,7 +9,7 @@
        /// <summary>
        /// 返回键
        /// </summary>
        public BackButton backButton;
        public UserCenter.BackViewControl backButton;
        /// <summary>
        /// 状态栏-高度为80
        /// </summary>
@@ -74,7 +74,7 @@
            {
                Y=Height-1,
                Height=1,
                BackgroundColor=ZigbeeColor.Current.GXCGrayLineColor4
                BackgroundColor= UserCenter.UserCenterColor.Current.ButtomLine
            };
            AddChidren(line);
        }
@@ -88,8 +88,11 @@
        /// <returns>The back button.</returns>
        private void AddBackBtn()
        {
            backButton = new BackButton { };
            backButton = new UserCenter.BackViewControl();
            topView.AddChidren(backButton);
            backButton.InitControl();
            //后续再调整
            backButton.Y = backButton.Y - Application.GetRealHeight(4);
        }
        #endregion
@@ -117,16 +120,15 @@
        /// </summary>
        private void AddTitle()
        {
            topTitle = new Button
            {
                X = Application.GetRealWidth(164),
                Height = Application.GetRealHeight(CommonFormResouce.TopFrameLayout_Height - CommonFormResouce.TopStatuFrameLayout_Height),
                Width = Application.GetRealWidth(CommonFormResouce.TopTitle_Width),
                TextSize = CommonFormResouce.TopTitle_TextSize,
                TextColor = ZigbeeColor.Current.GXCTitleBlackTitle,
                TextAlignment = TextAlignment.CenterLeft,
                IsBold = true,
            };
            topTitle = new Button();
            topTitle.TextSize = 17;
            topTitle.X = Application.GetRealWidth(161);
            topTitle.Height = Application.GetRealHeight(75);
            topTitle.Width = Application.GetRealWidth(850);
            topTitle.Gravity = Gravity.CenterVertical;
            topTitle.TextColor = UserCenter.UserCenterColor.Current.TopLayoutTitleText;
            topTitle.TextAlignment = TextAlignment.CenterLeft;
            topTitle.IsBold = true;
            topView.AddChidren(topTitle);
        }