陈嘉乐
2020-06-10 a7d20263f28aa009ef8e064a7f9700d7cd642492
HDL_ON/UI/Music/View/MusicView.cs
@@ -12,6 +12,7 @@
        {
            Height = Application.GetRealHeight(12 + 139),
            Width = Application.GetRealWidth(375),
        };
        /// <summary>
        ///白色背景的控件
@@ -23,6 +24,7 @@
            Height = Application.GetRealHeight(139),
            Width = Application.GetRealWidth(375 - 16 * 2),
            BackgroundColor = Color.WhiteColor,
            Radius= (uint)Application.GetRealHeight(12),
        };
        /// <summary>
        ///显示音乐状态图标
@@ -45,6 +47,7 @@
            Width = Application.GetRealWidth(70),
            Height = Application.GetRealHeight(25),
            BackgroundColor = Color.ViewColor,
            Radius = (uint)Application.GetRealHeight(12),
        };
        /// <summary>
        ///组合图标
@@ -65,7 +68,7 @@
            TextID=StringId.merge,
            X = Application.GetRealWidth(214 + 33),
            Y = Application.GetRealHeight(18 + 4),
            Width = Application.GetRealWidth(24),
            Width = Application.GetRealWidth(24+3),
            Height = Application.GetRealHeight(17),
            TextColor = Color.TextColor,
            TextSize=TextSize.Text12,
@@ -138,6 +141,16 @@
            TextAlignment = TextAlignment.CenterLeft,
        };
        /// <summary>
        /// 点击事件
        /// </summary>
        public Button clickBtn = new Button
        {
            Width = Application.GetRealWidth(130),
            Height = Application.GetRealHeight(139),
        };
        /// <summary>
        /// 上一曲
        /// </summary>
@@ -191,12 +204,11 @@
            musicIfonFl.AddChidren(singerBtn);
            musicIfonFl.AddChidren(musicNameBtn);
            musicIfonFl.AddChidren(regionBtn);
            musicIfonFl.AddChidren(clickBtn);
            musicIfonFl.AddChidren(prevBtn);
            musicIfonFl.AddChidren(playBtn);
            musicIfonFl.AddChidren(nextBtn);
            musicIfonFl.SetCornerWithSameRadius(Application.GetRealHeight(12), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight | HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight);
            mergeBjBtn.SetCornerWithSameRadius(Application.GetRealHeight(12), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight | HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight);
        }
    }
}