From b78a4d0ca90416d37fcbaf5e54b00f7eaab53919 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 14 十月 2019 17:03:58 +0800
Subject: [PATCH] 2019-10-14-2
---
ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs | 34 +++++++++++++---------------------
1 files changed, 13 insertions(+), 21 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs
index f2c6cd8..38c4032 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Member/MemberListForm.cs
+++ b/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
--
Gitblit v1.8.0