From 4addd1dc37f167e2000c31c7b623ba45b01d77ec Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 19 十一月 2021 17:11:20 +0800
Subject: [PATCH] 1
---
HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs | 63 +++++++++++++++++++++++++++++++
1 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs b/HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs
new file mode 100644
index 0000000..eaa8bf6
--- /dev/null
+++ b/HDL_ON/UI/UI0-Public/Widget/EmptyTipView.cs
@@ -0,0 +1,63 @@
+锘縰sing System;
+using HDL_ON.UI.CSS;
+using Shared;
+
+namespace HDL_ON.UI
+{
+ /// <summary>
+ /// 閫氱敤鎻愮ずView--鍐呭涓虹┖
+ /// 绌虹┖濡備篃
+ /// </summary>
+ public class EmptyTipView : FrameLayout
+ {
+ /// <summary>
+ /// 鎻愮ず鏂囧瓧
+ /// </summary>
+ public Button BtnTipNotText;
+
+ /// <summary>
+ /// 鎻愮ず鍥剧墖
+ /// </summary>
+ public Button BtnTipNot;
+
+ /// <summary>
+ ///
+ /// </summary>
+ public EmptyTipView(string tipMsg ="",int btnTipNotY=0)
+ {
+ if(tipMsg == "")
+ {
+ tipMsg = Language.StringByID(StringId.ContentIsEmpty);
+ }
+ int tipHeight = Application.GetRealWidth(180 + btnTipNotY);
+
+ this.Height = tipHeight + Application.GetRealHeight(17 +30);
+
+ BtnTipNot = new Button()
+ {
+ Gravity = Gravity.CenterHorizontal,
+ Width = Application.GetRealWidth(180),
+ Height = Application.GetRealWidth(180),
+ UnSelectedImagePath = "TipNot.png",
+ };
+ this.AddChidren(BtnTipNot);
+ if(btnTipNotY!=0)
+ {
+ BtnTipNot.Y = Application.GetRealHeight(btnTipNotY);
+ }
+
+ //绌虹┖濡備篃
+ Button btnTipNotText = new Button()
+ {
+ Y = tipHeight + Application.GetRealHeight(10),
+ Height = Application.GetRealHeight(17),
+ Text = tipMsg,
+ TextAlignment = TextAlignment.Center,
+ TextColor = CSS_Color.TextualColor,
+ TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+ };
+ this.AddChidren(btnTipNotText);
+ }
+
+ }
+}
--
Gitblit v1.8.0