WJC
2019-10-24 528c105b3aea0e6e00477365f16f57c1e3d7eb1c
ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs
@@ -132,11 +132,17 @@
            btnMenberTile.TextSize = 15;
            bodyFrameLayout.AddChidren(btnMenberTile);
            var frameBack = new FrameLayout();
            frameBack.Y = btnMenberTile.Bottom + Application.GetRealHeight(23);
            frameBack.Height = Application.GetRealHeight(11);
            frameBack.BackgroundColor = UserCenterColor.Current.White;
            bodyFrameLayout.AddChidren(frameBack);
            //添加可以向下滚动的控件
            listView = new VerticalListControl(12);
            listView.Height = bodyFrameLayout.Height - Application.GetRealHeight(567);
            listView.Height = bodyFrameLayout.Height - frameBack.Bottom;
            listView.BackgroundColor = UserCenterColor.Current.White;
            listView.Y = Application.GetRealHeight(567);
            listView.Y = frameBack.Bottom;
            bodyFrameLayout.AddChidren(listView);
            //初始化成员列表
@@ -224,13 +230,7 @@
                this.AddRowLayout(listNewInfo[i], i != count);
            }
            //调整列表控件的高度
            var realHeight = listNewInfo.Count * listView.GetChildren(listView.ChildrenCount - 1).Height;
            realHeight += Application.GetRealHeight(23) - listView.rowSpace + Application.GetRealHeight(23);
            if (realHeight < listView.Height)
            {
                //缩小控件高度
                listView.Height = realHeight;
            }
            listView.AdjustRealHeight(Application.GetRealHeight(23));
        }
        #endregion
@@ -244,16 +244,6 @@
        ///  <param name="addLine">addLine</param>
        private void AddRowLayout(MemberInfoRes info, bool addLine)
        {
            if (listView.ChildrenCount == 0)
            {
                //塞一个空白的进去占空间
                var rowTemp = new FrameRowControl();
                rowTemp.UseClickStatu = false;
                rowTemp.Height = Application.GetRealHeight(23) - listView.rowSpace;
                rowTemp.MainKeys = string.Empty;
                listView.AddChidren(rowTemp);
            }
            var rowlayout = new FrameRowControl(listView.rowSpace / 2);
            rowlayout.Height = Application.GetRealHeight(138);
            rowlayout.MainKeys = info.Account;
@@ -277,7 +267,7 @@
                rowlayout.AddBottomLine();
            }
            //右图标
            rowlayout.AddRightIconControl();
            rowlayout.AddRightArrow();
            rowlayout.ButtonClickEvent += (sender, e) =>
            {
                var form = new MemberManagementForm();
@@ -317,7 +307,7 @@
        /// <summary>
        /// 自身的上层界面关闭后,它自身处于最上层时,触发的事件
        /// </summary>
        public override void FormActionAgainEvent()
        public override int FormActionAgainEvent()
        {
            //清空共享文件夹
            HdlShardLogic.Current.ClearShardDirectory();
@@ -327,6 +317,8 @@
            //添加成员列表
            this.AddMemberListRowByData();
            return 1;
        }
        #endregion