mac
2023-09-01 0a11352dffeb8d5f31dd40b9728fe1abf4537f04
HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTvPage.cs
@@ -15,7 +15,7 @@
    {
        #region ■ 变量声明___________________________
        #region   -------变量声明---------
        /// <summary>
        /// 设备
        /// </summary>
@@ -29,10 +29,16 @@
        /// </summary>
        private Button btnRoomName;
        /// <summary>
        /// 上一级界面的收藏控件
        /// </summary>
        private Button btnCollectionIcon;
        /// <summary>
        /// 头部布局
        /// </summary>
        private TopView topView;
        BaseFramLayout baseCloseFFL;
        /// <summary>
        ///中部布局
        /// </summary>
        VerticalScrolViewLayout vv;
        /// <summary>
        /// 当前设备名称
@@ -47,10 +53,11 @@
        /// </summary>
        private Button btnOpenCollectIcon;
        CustomFrameLayout shouyeFL;
        CustomFrameLayout kaiguanFL;
        CustomFrameLayout caidanFL;
        CustomFrameLayout kaijiFL;
        CustomFrameLayout guanFL;
        Button btn_jia;
        Button btn_jian;
        CustomButton caidanBtn;
        CustomButton bofangBtn;
        CustomButton zantingBtn;
        CustomButton kuaijinBtn;
@@ -61,12 +68,6 @@
        CustomButton fanhuiBtn;
        MenuFramLayout muenFrameLayout;
        SourceFrameLayout sourceFrameLayout;
        Button btnCloseCollectIcon;
        Button btnCloseCurrDeviceName;
        Button btnCloseCurrDeviceRoom;
        Button clickBtn;
        /// <summary>
        /// 表示来自那个界面
@@ -83,14 +84,16 @@
        /// </summary>
        /// <param name="function">设备</param>
        /// <param name="btnDeviceName">上一级界面的设备名字控件(注:不能传null,没有可以传new Button())</param>
        /// <param name="btnRoomName">上一级界面的房间名字控件(注:不能传null,没有可以传new Button())</param>
        public HisenseTvPage(Function function, Button btnDeviceName, Button btnRoomName, CommonMethod.Comerom comerom, Action action)
        /// <param name="btnRoomName">上一级界面的房间名字控件(注:不能传null,没有可以传new Button())</param>
        /// <param name="btnCollectionIcon">上一级界面的房间名字控件(注:不能传null,没有可以传new Button())</param>
        public HisenseTvPage(Function function, Button btnDeviceName, Button btnRoomName, Button btnCollectionIcon, CommonMethod.Comerom comerom, Action action)
        {
            this.device = function;
            this.btnDeviceName = btnDeviceName;
            this.btnRoomName = btnRoomName;
            this.btnCollectionIcon = btnCollectionIcon;
            this.comerom = comerom;
            this.action = action;
            this.action = action;
        }
@@ -99,12 +102,10 @@
            //初始化UI
            this.InitTopUI();
            this.InitOpenUI();
            this.InitCloseUI();
            this.CurrentAssignPage();
            //初始化事件
            this.EventListener();
            //读取数据
            this.ReadData();
            //this.ReadData();
        }
@@ -136,9 +137,6 @@
                        //
                        this.btnOpenCurrDeviceName.Text = this.device.name;
                        this.btnOpenCurrDeviceRoom.Text = this.device.GetRoomListName();
                        //
                        this.btnCloseCurrDeviceName.Text = this.device.name;
                        this.btnCloseCurrDeviceRoom.Text = this.device.GetRoomListName();
                        this.CalculatedPosition();//重新计算宽度
                    });
