From f222fb8ae7d265f094922f31970e1e805672ee01 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 17 十月 2023 16:53:55 +0800
Subject: [PATCH] 2023年10月17日16:53:42
---
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs | 30 ++++++++++++++++++++++--------
1 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
index c357a73..15f7d9f 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
@@ -6,19 +6,31 @@
{
public class TypeSingleFramLayout
{
+ /// <summary>
+ /// 鏄惁鍙互鐐瑰嚮
+ /// </summary>
+ private bool mIsClick = true;
+ /// <summary>
+ /// 璁剧疆鎺у埗鐐瑰嚮浜嬩欢
+ /// </summary>
+ /// <param name="isClick">false鐐瑰嚮鏃犳晥</param>
+ public void setClick(bool isClick)
+ {
+ this.mIsClick = isClick;
+ }
private uint UpBackgroundColor = MusicColor.ViewColor;
- private uint DownBackgroundColor = 0xff454635;
+ private uint DownBackgroundColor = AksCommonMethod.seleBackgroundColor;
/// <summary>
/// 鍗曚釜绫诲瀷瀹瑰櫒
/// </summary>
public FrameLayout singleFramLayout = new FrameLayout
{
BackgroundColor = MusicColor.ViewColor,
- Gravity = Gravity.CenterHorizontal,
+ //Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(101),
- Height = Application.GetRealHeight(40),
- Radius = (uint)Application.GetRealHeight(20),
+ Height = Application.GetRealHeight(34),//40
+ Radius = (uint)Application.GetRealHeight(17),
};
public Button btnLeftImage = new Button
@@ -42,6 +54,7 @@
TextAlignment = TextAlignment.Center,
Gravity = Gravity.CenterVertical,
IsMoreLines = true,
+ Padding=new Padding(0,0,0,0),
Name = "btnName",
};
@@ -87,8 +100,9 @@
{
EventHandler<MouseEventArgs> UpClick = (sender, e) =>
{
- singleFramLayout.BackgroundColor = this.UpBackgroundColor;
-
+ action?.Invoke(singleFramLayout);
+ //singleFramLayout.BackgroundColor = this.UpBackgroundColor;
+
//寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
};
singleFramLayout.MouseUpEventHandler += UpClick;
@@ -99,8 +113,8 @@
EventHandler<MouseEventArgs> DownClick = (sender, e) =>
{
//鎸変笅鍘绘敼鍙樿儗鏅鑹�
- singleFramLayout.BackgroundColor = this.DownBackgroundColor;
- action?.Invoke(singleFramLayout);
+ //singleFramLayout.BackgroundColor = this.DownBackgroundColor;
+
};
singleFramLayout.MouseDownEventHandler += DownClick;
btnLeftImage.MouseDownEventHandler += DownClick;
--
Gitblit v1.8.0