From efad979b6fae76fb37a4de7e94e6bac0a85cb72c Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 30 十一月 2021 13:14:28 +0800
Subject: [PATCH] 2021-11-30 1.修复乐橙Android,没调用拒接接口问题。

---
 HDL_ON/UI/UI0-Public/Widget/ListCellView.cs |  126 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 126 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/Widget/ListCellView.cs b/HDL_ON/UI/UI0-Public/Widget/ListCellView.cs
new file mode 100644
index 0000000..c7d3114
--- /dev/null
+++ b/HDL_ON/UI/UI0-Public/Widget/ListCellView.cs
@@ -0,0 +1,126 @@
+锘縰sing System;
+using HDL_ON.UI.CSS;
+using Shared;
+
+namespace HDL_ON.UI
+{
+    /// <summary>
+    /// 閫氱敤ListCellView
+    /// 鏀寔瀹氫箟 涓绘爣棰樸�佸壇鏍囬銆乬o鍥炬爣銆佷笅鍒掔嚎銆佺偣鍑讳簨浠�
+    /// </summary>
+    public class ListCellView : FrameLayout
+    {
+        /// <summary>
+        /// 鏍囬
+        /// </summary>
+        public Button BtnTilte;
+        /// <summary>
+        /// 鍓爣棰�
+        /// </summary>
+        public Button BtnSubtitle;
+        /// <summary>
+        /// 绠ご鍥炬爣
+        /// </summary>
+        public Button BtnGo;
+        /// <summary>
+        /// 鍒嗗壊绾�
+        /// </summary>
+        public LineView LineView;
+        /// <summary>
+        /// 鐐瑰嚮瑙﹀彂瀵逛簨浠�
+        /// </summary>
+        public Action GoAction;
+
+
+        /// <summary>
+        /// ListCellView 榛樿
+        /// </summary>
+        public ListCellView()
+        {
+            ShowView();
+        }
+
+        /// <summary>
+        /// ListCellView 鎸囧畾鍙傛暟
+        /// </summary>
+        /// <param name="tilteText"></param>
+        /// <param name="subtitleText"></param>
+        /// <param name="action"></param>
+        /// <param name="isShowImageBtn"></param>
+        public ListCellView(string tilteText, string subtitleText, Action action, bool isShowImageBtn = true)
+        {
+
+            ShowView(tilteText, subtitleText, action, isShowImageBtn);
+        }
+
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="tilteText"></param>
+        /// <param name="subtitleText"></param>
+        /// <param name="action"></param>
+        /// <param name="isShowImageBtn"></param>
+        void ShowView(string tilteText = "", string subtitleText = "", Action action = null, bool isShowImageBtn = true)
+        {
+            this.BackgroundColor = CSS_Color.MainBackgroundColor;
+            this.Height = Application.GetRealHeight(50);
+            this.GoAction = action;
+            /// <summary>
+            /// 鏍囬
+            /// </summary>
+            BtnTilte = new Button()
+            {
+                X = Application.GetRealWidth(16),
+                Width = Application.GetRealWidth(220),
+                TextAlignment = TextAlignment.CenterLeft,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                TextSize = CSS_FontSize.SubheadingFontSize,
+                Text = tilteText,
+            };
+            this.AddChidren(BtnTilte);
+            /// <summary>
+            /// 鍓爣棰�
+            /// </summary>
+            BtnSubtitle = new Button()
+            {
+                X = Application.GetRealWidth(100),
+                Width = Application.GetRealWidth(230),
+                TextAlignment = TextAlignment.CenterRight,
+                TextColor = CSS_Color.PromptingColor1,
+                TextSize = CSS_FontSize.TextFontSize,
+                Text = subtitleText,
+
+            };
+            this.AddChidren(BtnSubtitle);
+
+            /// <summary>
+            /// 鍓嶈繘鍥炬爣
+            /// </summary>
+            BtnGo = new Button()
+            {
+                X = Application.GetRealWidth(339),
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetMinRealAverage(16),
+                Height = Application.GetMinRealAverage(16),
+                UnSelectedImagePath = "Public/Right.png",
+            };
+
+            if (isShowImageBtn)
+            {
+                this.AddChidren(BtnGo);
+            }
+
+            LineView = new LineView(this.Height);
+            this.AddChidren(LineView);
+
+            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
+            {
+                GoAction?.Invoke();
+            };
+            BtnTilte.MouseUpEventHandler = eventHandler;
+            BtnSubtitle.MouseUpEventHandler = eventHandler;
+            BtnGo.MouseUpEventHandler = eventHandler;
+
+        }
+    }
+}

--
Gitblit v1.8.0