@@ -159,67 +157,150 @@
            {
                btnOpenCollectIcon.IsSelected = this.device.collect = !btnOpenCollectIcon.IsSelected;
                this.device.CollectFunction();
                this.btnCollectionIcon.IsSelected = btnOpenCollectIcon.IsSelected;
            };
            //首页
            shouyeFL.SetClickListener((fl, btnImage, btnText) => { });
            //关机
            kaiguanFL.SetClickListener((fl, btnImage, btnText) =>
            shouyeFL.SetClickListener((fl, btnImage, btnText) =>
            {
                vv.Visible = false;
                baseCloseFFL.Visible = true;
                ControlCommand(HisenseTVFunctionalAttributeConstant.home_page, "");
            });
            //菜单
            caidanFL.SetClickListener((fl, btnImage, btnText) => { });
            //开机
            kaijiFL.SetClickListener((fl, btnImage, btnText) =>
            {
                //Send.Current.Open("b7686438");
                ControlCommand(HisenseTVFunctionalAttributeConstant.on_off, "on");
            });
            //关机
            guanFL.SetClickListener((fl, btnImage, btnText) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.on_off, "off");
            });
            //音量+
            btn_jia.MouseDownEventHandler += (sender, e) => { };
            btn_jia.MouseDownEventHandler += (sender, e) =>
            {
                btn_jia.IsSelected = true;
                ControlCommand(HisenseTVFunctionalAttributeConstant.volume_add, "");
            };
            //音量-
            btn_jian.MouseDownEventHandler += (sender, e) => { };
            btn_jian.MouseDownEventHandler += (sender, e) =>
            {
                btn_jian.IsSelected = true;
                ControlCommand(HisenseTVFunctionalAttributeConstant.volume_subtract, "");
            };
            //菜单
           caidanBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "11");
            });
            //播放
            bofangBtn.SetClickListener((btn) => { });
            bofangBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.media_play, "");
            });
            //暂停
            zantingBtn.SetClickListener((btn) => { });
            zantingBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.media_pause, "");
            });
            //快进
            kuaijinBtn.SetClickListener((btn) => { });
            kuaijinBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.fast_forward, "");
            });
            //快退
            kauituiBtn.SetClickListener((btn) => { });
            kauituiBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.fast_back, "");
            });
            //静音
            jingyinBtn.SetClickListener((btn) => { });
            jingyinBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.mute, "1");
            });
            //设置
            shezhiBtn.SetClickListener((btn) => { });
            shezhiBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.system_setting, "");
            });
            //解除静音
            jiechujingyinBtn.SetClickListener((btn) => { });
            jiechujingyinBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.mute, "0");
            });
            //返回
            fanhuiBtn.SetClickListener((btn) => { });
            //控制菜单
            fanhuiBtn.SetClickListener((btn) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "5");
            });
            //上
            muenFrameLayout.SetTopClickListener((muen) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "0");
            });
            //下
            muenFrameLayout.SetBottomClickListener((muen) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "1");
            });
            //左
            muenFrameLayout.SetLeftClickListener((muen) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "2");
            });
            //右
            muenFrameLayout.SetRightClickListener((muen) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "3");
            });
            //OK
            muenFrameLayout.SetOkClickListener((muen) =>
            {
                ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "4");
            });
            //信号源
            sourceFrameLayout.selectAction += (text) =>
            sourceFrameLayout.selectAction += (key) =>
            {
            };
            //收藏(关机)
            this.btnCloseCollectIcon.MouseUpEventHandler += (sender, e) =>
            {
                btnCloseCollectIcon.IsSelected = this.device.collect = !btnCloseCollectIcon.IsSelected;
                this.device.CollectFunction();
            };
            //开机
            clickBtn.MouseDownEventHandler += (sen, e) =>
            {
                vv.Visible = true;
                baseCloseFFL.Visible = false;
                var p = new UI2.Intelligence.Automation.PublicInterface();
                var dic = p.GetHisenseSignalSourceDic();
                string value = p.GetValue(dic, key);
                ControlCommand(HisenseTVFunctionalAttributeConstant.signal, value);
            };
        }
        /// <summary>
        /// 初始数据
        /// 发送控制属性指令
        /// </summary>
        /// <param name="key">功能属性(语雀上定义的)</param>
        /// <param name="value">值</param>
        /// <param name="action">结果回调(默认不回调)</param>
        private void ControlCommand(string key, string value, Action<bool> action = null)
        {
            try
            {
                Dictionary<string, string> dic = new Dictionary<string, string>();
                dic.Add(key, value);
                Send.Current.SendControlCommand(this.device, dic, action);
            }
            catch { }
        }
        /// <summary>
        /// 初始化数据
        /// </summary>
        private void ReadData()
        {
@@ -242,6 +323,8 @@
                }
            });
        }
        #region   -------界面布局---------
        /// <summary>
        /// 初始化【开机】界面
        /// </summary>
