HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-12-14 e90209beae6a4e822cecb18e6889f8bda23f630e
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs
File was renamed from ZigbeeApp/Shared/Phone/Common/Controls/FrameLayoutControls/FrameRowControl.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace Shared.Phone
namespace Shared.Phone.UserCenter
{
    /// <summary>
    /// 做成一个RowLayout型的FrameLayout
@@ -45,7 +45,7 @@
        /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
        public FrameRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
        {
            this.Height = HdlControlResourse.ListViewRowHeight;
            this.Height = ControlCommonResourse.ListViewRowHeight;
            this.Width = Application.CurrentWidth;
        }
@@ -64,16 +64,16 @@
                //已经添加了底线
                return btnBottomLine;
            }
            int lineWidth = this.Width - HdlControlResourse.XXLeft * 2 - LeftOffset - RightOffset;
            int XX = HdlControlResourse.XXLeft + LeftOffset;
            int lineWidth = this.Width - ControlCommonResourse.XXLeft * 2 - LeftOffset - RightOffset;
            int XX = ControlCommonResourse.XXLeft + LeftOffset;
            if (leftIconSize > 0)
            {
                lineWidth = lineWidth - leftIconSize - Application.GetRealWidth(35);
                XX = XX + leftIconSize + Application.GetRealWidth(35);
            }
            this.btnBottomLine = new NormalViewControl(lineWidth, HdlControlResourse.BottomLineHeight, false);
            this.btnBottomLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
            btnBottomLine.X = XX;
            btnBottomLine.Y = this.Height - HdlControlResourse.BottomLineHeight;
            btnBottomLine.Y = this.Height - ControlCommonResourse.BottomLineHeight;
            btnBottomLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
            base.AddChidren(btnBottomLine);
@@ -117,7 +117,7 @@
        /// <returns></returns>
        public NormalViewControl AddLeftCaption(string i_caption, int i_width, int i_height, bool real = true)
        {
            int XX = HdlControlResourse.XXLeft + LeftOffset;
            int XX = ControlCommonResourse.XXLeft + LeftOffset;
            if (this.leftIconSize > 0)
            {
                XX += this.leftIconSize + Application.GetRealWidth(35);
@@ -147,7 +147,7 @@
            {
                i_width = Application.GetRealWidth(i_width);
            }
            int XX = HdlControlResourse.XXLeft + LeftOffset;
            int XX = ControlCommonResourse.XXLeft + LeftOffset;
            if (this.leftIconSize > 0)
            {
                XX += this.leftIconSize + Application.GetRealWidth(35);
@@ -178,7 +178,7 @@
        public IconViewControl AddLeftIcon(int i_Iconsize = 81, string i_IconPath = null)
        {
            var btnIcon = new IconViewControl(i_Iconsize);
            btnIcon.X = HdlControlResourse.XXLeft + LeftOffset;
            btnIcon.X = ControlCommonResourse.XXLeft + LeftOffset;
            btnIcon.Gravity = Gravity.CenterVertical;
            if (i_IconPath != null)
            {
@@ -205,7 +205,7 @@
        {
            var btnRight = new IconViewControl(58);
            btnRight.Gravity = Gravity.CenterVertical;
            btnRight.X =this.Width - btnRight.IconSize - HdlControlResourse.XXLeft + RightOffset;
            btnRight.X =this.Width - btnRight.IconSize - ControlCommonResourse.XXLeft + RightOffset;
            btnRight.UnSelectedImagePath = "Item/RightNext.png";
            this.AddChidren(btnRight, ChidrenBindMode.BindEvent);
@@ -308,7 +308,7 @@
                i_height = Application.GetRealHeight(i_height);
            }
            var btnContr = new NormalViewControl(i_width, i_height, false);
            btnContr.X = this.Width - HdlControlResourse.XXLeft - i_width - rightIconSize + RightOffset;
            btnContr.X = this.Width - ControlCommonResourse.XXLeft - i_width - rightIconSize + RightOffset;
            btnContr.Height = i_height;
            btnContr.TextAlignment = TextAlignment.CenterRight;
            btnContr.TextColor = UserCenterColor.Current.TextGrayColor1;