陈嘉乐
2020-12-03 0f2e0147e8990e913d16d99bc1b94fb6bc53abd7
HDL_ON/UI/UI0-Public/Widget/LineView.cs
New file
@@ -0,0 +1,34 @@
using System;
using Shared;
using HDL_ON.UI.CSS;
namespace HDL_ON.UI
{
    /// <summary>
    /// 通用LineView
    /// 分割线View
    /// </summary>
    public class LineView : FrameLayout
    {
        //public LineView()
        //{
        //    X = Application.GetRealWidth(16);
        //    Height = Application.GetRealHeight(1);
        //    Width = Application.GetRealWidth(343);
        //    BackgroundColor = CSS_Color.DividingLineColor;
        //}
        /// <summary>
        ///
        /// </summary>
        /// <param name="parentHeight"></param>
        public LineView(int parentHeight)
        {
            X = Application.GetRealWidth(16);
            Height = Application.GetRealHeight(1);
            Width = Application.GetRealWidth(343);
            BackgroundColor = CSS_Color.DividingLineColor;
            Y = parentHeight - Height;
        }
    }
}