@@ -316,32 +399,36 @@
            shouyeFL.AddImageView();
            shouyeFL.AddTextButtonView();
            shouyeFL.GetImageButton().UnSelectedImagePath = "HisenseTv/shouye.png";
            shouyeFL.GetTextButton().Text = "首页";
            shouyeFL.GetImageButton().SelectedImagePath = "HisenseTv/shouyeSelected.png";
            shouyeFL.GetTextButton().TextID = StringId.shouye;
            kaiguanFL = new CustomFrameLayout();
            backgroundOpenFl.AddChidren(kaiguanFL);
            kaiguanFL.X = shouyeFL.Right + Application.GetRealWidth(37);
            kaiguanFL.Y = yHeight;
            kaiguanFL.AddImageView();
            kaiguanFL.AddTextButtonView();
            kaiguanFL.GetImageButton().UnSelectedImagePath = "HisenseTv/kaiguan.png";
            kaiguanFL.GetTextButton().Text = "关机";
            kaijiFL = new CustomFrameLayout();
            backgroundOpenFl.AddChidren(kaijiFL);
            kaijiFL.X = shouyeFL.Right + Application.GetRealWidth(37);
            kaijiFL.Y = yHeight;
            kaijiFL.AddImageView();
            kaijiFL.AddTextButtonView();
            kaijiFL.GetImageButton().UnSelectedImagePath = "HisenseTv/kai.png";
            kaijiFL.GetImageButton().SelectedImagePath = "HisenseTv/kaiguanSelected.png";
            kaijiFL.GetTextButton().TextID = StringId.kaiji;
            caidanFL = new CustomFrameLayout();
            backgroundOpenFl.AddChidren(caidanFL);
            caidanFL.X = kaiguanFL.Right + Application.GetRealWidth(37);
            caidanFL.Y = yHeight;
            caidanFL.AddImageView();
            caidanFL.AddTextButtonView();
            caidanFL.GetImageButton().UnSelectedImagePath = "HisenseTv/caidan.png";
            caidanFL.GetTextButton().Text = "菜单";
            guanFL = new CustomFrameLayout();
            backgroundOpenFl.AddChidren(guanFL);
            guanFL.X = kaijiFL.Right + Application.GetRealWidth(37);
            guanFL.Y = yHeight;
            guanFL.AddImageView();
            guanFL.AddTextButtonView();
            guanFL.GetImageButton().UnSelectedImagePath = "HisenseTv/guan.png";
            guanFL.GetImageButton().SelectedImagePath = "HisenseTv/kaiguanSelected.png";
            //guanFL.GetImageButton().UnSelectedImagePath = "HisenseTv/caidan.png";
            guanFL.GetTextButton().TextID = StringId.guanji;
            var yinliangFL = new FrameLayout();
            backgroundOpenFl.AddChidren(yinliangFL);
            yinliangFL.Height = Application.GetRealHeight(200);
            yinliangFL.Height = Application.GetRealHeight(146);
            yinliangFL.Width = Application.GetRealWidth(68);
            yinliangFL.Y = shouyeFL.Bottom + Application.GetRealHeight(24);
            yinliangFL.Y = Application.GetRealHeight(260);
            yinliangFL.X = shouyeFL.X;
            yinliangFL.BackgroundColor = 0xffF2F3F7;
            yinliangFL.Radius = (uint)Application.GetRealHeight(34);
