黄学彪
2020-02-21 bd46c57c77c276014db3192a4e2cc96e23c93202
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs
@@ -30,6 +30,10 @@
        /// 右边图标控件的大小
        /// </summary>
        private int rightIconSize = 0;
        /// <summary>
        /// 底线控件
        /// </summary>
        private NormalViewControl btnBottomLine = null;
        #endregion
@@ -55,6 +59,11 @@
        /// </summary>
        public virtual NormalViewControl AddBottomLine()
        {
            if (this.btnBottomLine != null)
            {
                //已经添加了底线
                return btnBottomLine;
            }
            int lineWidth = this.Width - ControlCommonResourse.XXLeft * 2 - LeftOffset - RightOffset;
            int XX = ControlCommonResourse.XXLeft + LeftOffset;
            if (leftIconSize > 0)
@@ -62,13 +71,13 @@
                lineWidth = lineWidth - leftIconSize - Application.GetRealWidth(35);
                XX = XX + leftIconSize + Application.GetRealWidth(35);
            }
            var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
            btnLine.X = XX;
            btnLine.Y = this.Height - ControlCommonResourse.BottomLineHeight;
            btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
            base.AddChidren(btnLine);
            this.btnBottomLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
            btnBottomLine.X = XX;
            btnBottomLine.Y = this.Height - ControlCommonResourse.BottomLineHeight;
            btnBottomLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
            base.AddChidren(btnBottomLine);
            return btnLine;
            return btnBottomLine;
        }
        #endregion