From 0bdc0a135dbe31761b53f432ed34f347f0a4e36b Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 05 三月 2020 10:49:41 +0800 Subject: [PATCH] 20200304 --- Shared.IOS/UI/RowLayout.cs | 59 ++++++----------------------------------------------------- 1 files changed, 6 insertions(+), 53 deletions(-) diff --git a/Shared.IOS/UI/RowLayout.cs b/Shared.IOS/UI/RowLayout.cs index 66462e2..7217085 100644 --- a/Shared.IOS/UI/RowLayout.cs +++ b/Shared.IOS/UI/RowLayout.cs @@ -19,10 +19,6 @@ /// 鍙宠竟鐨勮鍥惧垪琛� /// </summary> internal System.Collections.Generic.List<Button> rigthView = new System.Collections.Generic.List<Button>(); - /// <summary> - /// 涓嬮潰閭h竟寮� - /// </summary> - UIView lineUIView = new UIView(); /// <summary> /// 閲嶆柊鍒锋柊鎺т欢 @@ -30,7 +26,6 @@ public override void Refresh() { base.Refresh(); - LineColor = lineColor; } /// <summary> /// 鎺т欢瀹藉害 @@ -41,16 +36,12 @@ { return base.Width; } - set - { - base.Width = value; - if (!IsCanRefresh) - return; - - var frame4 = lineUIView.Frame; - frame4.Width = base.Width; - lineUIView.Frame = frame4; - } + set + { + base.Width = value; + if (!IsCanRefresh) + return; + } } /// <summary> @@ -79,37 +70,6 @@ frame.Height = Height; realViewGroup.Frame = frame; } - - var frame4 = lineUIView.Frame; - frame4.Y = base.Height - frame4.Height; - lineUIView.Frame = frame4; - } - } - - uint lineColor = 0x80818181; - /// <summary> - /// 鑳屾櫙棰滆壊 - /// </summary> - /// <value>The color of the background.</value> - public virtual uint LineColor - { - get - { - return lineColor; - } - set - { - lineColor = value; - if (!IsCanRefresh) - { - return; - } - byte r, g, b, a; - r = (byte)(lineColor / 256 / 256 % 256); - g = (byte)(lineColor / 256 % 256); - b = (byte)(lineColor % 256); - a = (byte)(lineColor / 256 / 256 / 256 % 256); - lineUIView.BackgroundColor = UIKit.UIColor.FromRGBA(r, g, b, a); } } @@ -190,14 +150,7 @@ viewGroup.AddSubview(realViewGroup); viewGroup.Layer.MasksToBounds = true; - lineUIView.BackgroundColor = new UIColor(0x81 / 255.0f, 0x81 / 255.0f, 0x81 / 255.0f, 0.8f); - var lineUIViewFrame = lineUIView.Frame; - lineUIViewFrame.Height = 1.0f; - lineUIView.Frame = lineUIViewFrame; - viewGroup.AddSubview(lineUIView); - (viewGroup as UIScrollView).ShowsHorizontalScrollIndicator = false;//闅愯棌姘村钩婊氬姩鏉� - } -- Gitblit v1.8.0