@@ -351,16 +438,18 @@
                Width = Application.GetRealWidth(32),
                Height = Application.GetRealWidth(32),
                UnSelectedImagePath = "HisenseTv/yingliangjia.png",
                Y = Application.GetRealHeight(20),
                SelectedImagePath = "HisenseTv/yingliangjiaSelected.png",
                Y = Application.GetRealHeight(16),
                Gravity = Gravity.CenterHorizontal,
            };
            yinliangFL.AddChidren(btn_jia);
            Button btnText = new Button
            {
                Y = Application.GetRealHeight(90),
                Y = Application.GetRealHeight(63),
                Height = Application.GetRealHeight(20),
                Text = "音量",
                //Text = "音量",
                TextID = StringId.yinliang,
                TextColor = MusicColor.TextColor,
                TextSize = TextSize.Text14,
                Gravity = Gravity.CenterHorizontal,
@@ -369,48 +458,55 @@
            yinliangFL.AddChidren(btnText);
            btn_jian = new Button
            {
                Y = Application.GetRealHeight(148),
                Y = Application.GetRealHeight(98),
                Width = Application.GetRealWidth(32),
                Height = Application.GetRealWidth(32),
                UnSelectedImagePath = "HisenseTv/yingliangjian.png",
                SelectedImagePath = "HisenseTv/yingliangjianSelected.png",
                Gravity = Gravity.CenterHorizontal,
            };
            yinliangFL.AddChidren(btn_jian);
            btn_jia.MouseUpEventHandler += (sender, e) =>
            {
                btn_jia.IsSelected = false;
            };
            btn_jian.MouseUpEventHandler += (sender, e) =>
            {
                btn_jian.IsSelected = false;
            };
            caidanBtn = new CustomButton();
            caidanBtn.TextID = StringId.caidan;
            caidanBtn.Y = shouyeFL.Bottom + Application.GetRealHeight(24);
            caidanBtn.X = shouyeFL.X;
            backgroundOpenFl.AddChidren(caidanBtn);
            bofangBtn = new CustomButton();
            bofangBtn.Text = "播放";
            bofangBtn.TextID = StringId.bofang;
            bofangBtn.Y = shouyeFL.Bottom + Application.GetRealHeight(24);
            bofangBtn.X = yinliangFL.Right + Application.GetRealWidth(37);
            backgroundOpenFl.AddChidren(bofangBtn);
            zantingBtn = new CustomButton();
            zantingBtn.Text = "暂停";
            zantingBtn.TextID = StringId.zanting;
            zantingBtn.Y = shouyeFL.Bottom + Application.GetRealHeight(24);
            zantingBtn.X = bofangBtn.Right + Application.GetRealWidth(37);
            backgroundOpenFl.AddChidren(zantingBtn);
            kuaijinBtn = new CustomButton();
            kuaijinBtn.Text = "快进";
            kuaijinBtn.TextID = StringId.kuaijin;
            kuaijinBtn.Y = bofangBtn.Bottom + Application.GetRealHeight(16);
            kuaijinBtn.X = yinliangFL.Right + Application.GetRealWidth(37);
            backgroundOpenFl.AddChidren(kuaijinBtn);
            kauituiBtn = new CustomButton();
            kauituiBtn.Text = "快退";
            kauituiBtn.TextID = StringId.kuaitui;
            kauituiBtn.Y = bofangBtn.Bottom + Application.GetRealHeight(16);
            kauituiBtn.X = kuaijinBtn.Right + Application.GetRealWidth(37);
            backgroundOpenFl.AddChidren(kauituiBtn);
@@ -419,14 +515,14 @@
            jingyinBtn = new CustomButton();
            jingyinBtn.Text = "静音";
            jingyinBtn.TextID = StringId.jingyin;
            jingyinBtn.Y = kuaijinBtn.Bottom + Application.GetRealHeight(16);
            jingyinBtn.X = yinliangFL.Right + Application.GetRealWidth(37);
            backgroundOpenFl.AddChidren(jingyinBtn);
            shezhiBtn = new CustomButton();
            shezhiBtn.Text = "设置";
            shezhiBtn.TextID = StringId.shezhi;
            shezhiBtn.Y = kuaijinBtn.Bottom + Application.GetRealHeight(16);
            shezhiBtn.X = jingyinBtn.Right + Application.GetRealWidth(37);
            backgroundOpenFl.AddChidren(shezhiBtn);
@@ -434,14 +530,14 @@
            jiechujingyinBtn = new CustomButton();
            jiechujingyinBtn.Text = "解除静音";
            jiechujingyinBtn.TextID = StringId.jiechujingyin;
            jiechujingyinBtn.Y = jingyinBtn.Bottom + Application.GetRealHeight(16);
            jiechujingyinBtn.X = yinliangFL.Right + Application.GetRealWidth(37);
            backgroundOpenFl.AddChidren(jiechujingyinBtn);
            fanhuiBtn = new CustomButton();
            fanhuiBtn.Text = "返回";
            fanhuiBtn.TextID = StringId.fanhui;
            fanhuiBtn.Y = jingyinBtn.Bottom + Application.GetRealHeight(16);
            fanhuiBtn.X = jiechujingyinBtn.Right + Application.GetRealWidth(37);
            backgroundOpenFl.AddChidren(fanhuiBtn);
@@ -484,141 +580,11 @@
            #endregion
        }
        /// <summary>
        /// 初始化【关机】界面
        /// </summary>
        private void InitCloseUI()
        {
            #region   ---界面布局---
            baseCloseFFL = new BaseFramLayout
            {
                Y = topView.fLayout.Bottom,
                Height = Application.GetRealHeight(H_W.H - H_W.T_Height),
            };
            this.AddChidren(baseCloseFFL);
            var backgroundCloseFl = new FrameLayout
            {
                Y = Application.GetRealHeight(24),
                X = Application.GetRealWidth(24),
                Height = Application.GetRealHeight(526),
                Width = Application.GetRealWidth(327),
                BackgroundImagePath = "HisenseTv/offbj.png",
            };
            baseCloseFFL.AddChidren(backgroundCloseFl);
            baseCloseFFL.AdjustRealHeight(16);
            btnCloseCollectIcon = new Button
            {
                X = Application.GetRealWidth(273),
                Y = Application.GetRealHeight(14),
                Width = Application.GetRealWidth(40),
                Height = Application.GetRealWidth(40),
                UnSelectedImagePath = "MusicIcon/collect.png",
                SelectedImagePath = "MusicIcon/collectSelected.png",
                IsSelected = this.device.collect,
            };
            backgroundCloseFl.AddChidren(btnCloseCollectIcon);
            btnCloseCurrDeviceName = new Button
            {
                TextSize = TextSize.Text24,
                TextColor = MusicColor.Text18Color,
                Width = Application.GetRealWidth(160),
                Height = Application.GetRealHeight(33),
                Y = Application.GetRealHeight(16),
                X = Application.GetRealWidth(16),
                Text = this.device.name,
                TextAlignment = TextAlignment.CenterLeft,
                IsBold = true
            };
            backgroundCloseFl.AddChidren(btnCloseCurrDeviceName);
            btnCloseCurrDeviceRoom = new Button
            {
                TextSize = TextSize.Text12,
                TextColor = MusicColor.MusicNoTxetColor,
                Width = Application.GetRealWidth(160),
                Height = Application.GetRealHeight(17),
                Y = btnCloseCurrDeviceName.Bottom + Application.GetRealHeight(4),
                X = Application.GetRealWidth(16),
                Text = this.device.GetRoomListName(),
                TextAlignment = TextAlignment.CenterLeft,
            };
            backgroundCloseFl.AddChidren(btnCloseCurrDeviceRoom);
            var btnOffTvBj = new Button
            {
                Y = Application.GetRealHeight(108),
                Height = Application.GetRealWidth(198),
                Width = Application.GetRealWidth(198),
                UnSelectedImagePath = "HisenseTv/offtvbj.png",
                Gravity = Gravity.CenterHorizontal,
            };
            backgroundCloseFl.AddChidren(btnOffTvBj);
            var btnText = new Button
            {
                Y = btnOffTvBj.Bottom + Application.GetRealHeight(20),
                Width = Application.GetRealWidth(200),
                Height = Application.GetRealHeight(22),
                TextSize = TextSize.Text16,
                TextColor = MusicColor.TextColor,
                Text = "已关机",
                TextAlignment = TextAlignment.Center,
                Gravity = Gravity.CenterHorizontal,
                Padding = new Padding(0, 16, 0, 16),
            };
            backgroundCloseFl.AddChidren(btnText);
            var offFl = new FrameLayout
            {
                Y = btnText.Bottom + Application.GetRealHeight(91),
                Width = Application.GetRealHeight(32),
                Height = Application.GetRealWidth(32 + 20),
                Gravity = Gravity.CenterHorizontal,
            };
            backgroundCloseFl.AddChidren(offFl);
            var btnOffIcon = new Button
            {
                Height = Application.GetRealWidth(32),
                Width = Application.GetRealWidth(32),
                UnSelectedImagePath = "HisenseTv/on.png",
                Gravity = Gravity.CenterHorizontal,
            };
            offFl.AddChidren(btnOffIcon);
            var btnOffText = new Button
            {
                Y = btnOffIcon.Bottom + Application.GetRealHeight(4),
                Height = Application.GetRealHeight(16),
                TextSize = TextSize.Text12,
                TextColor = MusicColor.TextCancelColor,
                Text = "开机",
                TextAlignment = TextAlignment.Center,
                Gravity = Gravity.CenterHorizontal,
                Padding = new Padding(0, 2, 0, 2),
            };
            offFl.AddChidren(btnOffText);
            clickBtn = new Button
            {
                Width = Application.GetRealHeight(32),
                Height = Application.GetRealWidth(32 + 20),
            };
            offFl.AddChidren(clickBtn);
            #endregion
        }
        /// <summary>
        /// 初始化头部
        /// </summary>
        private void InitTopUI()
        private void InitTopUI()
        {
            this.BackgroundColor = MusicColor.ViewColor;
            this.topView = new TopView();
@@ -626,32 +592,7 @@
            this.topView.topNameBtn.TextID = StringId.dianshi;
            this.AddChidren(topView.TopFLayoutView());
        }
        /// <summary>
        /// 根据设备开关状态显示指定显示界面
        /// (进来的时候用到)
        /// </summary>
        /// <returns></returns>
        private void CurrentAssignPage()
        {
            if (this.device == null)
            {
                vv.Visible = false;
                baseCloseFFL.Visible = true;
                return;
            }
            if (this.device.GetAttrState("on_off") == "on")
            {
                vv.Visible = true;
                baseCloseFFL.Visible = false;
            }
            else
            {
                vv.Visible = false;
                baseCloseFFL.Visible = true;
            }
        }
        /// <summary>
        /// 重新计算宽度(设备名称,房间控件)
