HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-06-10 dce6c3481a37216292724013ff9d2b75ceb82f86
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs
@@ -68,7 +68,7 @@
            this.m_frameTable = new FrameLayout();
            this.m_frameTable.Width = this.Width;
            this.m_frameTable.Height = this.Height;
            this.AddChidren(this.m_frameTable);
            base.AddChidren(this.m_frameTable);
        }
        #endregion
@@ -76,10 +76,10 @@
        #region ■ 添加子控件_________________________
        /// <summary>
        /// 添加Frame子控件
        /// 添加Frame子控件(注意,它是往下加控件,只会改变坐标,桌布大小会增加)
        /// </summary>
        /// <param name="view"></param>
        public void AddChidrenFrame(FrameLayout frame)
        public override void AddChidren(View view)
        {
            //初始化桌布控件
            this.InitFrameTable();
@@ -88,13 +88,13 @@
            int value = this.GetLocationMostLastViewBottom(this.m_frameTable);
            if (value != -1)
            {
                frame.Y = value + rowSpace;
                view.Y = value + rowSpace;
            }
            this.m_frameTable.AddChidren(frame);
            this.m_frameTable.AddChidren(view);
            //调整桌布高度
            if (this.m_frameTable.Height < frame.Bottom)
            if (this.m_frameTable.Height < view.Bottom)
            {
                this.m_frameTable.Height = frame.Bottom;
                this.m_frameTable.Height = view.Bottom;
            }
        }
@@ -185,7 +185,7 @@
            this.frameBackTemp = new FrameLayout();
            frameBackTemp.Height = ControlCommonResourse.BodyFrameHeight - btnTemp.Yaxis + Application.GetRealHeight(23);
            this.AddChidrenFrame(frameBackTemp);
            this.AddChidren(frameBackTemp);
            this.rowSpace = oldRowSpace;
        }