From eda3fb873e59544ff36301b51e05aef64f87b0f9 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 27 八月 2021 13:21:21 +0800
Subject: [PATCH] Merge branch 'newBranch1' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into newBranch1
---
HDL_ON/UI/UI0-Public/Widget/ConfirmButton.cs | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI0-Public/Widget/ConfirmButton.cs b/HDL_ON/UI/UI0-Public/Widget/ConfirmButton.cs
index 32b2f6e..585e366 100644
--- a/HDL_ON/UI/UI0-Public/Widget/ConfirmButton.cs
+++ b/HDL_ON/UI/UI0-Public/Widget/ConfirmButton.cs
@@ -25,4 +25,38 @@
}
}
+
+ public class BottomViewConfirmButton
+ {
+ public void LoadView(FrameLayout bodyView,EventHandler<MouseEventArgs> eventHandler,string confirmText)
+ {
+ var bottomView = new FrameLayout()
+ {
+ Y = Application.GetRealHeight(591),
+ Height = Application.GetRealHeight(76) + Application.GetRealWidth(44),
+ Radius = (uint)Application.GetRealWidth(22),
+ BackgroundColor = CSS_Color.MainBackgroundColor,
+ };
+ bodyView.AddChidren(bottomView);
+
+ var btnConfrim = new Button()
+ {
+ Gravity = Gravity.CenterHorizontal,
+ Y = Application.GetRealHeight(12),
+ Width = Application.GetRealWidth(220),
+ Height = Application.GetRealWidth(44),
+ Radius = (uint)Application.GetRealWidth(22),
+ BackgroundColor = CSS_Color.MainColor,
+ TextColor = CSS_Color.MainBackgroundColor,
+ TextSize = CSS_FontSize.SubheadingFontSize,
+ TextAlignment = TextAlignment.Center,
+ IsBold = true,
+ Text = confirmText,
+ };
+ bottomView.AddChidren(btnConfrim);
+
+ btnConfrim.MouseUpEventHandler = eventHandler;
+ }
+
+ }
}
--
Gitblit v1.8.0