黄学彪
2021-01-28 1fcf2302f79f9cbea5ef17c3688311ed65cfabb4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Shared;
using HDL_ON.UI.CSS;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace HDL_ON.Stan
{
    /// <summary>
    /// 做成一个存在于BodyFrameLayout底部进行单击的按钮✩
    /// </summary>
    public class BottomClickButton : ButtonCtrBase
    {
        /// <summary>
        /// Y轴坐标
        /// </summary>
        public int Yaxis = 0;
 
        /// <summary>
        /// 做成一个存在于BodyFrameLayout底部进行单击的按钮
        /// </summary>
        /// <param name="i_width">有些界面很特殊,不统一按键宽度,所以预留此参数</param>
        public BottomClickButton(int i_width = 188)
        {
            this.Yaxis = Application.GetRealHeight(539);
 
            //这个是一般位置
            this.Y = this.Yaxis;
            this.Width = Application.GetRealWidth(i_width);
            this.Height = Application.GetRealHeight(44);
            this.TextAlignment = TextAlignment.Center;
            this.TextColor = CSS_Color.MainBackgroundColor;
            this.Gravity = Gravity.CenterHorizontal;
            this.Radius = (uint)Application.GetRealHeight(44) / 2;
            this.TextSize = CSS_FontSize.SubheadingFontSize;
            this.IsBold = true;
        }
    }
}