@@ -673,28 +614,13 @@
                //重新计算宽度
                this.btnOpenCurrDeviceRoom.Width = this.btnOpenCollectIcon.X + Application.GetRealWidth(-20 - 10);
            }
            //关机状态
            this.btnCloseCurrDeviceName.Width = this.btnCloseCurrDeviceName.GetTextWidth();
            this.btnCloseCurrDeviceName.Width += 10;
            if (this.btnCloseCurrDeviceName.GetTextWidth() > this.btnCloseCollectIcon.X)
            {
                //重新计算宽度
                this.btnCloseCurrDeviceName.Width = this.btnCloseCollectIcon.X + Application.GetRealWidth(-10);
            }
            this.btnCloseCurrDeviceRoom.Width = this.btnCloseCurrDeviceRoom.GetTextWidth();
            this.btnCloseCurrDeviceRoom.Width += 10;
            if (this.btnCloseCurrDeviceRoom.GetTextWidth() > this.btnCloseCollectIcon.X)
            {
                //重新计算宽度
                this.btnCloseCurrDeviceRoom.Width = this.btnCloseCollectIcon.X + Application.GetRealWidth(-20 - 10);
            }
            //this.cellFrame.X = this.btnCurrDeviceRoom.Right + Application.GetRealWidth(20);
        }
    }
        #endregion
    }
    #region   -------自定义当前界面的容器---------
    /// <summary>
    /// 自定义(首页,关机,菜单)容器
    /// </summary>
