From 3aba1c7fea5f0adb1b169e8060ce956188e80a2b Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 24 九月 2024 10:46:18 +0800 Subject: [PATCH] 删除解锁APP的模式 --- HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPage.cs | 1432 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 716 insertions(+), 716 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPage.cs index 6eb3d6b..9fe4c9a 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPage.cs @@ -1,810 +1,810 @@ -锘縰sing System; -using HDL_ON.UI.CSS; -using Shared; +锘�//using System; +//using HDL_ON.UI.CSS; +//using Shared; -namespace HDL_ON.UI -{ - public partial class AppUnlockSettingsPage : FrameLayout - { - #region 鎺т欢鍒楄〃 - FrameLayout bodyView; +//namespace HDL_ON.UI +//{ +// public partial class AppUnlockSettingsPage : FrameLayout +// { +// #region 鎺т欢鍒楄〃 +// FrameLayout bodyView; - /// <summary> - /// 涓婇儴鍒嗘樉绀哄尯鍩� - /// </summary> - FrameLayout topContentView; - /// <summary> - /// 瑙i攣椤甸潰閫夋嫨鍒楄〃view - /// </summary> - HorizontalScrolViewLayout optionView; +// /// <summary> +// /// 涓婇儴鍒嗘樉绀哄尯鍩� +// /// </summary> +// FrameLayout topContentView; +// /// <summary> +// /// 瑙i攣椤甸潰閫夋嫨鍒楄〃view +// /// </summary> +// HorizontalScrolViewLayout optionView; - /// <summary> - /// 鏃犱繚鎶ら�夐」鎻愮ず - /// </summary> - Button btnUnprotectedSelectionTip; - /// <summary> - /// 鏃犱繚鎶ら�夐」閫変腑鍥炬爣 - /// </summary> - Button btnUnprotectedSelectionIcon; - /// <summary> - /// 鏃犱繚鎶ら�夐」鑳屾櫙 - /// </summary> - Button btnUnprotectedBg; +// /// <summary> +// /// 鏃犱繚鎶ら�夐」鎻愮ず +// /// </summary> +// Button btnUnprotectedSelectionTip; +// /// <summary> +// /// 鏃犱繚鎶ら�夐」閫変腑鍥炬爣 +// /// </summary> +// Button btnUnprotectedSelectionIcon; +// /// <summary> +// /// 鏃犱繚鎶ら�夐」鑳屾櫙 +// /// </summary> +// Button btnUnprotectedBg; - /// <summary> - /// 鍚姩鏃堕�夐」鎻愮ず - /// </summary> - Button btnStartupSelectionTip; - /// <summary> - /// 鍚姩鏃堕�夐」閫変腑鍥炬爣 - /// </summary> - Button btnStartupSelectionIcon; - /// <summary> - /// 鍚姩鏃堕�夐」鑳屾櫙 - /// </summary> - Button btnStartupBg; +// /// <summary> +// /// 鍚姩鏃堕�夐」鎻愮ず +// /// </summary> +// Button btnStartupSelectionTip; +// /// <summary> +// /// 鍚姩鏃堕�夐」閫変腑鍥炬爣 +// /// </summary> +// Button btnStartupSelectionIcon; +// /// <summary> +// /// 鍚姩鏃堕�夐」鑳屾櫙 +// /// </summary> +// Button btnStartupBg; - #region F3闃舵 - ///// <summary> - ///// 璁剧疆瀹夐槻閫夐」鎻愮ず - ///// </summary> - //Button btnSecuritySelectionTip; - ///// <summary> - ///// 璁剧疆瀹夐槻閫夐」閫変腑鍥炬爣 - ///// </summary> - //Button btnSecuritySelectionIcon; - ///// <summary> - ///// 璁剧疆瀹夐槻閫夐」鑳屾櫙 - ///// </summary> - //Button btnSecurityBg; +// #region F3闃舵 +// ///// <summary> +// ///// 璁剧疆瀹夐槻閫夐」鎻愮ず +// ///// </summary> +// //Button btnSecuritySelectionTip; +// ///// <summary> +// ///// 璁剧疆瀹夐槻閫夐」閫変腑鍥炬爣 +// ///// </summary> +// //Button btnSecuritySelectionIcon; +// ///// <summary> +// ///// 璁剧疆瀹夐槻閫夐」鑳屾櫙 +// ///// </summary> +// //Button btnSecurityBg; - /// <summary> - /// 璁剧疆闂ㄩ攣閫夐」鎻愮ず - /// </summary> - Button btnDoorlockSelectionTip; - /// <summary> - /// 璁剧疆闂ㄩ攣閫夐」閫変腑鍥炬爣 - /// </summary> - Button btnDoorlockSelectionIcon; - /// <summary> - /// 璁剧疆闂ㄩ攣閫夐」鑳屾櫙 - /// </summary> - Button btnDoorlockBg; - #endregion +// /// <summary> +// /// 璁剧疆闂ㄩ攣閫夐」鎻愮ず +// /// </summary> +// Button btnDoorlockSelectionTip; +// /// <summary> +// /// 璁剧疆闂ㄩ攣閫夐」閫変腑鍥炬爣 +// /// </summary> +// Button btnDoorlockSelectionIcon; +// /// <summary> +// /// 璁剧疆闂ㄩ攣閫夐」鑳屾櫙 +// /// </summary> +// Button btnDoorlockBg; +// #endregion - /// <summary> - /// 瀵嗙爜浣跨敤閫夋嫨鐨勮缁嗗唴瀹规彁绀� - /// </summary> - Button btnTipMsg; +// /// <summary> +// /// 瀵嗙爜浣跨敤閫夋嫨鐨勮缁嗗唴瀹规彁绀� +// /// </summary> +// Button btnTipMsg; - /// <summary> - /// 瑙i攣鏂瑰紡鍖哄煙view - /// </summary> - VerticalScrolViewLayout unlockOptionView; +// /// <summary> +// /// 瑙i攣鏂瑰紡鍖哄煙view +// /// </summary> +// VerticalScrolViewLayout unlockOptionView; - /// <summary> - /// 瀵嗙爜璁剧疆鏂囨湰 - /// 浜嬩欢璺宠浆鎸夐挳 - /// </summary> - Button btnPasswordUnlockTitle; - /// <summary> - /// 淇敼瀵嗙爜鏂囨湰 - /// 浜嬩欢璺宠浆鎸夐挳 - /// </summary> - Button btnResetPasswordTitle; +// /// <summary> +// /// 瀵嗙爜璁剧疆鏂囨湰 +// /// 浜嬩欢璺宠浆鎸夐挳 +// /// </summary> +// Button btnPasswordUnlockTitle; +// /// <summary> +// /// 淇敼瀵嗙爜鏂囨湰 +// /// 浜嬩欢璺宠浆鎸夐挳 +// /// </summary> +// Button btnResetPasswordTitle; - /// <summary> - /// 鎵嬪娍璁剧疆鏂囨湰 - /// 浜嬩欢璺宠浆鎸夐挳 - /// </summary> - Button btnGestureUnlockTitle; - /// <summary> - /// 淇敼鎵嬪娍瀵嗙爜 - /// 浜嬩欢璺宠浆鎸夐挳 - /// </summary> - Button btnResetGestureTitle; +// /// <summary> +// /// 鎵嬪娍璁剧疆鏂囨湰 +// /// 浜嬩欢璺宠浆鎸夐挳 +// /// </summary> +// Button btnGestureUnlockTitle; +// /// <summary> +// /// 淇敼鎵嬪娍瀵嗙爜 +// /// 浜嬩欢璺宠浆鎸夐挳 +// /// </summary> +// Button btnResetGestureTitle; - /// <summary> - /// 鎸囩汗璁剧疆鏂囨湰 - /// 浜嬩欢璺宠浆鎸夐挳 - /// </summary> - Button btnFingerprintUnlockSwtichIcon; - /// <summary> - /// 闈㈠ID璁剧疆鏂囨湰 - /// 浜嬩欢璺宠浆鎸夐挳 - /// </summary> - Button btnFaceIdUnlockSwtichIcon; +// /// <summary> +// /// 鎸囩汗璁剧疆鏂囨湰 +// /// 浜嬩欢璺宠浆鎸夐挳 +// /// </summary> +// Button btnFingerprintUnlockSwtichIcon; +// /// <summary> +// /// 闈㈠ID璁剧疆鏂囨湰 +// /// 浜嬩欢璺宠浆鎸夐挳 +// /// </summary> +// Button btnFaceIdUnlockSwtichIcon; - /// <summary> - /// 鎸囩汗瑙i攣鏂瑰紡Row - /// </summary> - FrameLayout fingerprintUnlockDiv; - /// <summary> - /// 闈㈠瑙i攣鏂瑰紡Row - /// </summary> - FrameLayout faceIdUnlockDiv; - #endregion +// /// <summary> +// /// 鎸囩汗瑙i攣鏂瑰紡Row +// /// </summary> +// FrameLayout fingerprintUnlockDiv; +// /// <summary> +// /// 闈㈠瑙i攣鏂瑰紡Row +// /// </summary> +// FrameLayout faceIdUnlockDiv; +// #endregion - /// <summary> - /// 鏄惁鏀寔鎸囩汗瑙i攣 - /// </summary> - bool sTouchID = false; - /// <summary> - /// 鏄惁鏀寔闈㈠瑙i攣 - /// </summary> - bool sFaceID = false; +// /// <summary> +// /// 鏄惁鏀寔鎸囩汗瑙i攣 +// /// </summary> +// bool sTouchID = false; +// /// <summary> +// /// 鏄惁鏀寔闈㈠瑙i攣 +// /// </summary> +// bool sFaceID = false; - public AppUnlockSettingsPage() - { - bodyView = this; - } +// public AppUnlockSettingsPage() +// { +// bodyView = this; +// } - public void LoadPage() - { - bodyView.BackgroundColor = CSS_Color.BackgroundColor; - //濡傛灉鐢ㄦ埛閰嶇疆浜嗛渶瑕佽В閿佺殑鐣岄潰浣嗘槸娌℃湁璁剧疆瀵嗙爜锛屽垯鍦ㄨ繑鍥炴椂娓呯┖闇�瑕佽В閿佺殑鐣岄潰 - Action action = () => { - if(UserInfo.Current.appUnlockPage.Count > 0&& UserInfo.Current.appUnlockPasswrod == "") - { - UserInfo.Current.appUnlockPage = new System.Collections.Generic.List<string>(); - UserInfo.Current.SaveUserInfo(); - } - }; - new TopViewDiv(bodyView, Language.StringByID(StringId.InterpretationSettings)).LoadTopView(action); +// public void LoadPage() +// { +// bodyView.BackgroundColor = CSS_Color.BackgroundColor; +// //濡傛灉鐢ㄦ埛閰嶇疆浜嗛渶瑕佽В閿佺殑鐣岄潰浣嗘槸娌℃湁璁剧疆瀵嗙爜锛屽垯鍦ㄨ繑鍥炴椂娓呯┖闇�瑕佽В閿佺殑鐣岄潰 +// Action action = () => { +// if(UserInfo.Current.appUnlockPage.Count > 0&& UserInfo.Current.appUnlockPasswrod == "") +// { +// UserInfo.Current.appUnlockPage = new System.Collections.Generic.List<string>(); +// UserInfo.Current.SaveUserInfo(); +// } +// }; +// new TopViewDiv(bodyView, Language.StringByID(StringId.InterpretationSettings)).LoadTopView(action); - topContentView = new FrameLayout() - { - Y = Application.GetRealHeight(64), - Height = Application.GetRealWidth(332), - BackgroundColor = CSS_Color.MainBackgroundColor - }; - bodyView.AddChidren(topContentView); +// topContentView = new FrameLayout() +// { +// Y = Application.GetRealHeight(64), +// Height = Application.GetRealWidth(332), +// BackgroundColor = CSS_Color.MainBackgroundColor +// }; +// bodyView.AddChidren(topContentView); - Button btnTip1 = new Button() - { - Y = Application.GetRealHeight(8), - Height = Application.GetRealHeight(30), - TextAlignment = TextAlignment.Center, - IsBold = true, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.SubheadingFontSize, - TextID = StringId.PleaseSelectThePageToBeUnlocked, - BackgroundColor = CSS_Color.MainBackgroundColor, - }; - topContentView.AddChidren(btnTip1); +// Button btnTip1 = new Button() +// { +// Y = Application.GetRealHeight(8), +// Height = Application.GetRealHeight(30), +// TextAlignment = TextAlignment.Center, +// IsBold = true, +// TextColor = CSS_Color.FirstLevelTitleColor, +// TextSize = CSS_FontSize.SubheadingFontSize, +// TextID = StringId.PleaseSelectThePageToBeUnlocked, +// BackgroundColor = CSS_Color.MainBackgroundColor, +// }; +// topContentView.AddChidren(btnTip1); - Button btnTip2 = new Button() - { - Y = btnTip1.Bottom, - Height = Application.GetRealHeight(25), - TextAlignment = TextAlignment.Center, - TextColor = CSS_Color.PromptingColor1, - TextSize = CSS_FontSize.PromptFontSize_FirstLevel, - BackgroundColor = CSS_Color.MainBackgroundColor, - TextID = StringId.MultipleChoicesOfPagesYouNeedToProtect, - IsMoreLines = true, - }; - topContentView.AddChidren(btnTip2); - if(Language.CurrentLanguage == "Engligh") - { - btnTip2.Height = Application.GetRealHeight(30); - } +// Button btnTip2 = new Button() +// { +// Y = btnTip1.Bottom, +// Height = Application.GetRealHeight(25), +// TextAlignment = TextAlignment.Center, +// TextColor = CSS_Color.PromptingColor1, +// TextSize = CSS_FontSize.PromptFontSize_FirstLevel, +// BackgroundColor = CSS_Color.MainBackgroundColor, +// TextID = StringId.MultipleChoicesOfPagesYouNeedToProtect, +// IsMoreLines = true, +// }; +// topContentView.AddChidren(btnTip2); +// if(Language.CurrentLanguage == "Engligh") +// { +// btnTip2.Height = Application.GetRealHeight(30); +// } - optionView = new HorizontalScrolViewLayout() - { - Y = Application.GetRealWidth(143 - 64), - Height = Application.GetRealWidth(209), - BackgroundColor = CSS_Color.MainBackgroundColor, - }; - topContentView.AddChidren(optionView); +// optionView = new HorizontalScrolViewLayout() +// { +// Y = Application.GetRealWidth(143 - 64), +// Height = Application.GetRealWidth(209), +// BackgroundColor = CSS_Color.MainBackgroundColor, +// }; +// topContentView.AddChidren(optionView); - LoadView_OptionView(); +// LoadView_OptionView(); - btnTipMsg = new Button() - { - Gravity = Gravity.CenterHorizontal, - Y = Application.GetRealWidth(288), - Width = Application.GetRealWidth(311), - Height = Application.GetRealWidth(28), - TextAlignment = TextAlignment.Center, - TextColor = CSS_Color.FirstLevelTitleColor, - SelectedTextColor = CSS_Color.FirstLevelTitleColor, - BorderColor = CSS_Color.MainColor, - BorderWidth = 1, - Radius = 1, - TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, - TextID = StringId.UnprotectedTipMsg, - }; - topContentView.AddChidren(btnTipMsg); - if (Language.CurrentLanguage == "Engligh") - { - btnTip2.Height = Application.GetRealHeight(40); - topContentView.Height = Application.GetRealHeight(360); - } +// btnTipMsg = new Button() +// { +// Gravity = Gravity.CenterHorizontal, +// Y = Application.GetRealWidth(288), +// Width = Application.GetRealWidth(311), +// Height = Application.GetRealWidth(28), +// TextAlignment = TextAlignment.Center, +// TextColor = CSS_Color.FirstLevelTitleColor, +// SelectedTextColor = CSS_Color.FirstLevelTitleColor, +// BorderColor = CSS_Color.MainColor, +// BorderWidth = 1, +// Radius = 1, +// TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, +// TextID = StringId.UnprotectedTipMsg, +// }; +// topContentView.AddChidren(btnTipMsg); +// if (Language.CurrentLanguage == "Engligh") +// { +// btnTip2.Height = Application.GetRealHeight(40); +// topContentView.Height = Application.GetRealHeight(360); +// } - LoadEventList(); +// LoadEventList(); - LoadView_UnlockView(); +// LoadView_UnlockView(); - } - /// <summary> - /// 鍔犺浇閫夐」鍗� - /// </summary> - void LoadView_OptionView() - { - #region Unprotected - optionView.AddChidren(new Button() { Width = Application.GetRealWidth(24) }); +// } +// /// <summary> +// /// 鍔犺浇閫夐」鍗� +// /// </summary> +// void LoadView_OptionView() +// { +// #region Unprotected +// optionView.AddChidren(new Button() { Width = Application.GetRealWidth(24) }); - FrameLayout unprotectedDiv = new FrameLayout() - { - Width = Application.GetRealWidth(94), - }; - optionView.AddChidren(unprotectedDiv); +// FrameLayout unprotectedDiv = new FrameLayout() +// { +// Width = Application.GetRealWidth(94), +// }; +// optionView.AddChidren(unprotectedDiv); - btnUnprotectedBg = new Button() - { - Height = Application.GetRealWidth(174), - UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/1.png", - SelectedImagePath = "PersonalCenter/AppUnlockSetting/1On.png" - }; - unprotectedDiv.AddChidren(btnUnprotectedBg); +// btnUnprotectedBg = new Button() +// { +// Height = Application.GetRealWidth(174), +// UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/1.png", +// SelectedImagePath = "PersonalCenter/AppUnlockSetting/1On.png" +// }; +// unprotectedDiv.AddChidren(btnUnprotectedBg); - btnUnprotectedSelectionIcon = new Button() - { - X = Application.GetRealWidth(5), - Y = Application.GetRealWidth(174), - Width = Application.GetRealWidth(30), - Height = Application.GetRealWidth(30), - UnSelectedImagePath = "Public/ChooseIcon.png", - SelectedImagePath = "Public/ChooseOnIcon.png", - }; - unprotectedDiv.AddChidren(btnUnprotectedSelectionIcon); +// btnUnprotectedSelectionIcon = new Button() +// { +// X = Application.GetRealWidth(5), +// Y = Application.GetRealWidth(174), +// Width = Application.GetRealWidth(30), +// Height = Application.GetRealWidth(30), +// UnSelectedImagePath = "Public/ChooseIcon.png", +// SelectedImagePath = "Public/ChooseOnIcon.png", +// }; +// unprotectedDiv.AddChidren(btnUnprotectedSelectionIcon); - btnUnprotectedSelectionTip = new Button() - { - X = Application.GetRealWidth(30), - Y = Application.GetRealWidth(174), - Width = Application.GetRealWidth(74), - Height = Application.GetRealWidth(30), - TextID = StringId.Unprotected, - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, - SelectedTextColor = CSS_Color.MainColor, - }; - unprotectedDiv.AddChidren(btnUnprotectedSelectionTip); - #endregion +// btnUnprotectedSelectionTip = new Button() +// { +// X = Application.GetRealWidth(30), +// Y = Application.GetRealWidth(174), +// Width = Application.GetRealWidth(74), +// Height = Application.GetRealWidth(30), +// TextID = StringId.Unprotected, +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, +// SelectedTextColor = CSS_Color.MainColor, +// }; +// unprotectedDiv.AddChidren(btnUnprotectedSelectionTip); +// #endregion - #region Startup - optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); +// #region Startup +// optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); - FrameLayout startupDiv = new FrameLayout() - { - Width = Application.GetRealWidth(94), - }; - optionView.AddChidren(startupDiv); +// FrameLayout startupDiv = new FrameLayout() +// { +// Width = Application.GetRealWidth(94), +// }; +// optionView.AddChidren(startupDiv); - btnStartupBg = new Button() - { - Height = Application.GetRealWidth(174), - UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/2.png", - SelectedImagePath = "PersonalCenter/AppUnlockSetting/2On.png" - }; - startupDiv.AddChidren(btnStartupBg); +// btnStartupBg = new Button() +// { +// Height = Application.GetRealWidth(174), +// UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/2.png", +// SelectedImagePath = "PersonalCenter/AppUnlockSetting/2On.png" +// }; +// startupDiv.AddChidren(btnStartupBg); - btnStartupSelectionIcon = new Button() - { - X = Application.GetRealWidth(5), - Y = Application.GetRealWidth(174), - Width = Application.GetRealWidth(30), - Height = Application.GetRealWidth(30), - UnSelectedImagePath = "Public/ChooseIcon.png", - SelectedImagePath = "Public/ChooseOnIcon.png", - }; - startupDiv.AddChidren(btnStartupSelectionIcon); +// btnStartupSelectionIcon = new Button() +// { +// X = Application.GetRealWidth(5), +// Y = Application.GetRealWidth(174), +// Width = Application.GetRealWidth(30), +// Height = Application.GetRealWidth(30), +// UnSelectedImagePath = "Public/ChooseIcon.png", +// SelectedImagePath = "Public/ChooseOnIcon.png", +// }; +// startupDiv.AddChidren(btnStartupSelectionIcon); - btnStartupSelectionTip = new Button() - { - X = Application.GetRealWidth(30), - Y = Application.GetRealWidth(174), - Width = Application.GetRealWidth(74), - Height = Application.GetRealWidth(30), - TextID = StringId.AtStartup, - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - SelectedTextColor = CSS_Color.MainColor, - TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel - }; - startupDiv.AddChidren(btnStartupSelectionTip); - #endregion +// btnStartupSelectionTip = new Button() +// { +// X = Application.GetRealWidth(30), +// Y = Application.GetRealWidth(174), +// Width = Application.GetRealWidth(74), +// Height = Application.GetRealWidth(30), +// TextID = StringId.AtStartup, +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// SelectedTextColor = CSS_Color.MainColor, +// TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel +// }; +// startupDiv.AddChidren(btnStartupSelectionTip); +// #endregion - #region F3闃舵 - #region Security - //optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); +// #region F3闃舵 +// #region Security +// //optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); - //FrameLayout securityDiv = new FrameLayout() - //{ - // Width = Application.GetRealWidth(94), - //}; - //optionView.AddChidren(securityDiv); +// //FrameLayout securityDiv = new FrameLayout() +// //{ +// // Width = Application.GetRealWidth(94), +// //}; +// //optionView.AddChidren(securityDiv); - //btnSecurityBg = new Button() - //{ - // Height = Application.GetRealWidth(174), - // UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/3.png", - // SelectedImagePath = "PersonalCenter/AppUnlockSetting/3On.png" - //}; - //securityDiv.AddChidren(btnSecurityBg); +// //btnSecurityBg = new Button() +// //{ +// // Height = Application.GetRealWidth(174), +// // UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/3.png", +// // SelectedImagePath = "PersonalCenter/AppUnlockSetting/3On.png" +// //}; +// //securityDiv.AddChidren(btnSecurityBg); - //btnSecuritySelectionIcon = new Button() - //{ - // X = Application.GetRealWidth(5), - // Y = Application.GetRealWidth(174), - // Width = Application.GetRealWidth(30), - // Height = Application.GetRealWidth(30), - // UnSelectedImagePath = "Public/ChooseIcon.png", - // SelectedImagePath = "Public/ChooseOnIcon.png", - //}; - //securityDiv.AddChidren(btnSecuritySelectionIcon); +// //btnSecuritySelectionIcon = new Button() +// //{ +// // X = Application.GetRealWidth(5), +// // Y = Application.GetRealWidth(174), +// // Width = Application.GetRealWidth(30), +// // Height = Application.GetRealWidth(30), +// // UnSelectedImagePath = "Public/ChooseIcon.png", +// // SelectedImagePath = "Public/ChooseOnIcon.png", +// //}; +// //securityDiv.AddChidren(btnSecuritySelectionIcon); - //btnSecuritySelectionTip = new Button() - //{ - // X = Application.GetRealWidth(30), - // Y = Application.GetRealWidth(174), - // Width = Application.GetRealWidth(74), - // Height = Application.GetRealWidth(30), - // TextID = StringId.DefenseAndUndefense, - // TextAlignment = TextAlignment.CenterLeft, - // TextColor = CSS_Color.FirstLevelTitleColor, - // SelectedTextColor = CSS_Color.MainColor, - // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel - //}; - //securityDiv.AddChidren(btnSecuritySelectionTip); - #endregion +// //btnSecuritySelectionTip = new Button() +// //{ +// // X = Application.GetRealWidth(30), +// // Y = Application.GetRealWidth(174), +// // Width = Application.GetRealWidth(74), +// // Height = Application.GetRealWidth(30), +// // TextID = StringId.DefenseAndUndefense, +// // TextAlignment = TextAlignment.CenterLeft, +// // TextColor = CSS_Color.FirstLevelTitleColor, +// // SelectedTextColor = CSS_Color.MainColor, +// // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel +// //}; +// //securityDiv.AddChidren(btnSecuritySelectionTip); +// #endregion - #region Doorlock - optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); +// #region Doorlock +// optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); - FrameLayout doorlockDiv = new FrameLayout() - { - Width = Application.GetRealWidth(94), - }; - optionView.AddChidren(doorlockDiv); +// FrameLayout doorlockDiv = new FrameLayout() +// { +// Width = Application.GetRealWidth(94), +// }; +// optionView.AddChidren(doorlockDiv); - btnDoorlockBg = new Button() - { - Height = Application.GetRealWidth(174), - UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/4.png", - SelectedImagePath = "PersonalCenter/AppUnlockSetting/4On.png" - }; - doorlockDiv.AddChidren(btnDoorlockBg); +// btnDoorlockBg = new Button() +// { +// Height = Application.GetRealWidth(174), +// UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/4.png", +// SelectedImagePath = "PersonalCenter/AppUnlockSetting/4On.png" +// }; +// doorlockDiv.AddChidren(btnDoorlockBg); - btnDoorlockSelectionIcon = new Button() - { - X = Application.GetRealWidth(5), - Y = Application.GetRealWidth(174), - Width = Application.GetRealWidth(30), - Height = Application.GetRealWidth(30), - UnSelectedImagePath = "Public/ChooseIcon.png", - SelectedImagePath = "Public/ChooseOnIcon.png", - }; - doorlockDiv.AddChidren(btnDoorlockSelectionIcon); +// btnDoorlockSelectionIcon = new Button() +// { +// X = Application.GetRealWidth(5), +// Y = Application.GetRealWidth(174), +// Width = Application.GetRealWidth(30), +// Height = Application.GetRealWidth(30), +// UnSelectedImagePath = "Public/ChooseIcon.png", +// SelectedImagePath = "Public/ChooseOnIcon.png", +// }; +// doorlockDiv.AddChidren(btnDoorlockSelectionIcon); - btnDoorlockSelectionTip = new Button() - { - X = Application.GetRealWidth(30), - Y = Application.GetRealWidth(174), - Width = Application.GetRealWidth(74), - Height = Application.GetRealWidth(30), - TextID = StringId.RemoteUnlocking, - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - SelectedTextColor = CSS_Color.MainColor, - TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel - }; - doorlockDiv.AddChidren(btnDoorlockSelectionTip); - #endregion - #endregion +// btnDoorlockSelectionTip = new Button() +// { +// X = Application.GetRealWidth(30), +// Y = Application.GetRealWidth(174), +// Width = Application.GetRealWidth(74), +// Height = Application.GetRealWidth(30), +// TextID = StringId.RemoteUnlocking, +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// SelectedTextColor = CSS_Color.MainColor, +// TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel +// }; +// doorlockDiv.AddChidren(btnDoorlockSelectionTip); +// #endregion +// #endregion - optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); - } +// optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); +// } - /// <summary> - /// 鍔犺浇瑙i攣鏂瑰紡鍖哄煙 - /// </summary> - void LoadView_UnlockView() - { - if(unlockOptionView!= null) - { - unlockOptionView.RemoveAll(); - } - unlockOptionView = new VerticalScrolViewLayout() - { - Y = topContentView.Bottom + Application.GetRealHeight(8), - Height = Application.GetRealHeight(260), - BackgroundColor = CSS_Color.MainBackgroundColor, - ScrollEnabled = false, - Visible = UserInfo.Current.appUnlockPage.Count > 0 - }; - bodyView.AddChidren(unlockOptionView); +// /// <summary> +// /// 鍔犺浇瑙i攣鏂瑰紡鍖哄煙 +// /// </summary> +// void LoadView_UnlockView() +// { +// if(unlockOptionView!= null) +// { +// unlockOptionView.RemoveAll(); +// } +// unlockOptionView = new VerticalScrolViewLayout() +// { +// Y = topContentView.Bottom + Application.GetRealHeight(8), +// Height = Application.GetRealHeight(260), +// BackgroundColor = CSS_Color.MainBackgroundColor, +// ScrollEnabled = false, +// Visible = UserInfo.Current.appUnlockPage.Count > 0 +// }; +// bodyView.AddChidren(unlockOptionView); - #region 鏍囬鏍� - var unlockTitleDiv = new FrameLayout() - { - Height = Application.GetRealHeight(59), - }; - unlockOptionView.AddChidren(unlockTitleDiv); +// #region 鏍囬鏍� +// var unlockTitleDiv = new FrameLayout() +// { +// Height = Application.GetRealHeight(59), +// }; +// unlockOptionView.AddChidren(unlockTitleDiv); - var btnUnlockTitle = new Button() - { - X = Application.GetRealWidth(16), - Y = Application.GetRealWidth(6), - Width = Application.GetRealWidth(263), - Height = Application.GetRealWidth(26), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - IsBold = true, - TextSize = CSS_FontSize.SubheadingFontSize, - TextID = StringId.SetUnlockingMethod, - }; - unlockTitleDiv.AddChidren(btnUnlockTitle); +// var btnUnlockTitle = new Button() +// { +// X = Application.GetRealWidth(16), +// Y = Application.GetRealWidth(6), +// Width = Application.GetRealWidth(263), +// Height = Application.GetRealWidth(26), +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// IsBold = true, +// TextSize = CSS_FontSize.SubheadingFontSize, +// TextID = StringId.SetUnlockingMethod, +// }; +// unlockTitleDiv.AddChidren(btnUnlockTitle); - var btnUnlockTitleTip = new Button() - { - X = Application.GetRealWidth(16), - Y = btnUnlockTitle.Bottom, - Width = Application.GetRealWidth(263), - Height = Application.GetRealWidth(21), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.PromptingColor1, - TextSize = CSS_FontSize.PromptFontSize_FirstLevel, - TextID = StringId.ValidForNativeOnly, - }; - unlockTitleDiv.AddChidren(btnUnlockTitleTip); +// var btnUnlockTitleTip = new Button() +// { +// X = Application.GetRealWidth(16), +// Y = btnUnlockTitle.Bottom, +// Width = Application.GetRealWidth(263), +// Height = Application.GetRealWidth(21), +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.PromptingColor1, +// TextSize = CSS_FontSize.PromptFontSize_FirstLevel, +// TextID = StringId.ValidForNativeOnly, +// }; +// unlockTitleDiv.AddChidren(btnUnlockTitleTip); - unlockOptionView.AddChidren(new Button() - { - X = Application.GetRealWidth(16), - Width = Application.GetRealWidth(359), - Height = 1, - BackgroundColor = CSS_Color.BackgroundColor, - }); - #endregion +// unlockOptionView.AddChidren(new Button() +// { +// X = Application.GetRealWidth(16), +// Width = Application.GetRealWidth(359), +// Height = 1, +// BackgroundColor = CSS_Color.BackgroundColor, +// }); +// #endregion - #region 瀵嗙爜瑙i攣 - var passwordUnlockDiv = new FrameLayout() - { - Height = Application.GetRealHeight(50), - }; - if ( !UserInfo.Current.appUnlockType.Contains("2")) - { - unlockOptionView.AddChidren(passwordUnlockDiv); - } +// #region 瀵嗙爜瑙i攣 +// var passwordUnlockDiv = new FrameLayout() +// { +// Height = Application.GetRealHeight(50), +// }; +// if ( !UserInfo.Current.appUnlockType.Contains("2")) +// { +// unlockOptionView.AddChidren(passwordUnlockDiv); +// } - var btnPasswordUnlockIcon = new Button() - { - X = Application.GetRealWidth(16), - Gravity = Gravity.CenterVertical, - Width = Application.GetRealWidth(32), - Height = Application.GetRealWidth(32), - UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/PasswordIcon.png", - }; - passwordUnlockDiv.AddChidren(btnPasswordUnlockIcon); +// var btnPasswordUnlockIcon = new Button() +// { +// X = Application.GetRealWidth(16), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetRealWidth(32), +// Height = Application.GetRealWidth(32), +// UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/PasswordIcon.png", +// }; +// passwordUnlockDiv.AddChidren(btnPasswordUnlockIcon); - //var btnPasswordUnlockRightIcon = new Button() - //{ - // X = Application.GetRealWidth(339), - // Gravity = Gravity.CenterVertical, - // Width = Application.GetMinRealAverage(16), - // Height = Application.GetMinRealAverage(16), - // UnSelectedImagePath = "Public/Right.png", - //}; - //passwordUnlockDiv.AddChidren(btnPasswordUnlockRightIcon); +// //var btnPasswordUnlockRightIcon = new Button() +// //{ +// // X = Application.GetRealWidth(339), +// // Gravity = Gravity.CenterVertical, +// // Width = Application.GetMinRealAverage(16), +// // Height = Application.GetMinRealAverage(16), +// // UnSelectedImagePath = "Public/Right.png", +// //}; +// //passwordUnlockDiv.AddChidren(btnPasswordUnlockRightIcon); - var btnPasswordUnlockkSwtichIcon = new Button() - { - X = Application.GetRealWidth(322), - Gravity = Gravity.CenterVertical, - Width = Application.GetMinRealAverage(38), - Height = Application.GetMinRealAverage(38), - UnSelectedImagePath = "Public/Switch_2.png", - SelectedImagePath = "Public/SwitchOn_2.png", - IsSelected = UserInfo.Current.appUnlockType.Contains("1") - }; - passwordUnlockDiv.AddChidren(btnPasswordUnlockkSwtichIcon); +// var btnPasswordUnlockkSwtichIcon = new Button() +// { +// X = Application.GetRealWidth(322), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetMinRealAverage(38), +// Height = Application.GetMinRealAverage(38), +// UnSelectedImagePath = "Public/Switch_2.png", +// SelectedImagePath = "Public/SwitchOn_2.png", +// IsSelected = UserInfo.Current.appUnlockType.Contains("1") +// }; +// passwordUnlockDiv.AddChidren(btnPasswordUnlockkSwtichIcon); - btnPasswordUnlockTitle = new Button() - { - X = Application.GetRealWidth(66), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.TextFontSize, - TextID = StringId.PasswordUnlock, - }; - passwordUnlockDiv.AddChidren(btnPasswordUnlockTitle); +// btnPasswordUnlockTitle = new Button() +// { +// X = Application.GetRealWidth(66), +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// TextSize = CSS_FontSize.TextFontSize, +// TextID = StringId.PasswordUnlock, +// }; +// passwordUnlockDiv.AddChidren(btnPasswordUnlockTitle); - unlockOptionView.AddChidren(new Button() - { - X = Application.GetRealWidth(16), - Width = Application.GetRealWidth(343), - Height = 1, - BackgroundColor = CSS_Color.BackgroundColor, - }); - #endregion +// unlockOptionView.AddChidren(new Button() +// { +// X = Application.GetRealWidth(16), +// Width = Application.GetRealWidth(343), +// Height = 1, +// BackgroundColor = CSS_Color.BackgroundColor, +// }); +// #endregion - #region 淇敼瀵嗙爜 - var resetPasswordDiv = new FrameLayout() - { - Height = Application.GetRealHeight(50), - }; - if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("1")) - { - unlockOptionView.AddChidren(resetPasswordDiv); - } - var btnPasswordUnlockRightIcon = new Button() - { - X = Application.GetRealWidth(339), - Gravity = Gravity.CenterVertical, - Width = Application.GetMinRealAverage(16), - Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "Public/Right.png", - }; - resetPasswordDiv.AddChidren(btnPasswordUnlockRightIcon); +// #region 淇敼瀵嗙爜 +// var resetPasswordDiv = new FrameLayout() +// { +// Height = Application.GetRealHeight(50), +// }; +// if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("1")) +// { +// unlockOptionView.AddChidren(resetPasswordDiv); +// } +// var btnPasswordUnlockRightIcon = new Button() +// { +// X = Application.GetRealWidth(339), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetMinRealAverage(16), +// Height = Application.GetMinRealAverage(16), +// UnSelectedImagePath = "Public/Right.png", +// }; +// resetPasswordDiv.AddChidren(btnPasswordUnlockRightIcon); - btnResetPasswordTitle = new Button() - { - X = Application.GetRealWidth(66), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.TextFontSize, - TextID = StringId.ResetDigitalPassword, - }; - resetPasswordDiv.AddChidren(btnResetPasswordTitle); +// btnResetPasswordTitle = new Button() +// { +// X = Application.GetRealWidth(66), +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// TextSize = CSS_FontSize.TextFontSize, +// TextID = StringId.ResetDigitalPassword, +// }; +// resetPasswordDiv.AddChidren(btnResetPasswordTitle); - if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("1")) - { - unlockOptionView.AddChidren(new Button() - { - X = Application.GetRealWidth(16), - Width = Application.GetRealWidth(343), - Height = 1, - BackgroundColor = CSS_Color.BackgroundColor, - }); - } - #endregion +// if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("1")) +// { +// unlockOptionView.AddChidren(new Button() +// { +// X = Application.GetRealWidth(16), +// Width = Application.GetRealWidth(343), +// Height = 1, +// BackgroundColor = CSS_Color.BackgroundColor, +// }); +// } +// #endregion - #region 鎵嬪娍瑙i攣 - var gestureUnlockDiv = new FrameLayout() - { - Height = Application.GetRealHeight(50), - }; - if (!UserInfo.Current.appUnlockType.Contains("1")) - { - unlockOptionView.AddChidren(gestureUnlockDiv); - } - var btnGestureUnlockIcon = new Button() - { - X = Application.GetRealWidth(16), - Gravity = Gravity.CenterVertical, - Width = Application.GetRealWidth(32), - Height = Application.GetRealWidth(32), - UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/GestureIcon.png", - }; - gestureUnlockDiv.AddChidren(btnGestureUnlockIcon); +// #region 鎵嬪娍瑙i攣 +// var gestureUnlockDiv = new FrameLayout() +// { +// Height = Application.GetRealHeight(50), +// }; +// if (!UserInfo.Current.appUnlockType.Contains("1")) +// { +// unlockOptionView.AddChidren(gestureUnlockDiv); +// } +// var btnGestureUnlockIcon = new Button() +// { +// X = Application.GetRealWidth(16), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetRealWidth(32), +// Height = Application.GetRealWidth(32), +// UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/GestureIcon.png", +// }; +// gestureUnlockDiv.AddChidren(btnGestureUnlockIcon); - //var btnGestureUnlockRightIcon = new Button() - //{ - // X = Application.GetRealWidth(339), - // Gravity = Gravity.CenterVertical, - // Width = Application.GetMinRealAverage(16), - // Height = Application.GetMinRealAverage(16), - // UnSelectedImagePath = "Public/Right.png", - //}; - //gestureUnlockDiv.AddChidren(btnGestureUnlockRightIcon); +// //var btnGestureUnlockRightIcon = new Button() +// //{ +// // X = Application.GetRealWidth(339), +// // Gravity = Gravity.CenterVertical, +// // Width = Application.GetMinRealAverage(16), +// // Height = Application.GetMinRealAverage(16), +// // UnSelectedImagePath = "Public/Right.png", +// //}; +// //gestureUnlockDiv.AddChidren(btnGestureUnlockRightIcon); - var btnGestureUnlockkSwtichIcon = new Button() - { - X = Application.GetRealWidth(322), - Gravity = Gravity.CenterVertical, - Width = Application.GetMinRealAverage(38), - Height = Application.GetMinRealAverage(38), - UnSelectedImagePath = "Public/Switch_2.png", - SelectedImagePath = "Public/SwitchOn_2.png", - IsSelected = UserInfo.Current.appUnlockType.Contains("2") - }; - gestureUnlockDiv.AddChidren(btnGestureUnlockkSwtichIcon); +// var btnGestureUnlockkSwtichIcon = new Button() +// { +// X = Application.GetRealWidth(322), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetMinRealAverage(38), +// Height = Application.GetMinRealAverage(38), +// UnSelectedImagePath = "Public/Switch_2.png", +// SelectedImagePath = "Public/SwitchOn_2.png", +// IsSelected = UserInfo.Current.appUnlockType.Contains("2") +// }; +// gestureUnlockDiv.AddChidren(btnGestureUnlockkSwtichIcon); - btnGestureUnlockTitle = new Button() - { - X = Application.GetRealWidth(66), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.TextFontSize, - TextID = StringId.GestureUnlock, - }; - gestureUnlockDiv.AddChidren(btnGestureUnlockTitle); +// btnGestureUnlockTitle = new Button() +// { +// X = Application.GetRealWidth(66), +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// TextSize = CSS_FontSize.TextFontSize, +// TextID = StringId.GestureUnlock, +// }; +// gestureUnlockDiv.AddChidren(btnGestureUnlockTitle); - if (!UserInfo.Current.appUnlockType.Contains("1")) - { - unlockOptionView.AddChidren(new Button() - { - X = Application.GetRealWidth(16), - Width = Application.GetRealWidth(343), - Height = 1, - BackgroundColor = CSS_Color.BackgroundColor, - }); - } - #endregion +// if (!UserInfo.Current.appUnlockType.Contains("1")) +// { +// unlockOptionView.AddChidren(new Button() +// { +// X = Application.GetRealWidth(16), +// Width = Application.GetRealWidth(343), +// Height = 1, +// BackgroundColor = CSS_Color.BackgroundColor, +// }); +// } +// #endregion - #region 淇敼鎵嬪娍 - var resetGestureDiv = new FrameLayout() - { - Height = Application.GetRealHeight(50), - }; - if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("2")) - { - unlockOptionView.AddChidren(resetGestureDiv); - } - var btnGestureRightIcon = new Button() - { - X = Application.GetRealWidth(339), - Gravity = Gravity.CenterVertical, - Width = Application.GetMinRealAverage(16), - Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "Public/Right.png", - }; - resetGestureDiv.AddChidren(btnGestureRightIcon); +// #region 淇敼鎵嬪娍 +// var resetGestureDiv = new FrameLayout() +// { +// Height = Application.GetRealHeight(50), +// }; +// if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("2")) +// { +// unlockOptionView.AddChidren(resetGestureDiv); +// } +// var btnGestureRightIcon = new Button() +// { +// X = Application.GetRealWidth(339), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetMinRealAverage(16), +// Height = Application.GetMinRealAverage(16), +// UnSelectedImagePath = "Public/Right.png", +// }; +// resetGestureDiv.AddChidren(btnGestureRightIcon); - btnResetGestureTitle = new Button() - { - X = Application.GetRealWidth(66), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.TextFontSize, - TextID = StringId.ResetGesturePassword, - }; - resetGestureDiv.AddChidren(btnResetGestureTitle); +// btnResetGestureTitle = new Button() +// { +// X = Application.GetRealWidth(66), +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// TextSize = CSS_FontSize.TextFontSize, +// TextID = StringId.ResetGesturePassword, +// }; +// resetGestureDiv.AddChidren(btnResetGestureTitle); - if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("2")) - { - unlockOptionView.AddChidren(new Button() - { - X = Application.GetRealWidth(16), - Width = Application.GetRealWidth(343), - Height = 1, - BackgroundColor = CSS_Color.BackgroundColor, - }); - } - #endregion +// if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("2")) +// { +// unlockOptionView.AddChidren(new Button() +// { +// X = Application.GetRealWidth(16), +// Width = Application.GetRealWidth(343), +// Height = 1, +// BackgroundColor = CSS_Color.BackgroundColor, +// }); +// } +// #endregion - #region 鏌ヨ璁惧鏄惁鏀寔闈㈠ID锛屾寚绾笽D - TouchIDUtils.TouchIDSupperType type = TouchIDUtils.getTouchIDSupperType(); - if (type == TouchIDUtils.TouchIDSupperType.TouchID) - { - sTouchID = true; - MainPage.Log("KK锛氭敮鎸乀ouchID"); - } - else if (type == TouchIDUtils.TouchIDSupperType.FaceID) - { - sFaceID = true; - MainPage.Log("KK锛氭敮鎸丗aceID"); - } +// #region 鏌ヨ璁惧鏄惁鏀寔闈㈠ID锛屾寚绾笽D +// TouchIDUtils.TouchIDSupperType type = TouchIDUtils.getTouchIDSupperType(); +// if (type == TouchIDUtils.TouchIDSupperType.TouchID) +// { +// sTouchID = true; +// MainPage.Log("KK锛氭敮鎸乀ouchID"); +// } +// else if (type == TouchIDUtils.TouchIDSupperType.FaceID) +// { +// sFaceID = true; +// MainPage.Log("KK锛氭敮鎸丗aceID"); +// } - #endregion +// #endregion - #region 鎸囩汗瑙i攣 - fingerprintUnlockDiv = new FrameLayout() - { - Height = Application.GetRealHeight(51), - }; - if (sTouchID && UserInfo.Current.appUnlockPasswrod != "" && !UserInfo.Current.appUnlockType.Contains("4")) - { - unlockOptionView.AddChidren(fingerprintUnlockDiv); - } +// #region 鎸囩汗瑙i攣 +// fingerprintUnlockDiv = new FrameLayout() +// { +// Height = Application.GetRealHeight(51), +// }; +// if (sTouchID && UserInfo.Current.appUnlockPasswrod != "" && !UserInfo.Current.appUnlockType.Contains("4")) +// { +// unlockOptionView.AddChidren(fingerprintUnlockDiv); +// } - var btnFingerprintUnlockIcon = new Button() - { - X = Application.GetRealWidth(16), - Gravity = Gravity.CenterVertical, - Width = Application.GetRealWidth(32), - Height = Application.GetRealWidth(32), - UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/FingerprintIcon.png", - }; - fingerprintUnlockDiv.AddChidren(btnFingerprintUnlockIcon); +// var btnFingerprintUnlockIcon = new Button() +// { +// X = Application.GetRealWidth(16), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetRealWidth(32), +// Height = Application.GetRealWidth(32), +// UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/FingerprintIcon.png", +// }; +// fingerprintUnlockDiv.AddChidren(btnFingerprintUnlockIcon); - var btnFingerprintUnlockTitle = new Button() - { - X = Application.GetRealWidth(66), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.TextFontSize, - TextID = StringId.FingerprintUnlock, - }; - fingerprintUnlockDiv.AddChidren(btnFingerprintUnlockTitle); +// var btnFingerprintUnlockTitle = new Button() +// { +// X = Application.GetRealWidth(66), +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// TextSize = CSS_FontSize.TextFontSize, +// TextID = StringId.FingerprintUnlock, +// }; +// fingerprintUnlockDiv.AddChidren(btnFingerprintUnlockTitle); - btnFingerprintUnlockSwtichIcon = new Button() - { - X = Application.GetRealWidth(322), - Gravity = Gravity.CenterVertical, - Width = Application.GetMinRealAverage(38), - Height = Application.GetMinRealAverage(38), - UnSelectedImagePath = "Public/Switch_2.png", - SelectedImagePath = "Public/SwitchOn_2.png", - IsSelected = UserInfo.Current.appUnlockType.Contains("3") - }; - fingerprintUnlockDiv.AddChidren(btnFingerprintUnlockSwtichIcon); +// btnFingerprintUnlockSwtichIcon = new Button() +// { +// X = Application.GetRealWidth(322), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetMinRealAverage(38), +// Height = Application.GetMinRealAverage(38), +// UnSelectedImagePath = "Public/Switch_2.png", +// SelectedImagePath = "Public/SwitchOn_2.png", +// IsSelected = UserInfo.Current.appUnlockType.Contains("3") +// }; +// fingerprintUnlockDiv.AddChidren(btnFingerprintUnlockSwtichIcon); - fingerprintUnlockDiv.AddChidren(new Button() - { - X = Application.GetRealWidth(16), - Y = Application.GetRealHeight(50), - Width = Application.GetRealWidth(343), - Height = 1, - BackgroundColor = CSS_Color.BackgroundColor, - //Visible = sFaceID - }); +// fingerprintUnlockDiv.AddChidren(new Button() +// { +// X = Application.GetRealWidth(16), +// Y = Application.GetRealHeight(50), +// Width = Application.GetRealWidth(343), +// Height = 1, +// BackgroundColor = CSS_Color.BackgroundColor, +// //Visible = sFaceID +// }); - #endregion +// #endregion - #region 闈㈠ID瑙i攣 - faceIdUnlockDiv = new FrameLayout() - { - Height = Application.GetRealHeight(50), - }; - if (sFaceID && UserInfo.Current.appUnlockPasswrod != "" && !UserInfo.Current.appUnlockType.Contains("3")) - { - unlockOptionView.AddChidren(faceIdUnlockDiv); - } - var btnFaceIdUnlockIcon = new Button() - { - X = Application.GetRealWidth(16), - Gravity = Gravity.CenterVertical, - Width = Application.GetRealWidth(32), - Height = Application.GetRealWidth(32), - UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/FaceIdIcon.png", - }; - faceIdUnlockDiv.AddChidren(btnFaceIdUnlockIcon); +// #region 闈㈠ID瑙i攣 +// faceIdUnlockDiv = new FrameLayout() +// { +// Height = Application.GetRealHeight(50), +// }; +// if (sFaceID && UserInfo.Current.appUnlockPasswrod != "" && !UserInfo.Current.appUnlockType.Contains("3")) +// { +// unlockOptionView.AddChidren(faceIdUnlockDiv); +// } +// var btnFaceIdUnlockIcon = new Button() +// { +// X = Application.GetRealWidth(16), +// Gravity = Gravity.CenterVertical, +// Width = Application.GetRealWidth(32), +// Height = Application.GetRealWidth(32), +// UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/FaceIdIcon.png", +// }; +// faceIdUnlockDiv.AddChidren(btnFaceIdUnlockIcon); - var btnFaceIdUnlockTitle = new Button() - { - X = Application.GetRealWidth(66), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.TextFontSize, - TextID = StringId.FaceIdUnlock, - }; - faceIdUnlockDiv.AddChidren(btnFaceIdUnlockTitle); +// var btnFaceIdUnlockTitle = new Button() +// { +// X = Application.GetRealWidth(66), +// TextAlignment = TextAlignment.CenterLeft, +// TextColor = CSS_Color.FirstLevelTitleColor, +// TextSize = CSS_FontSize.TextFontSize, +// TextID = StringId.FaceIdUnlock, +// }; +// faceIdUnlockDiv.AddChidren(btnFaceIdUnlockTitle); - btnFaceIdUnlockSwtichIcon = new Button() - { - X = Application.GetRealWidth(322), - Gravity= Gravity.CenterVertical, - Width = Application.GetMinRealAverage(38), - Height = Application.GetMinRealAverage(38), - UnSelectedImagePath = "Public/Switch_2.png", - SelectedImagePath = "Public/SwitchOn_2.png", - IsSelected = UserInfo.Current.appUnlockType.Contains("4") - }; - faceIdUnlockDiv.AddChidren(btnFaceIdUnlockSwtichIcon); +// btnFaceIdUnlockSwtichIcon = new Button() +// { +// X = Application.GetRealWidth(322), +// Gravity= Gravity.CenterVertical, +// Width = Application.GetMinRealAverage(38), +// Height = Application.GetMinRealAverage(38), +// UnSelectedImagePath = "Public/Switch_2.png", +// SelectedImagePath = "Public/SwitchOn_2.png", +// IsSelected = UserInfo.Current.appUnlockType.Contains("4") +// }; +// faceIdUnlockDiv.AddChidren(btnFaceIdUnlockSwtichIcon); - #endregion +// #endregion - LoadEvet_SkipEventList(); +// //LoadEvet_SkipEventList(); - } +// } - } -} +// } +//} -- Gitblit v1.8.0