黄学彪
2020-06-10 dce6c3481a37216292724013ff9d2b75ceb82f86
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ClickButtonControls/BottomLeftClickButton.cs
@@ -7,7 +7,7 @@
    /// <summary>
    /// 位于左下角的单击控件
    /// </summary>
    public class BottomLeftClickButton : FrameLayoutControl
    public class BottomLeftClickButton : FrameLayoutStatuControl
    {
        #region ■ 变量声明___________________________
@@ -42,14 +42,14 @@
        /// <param name="i_width">宽度,真实值</param>
        /// <param name="i_height">高度,真实值</param>
        /// <param name="i_radius">圆角度(只对安卓有效)</param>
        public BottomLeftClickButton(int i_width, int i_height, uint i_radius = 8)
        public BottomLeftClickButton(int i_width, int i_height, int i_radius = 17)
        {
            this.Height = i_height;
            this.Width = i_width;
            this.Gravity = Gravity.BottomLeft;
#if Android
            this.Radius = i_radius;
            this.RadiusEx = i_radius;
#endif
        }
@@ -65,12 +65,12 @@
            //把上圆角覆盖为方角
            this.btnTopTemp = new NormalViewControl(this.Width, Application.GetRealHeight(40), false);
            btnTopTemp.BackgroundColor = i_backColor;
            this.AddChidren(btnTopTemp, ChidrenBindMode.BindEventOnly);
            this.AddChidren(btnTopTemp, ChidrenBindMode.BindEvent);
            //把右下圆角覆盖为方角
            this.btnBomTemp = new NormalViewControl(this.Width / 2, Application.GetRealHeight(40), false);
            btnBomTemp.BackgroundColor = i_backColor;
            btnBomTemp.Gravity = Gravity.BottomRight;
            this.AddChidren(btnBomTemp, ChidrenBindMode.BindEventOnly);
            this.AddChidren(btnBomTemp, ChidrenBindMode.BindEvent);
            //取消按钮
            this.btnButton = new NormalViewControl(this.Width - Application.GetRealWidth(10), Application.GetRealHeight(60), false);
            btnButton.Gravity = Gravity.Center;
@@ -78,7 +78,7 @@
            btnButton.Text = i_text;
            btnButton.TextAlignment = TextAlignment.Center;
            btnButton.BackgroundColor = i_backColor;
            this.AddChidren(btnButton, ChidrenBindMode.BindEventOnly);
            this.AddChidren(btnButton, ChidrenBindMode.BindEvent);
            //重写控件点击状态
            this.SelectStatuEvent += (statu) =>
@@ -108,7 +108,7 @@
            btnButton.TextAlignment = TextAlignment.Center;
            btnButton.BackgroundColor = i_backColor;
            btnButton.oldBackgroundColor = i_backColor;
            this.AddChidren(btnButton, ChidrenBindMode.BindEventOnly);
            this.AddChidren(btnButton, ChidrenBindMode.BindEvent);
#endif
        }