From f500e14c0a994487070380c50c85e0929cbc8e63 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 05 一月 2021 10:48:04 +0800 Subject: [PATCH] 2021-01-05 1.更新 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 45 insertions(+), 2 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs index 7d66fc3..2d44dc2 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/SubaccountListView.cs @@ -58,6 +58,11 @@ topView.AddChidren (ItemButton); #endregion + //2020-07-01 + if (UserConfig.Instance.CurrentRegion != null && !string.IsNullOrEmpty (UserConfig.Instance.CurrentRegion.Name)) { + NameButton.Text = UserConfig.Instance.CurrentRegion.Name; + } + EventHandler<MouseEventArgs> addSubaccountHandler = (sender, e) => { modifySubaccount (null); }; @@ -109,13 +114,34 @@ VerticalScrolViewLayout contentView = new VerticalScrolViewLayout () { Y = topUserMsgView.Bottom, - Height = Application.GetRealHeight (1136) - topUserMsgView.Bottom, + Height = Application.GetRealHeight (1136-80) - topUserMsgView.Bottom, BackgroundColor = SkinStyle.Current.ViewColor, ScrollEnabled = false, }; AddChidren (contentView); - + //#region + ////褰撳墠浣忓畢 + //FrameLayout homeView = new FrameLayout () { + // Height = Application.GetRealHeight (100), + // BackgroundColor = SkinStyle.Current.Transparent + //}; + //contentView.AddChidren (homeView); + + //Button btnHomeText = new Button () { + // X = Application.GetRealWidth (40), + // Width = Application.GetRealWidth (600), + // //TextID = R.MyInternationalizationString.Subaccount, + // TextAlignment = TextAlignment.CenterLeft, + // TextColor = SkinStyle.Current.TextColor1, + //}; + //homeView.AddChidren (btnHomeText); + + //if (UserConfig.Instance.CurrentRegion != null && !string.IsNullOrEmpty (UserConfig.Instance.CurrentRegion.Name)) { + // btnHomeText.Text = "Current residence: " + UserConfig.Instance.CurrentRegion.Name; + //} + //#endregion + FrameLayout subaccountView = new FrameLayout () { Height = Application.GetRealHeight (50), BackgroundColor = SkinStyle.Current.MainColor @@ -145,6 +171,23 @@ addSubaccountList (); + addTipView (); + } + + void addTipView () { + var TipView = new Button () { + Width = LayoutParams.MatchParent, + Y = Application.GetRealHeight (Application.DesignHeight - 80), + Height = Application.GetRealHeight (80), + BackgroundColor = 0xFFFFFFE0, + TextSize = 11, + TextColor = 0xFF1F1F1F, + TextAlignment = TextAlignment.Center, + IsMoreLines = true, + Text = "Manage the member list of the current residence and share it to other accounts. \n Tips: You need to add the registered member account.", + + }; + AddChidren (TipView); } void addSubaccountList () -- Gitblit v1.8.0