@@ -724,6 +650,7 @@
            TextID = StringId.dangqianmenweiguan,
            TextSize = TextSize.Text14,
            TextColor = MusicColor.TextColor,
            SelectedTextColor= MusicColor.MusicTxet14SelectedColor,
            TextAlignment = TextAlignment.Center,
            Gravity = Gravity.CenterHorizontal,
            Name = "btnText",
@@ -757,7 +684,8 @@
        {
            EventHandler<MouseEventArgs> DownClick = (sender, e) =>
            {
                this.BackgroundColor = 0xFFF2F3F7;
                btnImage.IsSelected = true;
                //btnText.IsSelected = true;
                action?.Invoke(this, btnImage, btnText);
            };
            this.MouseDownEventHandler += DownClick;
@@ -767,7 +695,8 @@
            EventHandler<MouseEventArgs> UpClick = (sender, e) =>
             {
                 this.BackgroundColor = 0x00000000;
                 btnImage.IsSelected = false;
                 //btnText.IsSelected = false;
             };
            this.MouseUpEventHandler += UpClick;
            btnImage.MouseUpEventHandler += UpClick;
@@ -789,9 +718,11 @@
            this.Height = Application.GetRealHeight(38);
            this.TextSize = 14;
            this.TextColor = MusicColor.TextColor;
            this.SelectedTextColor = MusicColor.MusicTxet14SelectedColor;
            this.TextAlignment = TextAlignment.Center;
            this.IsMoreLines = true;
            this.BackgroundColor = 0xffECEDEE;
            this.SelectedBackgroundColor = 0xFFF2F3F7;
            this.Radius = (uint)Application.GetRealHeight(30);
        }
@@ -803,7 +734,8 @@
        {
            EventHandler<MouseEventArgs> DownClick = (sender, e) =>
            {
                this.BackgroundColor = 0xFFF2F3F7;
                //this.BackgroundColor = 0xFFF2F3F7;
                this.IsSelected = true;
                action?.Invoke(this);
            };
            this.MouseDownEventHandler += DownClick;
@@ -811,7 +743,8 @@
            EventHandler<MouseEventArgs> UpClick = (sender, e) =>
            {
                this.BackgroundColor = 0xffECEDEE;
                //this.BackgroundColor = 0xffECEDEE;
                this.IsSelected = false;
            };
            this.MouseUpEventHandler += UpClick;
@@ -1052,6 +985,7 @@
                button.SetClickListener((btn) =>
                {
                    // MovieLibrary movieLibrary = new MovieLibrary();
                    selectAction?.Invoke(button.Text);
                });
                //if (CurrnetSelectIndex != -1 && CurrnetSelectIndex == i)
@@ -1065,7 +999,7 @@
        {
            return new List<string>
            {
                "HDML 1",
                "HDML 1",//" "
                "HDML 2",
                "HDML 3",
                "HDML 4",
@@ -1078,6 +1012,6 @@
    }
    #endregion
}