From 5bd5cdbae1d22b5e14e6933b807ed97b89807b6f Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期三, 18 十月 2023 19:33:20 +0800 Subject: [PATCH] 2023年10月18日19:32:41 --- HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/BaseFramLayout.cs | 71 ++++++++++++++++++++++++++++++++++- 1 files changed, 69 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/BaseFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/BaseFramLayout.cs index 72a5ba3..c5eb0cc 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/BaseFramLayout.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/BaseFramLayout.cs @@ -16,10 +16,24 @@ /// 璁剧疆鎺у埗鐐瑰嚮浜嬩欢 /// </summary> /// <param name="isClick">false鐐瑰嚮鏃犳晥</param> - public void setClick(bool isClick) + public void SetClick(bool isClick) { this.mIsClick = isClick; } + /// <summary> + /// 璁剧疆鎺у埗鐐瑰嚮浜嬩欢 + /// </summary> + /// <param name="isClick">false鐐瑰嚮鏃犳晥</param> + public bool GetClick() + { + return this.mIsClick; + } + + /// <summary> + /// 寤舵椂鏃堕棿ms + /// </summary> + private const int millisecondsTimeout = 100; + /// <summary> /// 璋冩暣鐪熷疄楂樺害 /// </summary> @@ -60,8 +74,61 @@ } return bottomHeight; } + /// <summary> + /// 璁剧疆楂樹寒棰滆壊 + /// </summary> + /// <param name="view">缁勪欢</param> + public void SetHighlightBackground(View view) + { + if (view == null) + { + return; + } + //鎸変笅鍘绘敼鍙樿儗鏅鑹� + view.BackgroundColor = AksCommonMethod.seleBackgroundColor; + new System.Threading.Thread(() => + { + System.Threading.Thread.Sleep(millisecondsTimeout); + Application.RunOnMainThread(() => + { + //寮硅捣鏉ヨ繕鍘熻儗鏅鑹� + view.BackgroundColor = 0x00000000; + }); + }) + { IsBackground = true }.Start(); - + } + + /// <summary> + /// 璁剧疆Button涓撶敤 + /// </summary> + /// <param name="button">缁勪欢</param> + public void SetButtonIsSelected(Button button) + { + if (button == null) + { + return; + } + //鎸変笅鍘绘敼鍙樿儗鏅鑹� + button.IsSelected =true; + new System.Threading.Thread(() => + { + System.Threading.Thread.Sleep(millisecondsTimeout); + Application.RunOnMainThread(() => + { + //寮硅捣鏉ヨ繕鍘熻儗鏅鑹� + button.IsSelected=false; + }); + }) + { IsBackground = true }.Start(); + + } + + + + + + } -- Gitblit v1.8.0