From 2d5cd35af7437ad4015d38594d8c721dc6166b11 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 29 八月 2023 09:22:38 +0800
Subject: [PATCH] Merge branch 'wjc' of http://59.41.255.150:6688/r/~wxr/OnPro into wjc

---
 HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs |  253 +++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 188 insertions(+), 65 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs
index 4c96121..75534f2 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs
@@ -3,12 +3,13 @@
 using HDL_ON.UI.Music;
 using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView;
 using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity;
+using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock;
 using Shared;
 using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage;
 namespace HDL_ON.UI.UI2.FuntionControlView.Aks
 {
     /// <summary>
-    ///閬ユ帶鍣ㄧ晫闈�
+    ///铏氭嫙閬ユ帶鍣ㄧ晫闈�
     /// </summary>
     public class YkqPage : BaseFramLayout
     {
@@ -62,14 +63,14 @@
         CustomFrameLayout zhuyeFL;
         FrameLayout okFl;
         Button btnLeft;
-        Button btnQian;
-        Button btnRight;
-        Button btnHou;
-        Button btnOk;
-        Button btnJia;
-        Button btnJian;
         Button btnShang;
+        Button btnRight;
         Button btnXia;
+        Button btnOk;
+        Button btnYingliangjia;
+        Button btnYingliangjian;
+        Button btnPindaojia;
+        Button btnPindaojian;
         CustomFrameLayout caidanFL;
         CustomFrameLayout fanhuiFL;
         CustomFrameLayout shanyibuFL;
@@ -106,133 +107,146 @@
             //寮�鍏�
             switchBtn.MouseDownEventHandler += (senser, e) =>
             {
-
+                switchBtn.IsSelected = true;
+                KeyControl("on_off", "寮�/鍏�");
             };
             //淇℃伅
             xinxiFL.SetClickListener(() =>
             {
-
+                KeyControl("info", "淇℃伅");
             });
             //鏀惰棌
             shoucangFL.SetClickListener(() =>
             {
+                KeyControl("collect", "鏀惰棌");
             });
             //鐢靛奖
             dianyingFL.SetClickListener(() =>
             {
-
+                KeyControl("movie", "鐢靛奖");
             });
             //濞变箰
             yuleFL.SetClickListener(() =>
             {
-
+                KeyControl("recreation", "濞变箰");
             });
             //鐢佃
             dianshiFL.SetClickListener(() =>
             {
-
+                KeyControl("tv", "鐢佃");
             });
             //绾㈣壊
             redFL.SetClickListener(() =>
             {
-
+                KeyControl("red", "绾㈣壊");
             });
             //榛勮壊
             yellowFL.SetClickListener(() =>
             {
-
+                KeyControl("yellow", "榛勮壊");
             });
             //钃濊壊
             blueFL.SetClickListener(() =>
             {
-
+                KeyControl("blue", "钃濊壊");
             });
             //1
             number1FL.SetClickListener(() =>
             {
-
+                 KeyControl("number_1", "1");
             });
             //2
             number2FL.SetClickListener(() =>
             {
-
+                KeyControl("number_2", "2");
             });
             //3
             number3FL.SetClickListener(() =>
             {
+                KeyControl("number_3", "3");
 
             });
             //4
             number4FL.SetClickListener(() =>
             {
+                KeyControl("number_4", "4");
 
             });
             //5
             number5FL.SetClickListener(() =>
             {
+                KeyControl("number_5", "5");
 
             });
             //6
             number6FL.SetClickListener(() =>
             {
-
+                KeyControl("number_6", "6");
             });
             //7
             number7FL.SetClickListener(() =>
             {
-
+                KeyControl("number_7", "7");
             });
             //8
             number8FL.SetClickListener(() =>
             {
-
+                KeyControl("number_8", "8");
             });
             //9
             number9FL.SetClickListener(() =>
             {
+                KeyControl("number_9", "9");
 
             });
 
             //闊宠建
             yinguiFL.SetClickListener(() =>
             {
-
+                KeyControl("audio_track", "闊宠建");
             });
             //0
             number0FL.SetClickListener(() =>
             {
+                KeyControl("number_0", "0");
 
             });
             //瀛楀箷
             zimuFL.SetClickListener(() =>
             {
+                KeyControl("subtitle", "瀛楀箷");
 
             });
             //闈欓煶
             jingyinFL.SetClickListener(() =>
             {
+                KeyControl("mute", "闈欓煶");
 
             });
             //鎶曞睆
             toupingFL.SetClickListener(() =>
             {
+                KeyControl("main", "鎶曞睆");
 
             });
             //涓婚〉
             zhuyeFL.SetClickListener(() =>
             {
+                KeyControl("home", "涓婚〉");
 
             });
             //宸�
             btnLeft.MouseDownEventHandler += (sender, e) =>
             {
                 okFl.BackgroundImagePath = "AksIcon/ykq_left_selected.png";
+                KeyControl("key_left", "宸�");
 
             };
-            //鍓�
-            btnQian.MouseDownEventHandler += (sender, e) =>
+            //涓�
+            btnShang.MouseDownEventHandler += (sender, e) => 
             {
-                okFl.BackgroundImagePath = "AksIcon/ykq_qian_selected.png";
+                okFl.BackgroundImagePath = "AksIcon/ykq_shang_selected.png";
+                KeyControl("key_up", "涓�");
 
             };
 
@@ -240,81 +254,103 @@
             btnRight.MouseDownEventHandler += (sender, e) =>
             {
                 okFl.BackgroundImagePath = "AksIcon/ykq_right_selected.png";
+                KeyControl("key_right", "鍙�");
 
             };
 
-            //鍚�
-            btnHou.MouseDownEventHandler += (sender, e) =>
+            //涓�
+            btnXia.MouseDownEventHandler += (sender, e) =>
             {
-                okFl.BackgroundImagePath = "AksIcon/ykq_hou_selected.png";
+                okFl.BackgroundImagePath = "AksIcon/ykq_xia_selected.png";
+                KeyControl("key_down", "涓�");
             };
             //OK
             btnOk.MouseDownEventHandler += (sender, e) =>
             {
                 okFl.BackgroundImagePath = "AksIcon/ykq_ok_selected.png";
+                KeyControl("key_ok", "纭畾");
             };
-            //鍔�
-            btnJia.MouseDownEventHandler += (sen, e) => { };
-            //鍑�
-            btnJian.MouseDownEventHandler += (sen, e) => { };
-            //涓�
-            btnShang.MouseDownEventHandler += (sen, e) => { };
-            //涓�
-            btnXia.MouseDownEventHandler += (sen, e) => { };
+            //闊抽噺+
+            btnYingliangjia.MouseDownEventHandler += (sen, e) => {
+                btnYingliangjia.IsSelected = true;
+                KeyControl("volume_up", "闊抽噺+");
+            };
+            //闊抽噺-
+            btnYingliangjian.MouseDownEventHandler += (sen, e) => {
+                btnYingliangjian.IsSelected = true;
+                KeyControl("volume_down", "闊抽噺-");
+            };
+            //棰戦亾+
+            btnPindaojia.MouseDownEventHandler += (sen, e) => {
+                btnPindaojia.IsSelected = true;
+                KeyControl("ch_up", "棰戦亾+");
+            };
+            //棰戦亾-
+            btnPindaojian.MouseDownEventHandler += (sen, e) => {
+                btnPindaojian.IsSelected = true;
+                KeyControl("ch_down", "棰戦亾-");
+            };
 
             //鑿滃崟
             caidanFL.SetClickListener(() =>
             {
+                KeyControl("menu", "鑿滃崟");
 
             });
             //杩斿洖
             fanhuiFL.SetClickListener(() =>
             {
+                KeyControl("return", "杩斿洖");
 
             });
             //涓婁竴閮�
             shanyibuFL.SetClickListener(() =>
             {
+                KeyControl("part_up", "涓婁竴閮�");
 
             });
             //鎾斁
             bofangFL.SetClickListener(() =>
             {
+                KeyControl("play", "鎾斁");
 
             });
             //涓嬩竴閮�
             xiayibuFL.SetClickListener(() =>
             {
-
+                KeyControl("part_down", "涓嬩竴閮�");
             });
             //蹇��
             kuaituiFL.SetClickListener(() =>
             {
-
+                KeyControl("fast_rewind", "蹇��");
             });
             //鏆傚仠
             zantingFL.SetClickListener(() =>
             {
-
+                KeyControl("pause", "鏆傚仠");
             });
             //蹇繘
             kusinjinFL.SetClickListener(() =>
             {
-
+                KeyControl("fast_forward", "蹇繘");
             });
             //鐏叧
             dengguanFL.SetClickListener(() =>
             {
+                KeyControl("lamp", "鐏叧");
 
             });
             //鍋滄
             tingzhiFL.SetClickListener(() =>
             {
+                KeyControl("stop", "鍋滄");
 
             });
             //鍗曟帶鐏�
             dankongdengFL.SetClickListener(() =>
             {
+                KeyControl("lamp_plc", "鍗曟帶鐏�");
 
             });
 
@@ -336,7 +372,9 @@
             });
 
         }
-
+        /// <summary>
+        /// 鍒濆鍖栫晫闈�
+        /// </summary>
         private void InitUI()
         {
             this.BackgroundColor = MusicColor.ViewColor;
@@ -398,8 +436,13 @@
                 Width = Application.GetRealWidth(32),
                 Gravity = Gravity.Center,
                 UnSelectedImagePath = "AksIcon/ykq_kai.png",
+                SelectedImagePath= "AksIcon/ykq_kaiguang_selected.png"
             };
             switchFl.AddChidren(switchBtn);
+            switchBtn.MouseUpEventHandler += (senser, e) =>
+            {
+                switchBtn.IsSelected = false;
+            };
 
             int h = 49;
             int offset = 28;//x杞村亸绉婚噺
@@ -419,6 +462,7 @@
             xinxiFL.AddImageView();
             xinxiFL.AddTextButtonView();
             xinxiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_xinxi.png";
+            xinxiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_xinxi_selected.png";
             xinxiFL.GetTextButton().Text = "淇℃伅";
             xinxiFL.AddClickView();
 
@@ -429,6 +473,7 @@
             shoucangFL.AddImageView();
             shoucangFL.AddTextButtonView();
             shoucangFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_shoucang.png";
+            shoucangFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_shoucang_selected.png";
             shoucangFL.GetTextButton().Text = "鏀惰棌";
             shoucangFL.AddClickView();
 
@@ -446,6 +491,7 @@
             dianyingFL.AddImageView();
             dianyingFL.AddTextButtonView();
             dianyingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dianying.png";
+            dianyingFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dianying_selected.png";
             dianyingFL.GetTextButton().Text = "鐢靛奖";
             dianyingFL.AddClickView();
 
@@ -456,6 +502,7 @@
             yuleFL.AddImageView();
             yuleFL.AddTextButtonView();
             yuleFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_yule.png";
+            yuleFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_yule_selected.png";
             yuleFL.GetTextButton().Text = "濞变箰";
             yuleFL.AddClickView();
 
@@ -465,6 +512,7 @@
             dianshiFL.AddImageView();
             dianshiFL.AddTextButtonView();
             dianshiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dianshi.png";
+            dianshiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dianshi_selected.png";
             dianshiFL.GetTextButton().Text = "鐢佃";
             dianshiFL.AddClickView();
 
@@ -617,6 +665,7 @@
             yinguiFL.AddImageView();
             yinguiFL.AddTextButtonView();
             yinguiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_yingui.png";
+            yinguiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_yingui_selected.png";
             yinguiFL.GetTextButton().Text = "闊宠建";
             yinguiFL.AddClickView();
 
@@ -635,6 +684,7 @@
             zimuFL.AddImageView();
             zimuFL.AddTextButtonView();
             zimuFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_zimu.png";
+            zimuFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_zimu_selected.png";
             zimuFL.GetTextButton().Text = "瀛楀箷";
             zimuFL.AddClickView();
             zimuFL.AddClickView();
@@ -656,6 +706,7 @@
             jingyinFL.AddImageView();
             jingyinFL.AddTextButtonView();
             jingyinFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_jingyin.png";
+            jingyinFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_jingyin_selected.png";
             jingyinFL.GetTextButton().Text = "闈欓煶";
             jingyinFL.AddClickView();
 
@@ -665,7 +716,8 @@
             toupingFL.X = jingyinFL.Right + Application.GetRealWidth(septal);
             toupingFL.AddImageView();
             toupingFL.AddTextButtonView();
-            toupingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_youpin.png";
+            toupingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_toupin.png";
+            toupingFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_touping_selected.png";
             toupingFL.GetTextButton().Text = "鎶曞睆";
             toupingFL.AddClickView();
 
@@ -676,6 +728,7 @@
             zhuyeFL.AddImageView();
             zhuyeFL.AddTextButtonView();
             zhuyeFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_zhuye.png";
+            zhuyeFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_zhuye_selected.png";
             zhuyeFL.GetTextButton().Text = "涓婚〉";
             zhuyeFL.AddClickView();
 
@@ -692,48 +745,69 @@
             layout.AddChidren(baseFl);
 
 
-            btnJia = new Button
+            btnYingliangjia = new Button
             {
                 Y = Application.GetRealHeight(32),
                 X = Application.GetRealWidth(26),
                 Width = Application.GetRealWidth(36),
                 Height = Application.GetRealWidth(36),
-                UnSelectedImagePath = "AksIcon/ykq_jia.png",
+                UnSelectedImagePath = "AksIcon/ykq_yingliangjia.png",
+                SelectedImagePath = "AksIcon/ykq_yingliangjia_selected.png",
             };
-            baseFl.AddChidren(btnJia);
+            baseFl.AddChidren(btnYingliangjia);
+            btnYingliangjia.MouseUpEventHandler += (sen,e) => {
+
+                btnYingliangjia.IsSelected = false;
+            };
 
 
-            btnJian = new Button
+            btnYingliangjian = new Button
             {
-                Y = btnJia.Bottom + Application.GetRealHeight(71),
+                Y = btnYingliangjia.Bottom + Application.GetRealHeight(71),
                 X = Application.GetRealWidth(26),
                 Width = Application.GetRealWidth(36),
                 Height = Application.GetRealWidth(36),
-                UnSelectedImagePath = "AksIcon/ykq_jian.png",
+                UnSelectedImagePath = "AksIcon/ykq_yingliangjian.png",
+                SelectedImagePath = "AksIcon/ykq_yingliangjian_selected.png",
             };
-            baseFl.AddChidren(btnJian);
+            baseFl.AddChidren(btnYingliangjian);
+            btnYingliangjian.MouseUpEventHandler += (sen, e) => {
+
+                btnYingliangjian.IsSelected = false;
+            };
 
 
-            btnShang = new Button
+
+            btnPindaojia = new Button 
             {
                 Y = Application.GetRealHeight(32),
                 X = Application.GetRealWidth(170),
                 Width = Application.GetRealWidth(36),
                 Height = Application.GetRealWidth(36),
-                UnSelectedImagePath = "AksIcon/ykq_shang.png",
+                UnSelectedImagePath = "AksIcon/ykq_pindaojia.png",
+                SelectedImagePath = "AksIcon/ykq_pindaojia_selected.png",
             };
-            baseFl.AddChidren(btnShang);
+            baseFl.AddChidren(btnPindaojia);
+            btnPindaojia.MouseUpEventHandler += (sen, e) => {
+
+                btnPindaojia.IsSelected = false;
+            };
 
 
-            btnXia = new Button
+            btnPindaojian = new Button
             {
-                Y = btnShang.Bottom + Application.GetRealHeight(71),
+                Y = btnPindaojia.Bottom + Application.GetRealHeight(71),
                 X = Application.GetRealWidth(170),
                 Width = Application.GetRealWidth(36),
                 Height = Application.GetRealWidth(36),
-                UnSelectedImagePath = "AksIcon/ykq_xia.png",
+                UnSelectedImagePath = "AksIcon/ykq_pindaojian.png",
+                SelectedImagePath = "AksIcon/ykq_pindaojian_selected.png",
             };
-            baseFl.AddChidren(btnXia);
+            baseFl.AddChidren(btnPindaojian);
+            btnPindaojian.MouseUpEventHandler += (sen, e) => {
+
+                btnPindaojian.IsSelected = false;
+            };
 
 
 
@@ -760,14 +834,14 @@
 
 
 
-            btnQian = new Button
+            btnShang = new Button
             {
                 Width = Application.GetRealWidth(40),
                 Height = Application.GetRealHeight(30),
                 Gravity = Gravity.CenterHorizontal,
             };
 
-            okFl.AddChidren(btnQian);
+            okFl.AddChidren(btnShang);
 
             btnRight = new Button
             {
@@ -778,13 +852,13 @@
 
             okFl.AddChidren(btnRight);
 
-            btnHou = new Button
+            btnXia = new Button
             {
                 Width = Application.GetRealWidth(40),
                 Height = Application.GetRealHeight(30),
                 Gravity = Gravity.BottomCenter,
             };
-            okFl.AddChidren(btnHou);
+            okFl.AddChidren(btnXia);
 
 
 
@@ -803,7 +877,7 @@
                 okFl.BackgroundImagePath = "AksIcon/ykq_ok.png";
 
             };
-            btnQian.MouseUpEventHandler += (sender, e) =>
+            btnShang.MouseUpEventHandler += (sender, e) =>
             {
                 okFl.BackgroundImagePath = "AksIcon/ykq_ok.png";
 
@@ -813,7 +887,7 @@
                 okFl.BackgroundImagePath = "AksIcon/ykq_ok.png";
 
             };
-            btnHou.MouseUpEventHandler += (sender, e) =>
+            btnXia.MouseUpEventHandler += (sender, e) =>
             {
                 okFl.BackgroundImagePath = "AksIcon/ykq_ok.png";
 
@@ -845,6 +919,7 @@
             caidanFL.AddImageView();
             caidanFL.AddTextButtonView();
             caidanFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_caidan.png";
+            caidanFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_caidan_selected.png";
             caidanFL.GetTextButton().Text = "鑿滃崟";
             caidanFL.AddClickView();
 
@@ -855,6 +930,7 @@
             fanhuiFL.AddImageView();
             fanhuiFL.AddTextButtonView();
             fanhuiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_fanhui.png";
+            fanhuiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_fanhui_selected.png";
             fanhuiFL.GetTextButton().Text = "杩斿洖";
             fanhuiFL.AddClickView();
 
@@ -873,6 +949,7 @@
             shanyibuFL.AddImageView();
             shanyibuFL.AddTextButtonView();
             shanyibuFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_shangyibu.png";
+            shanyibuFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_shangyibu_selected.png";
             shanyibuFL.GetTextButton().Text = "涓婁竴閮�";
             shanyibuFL.AddClickView();
 
@@ -882,7 +959,8 @@
             bofangFL.X = shanyibuFL.Right + Application.GetRealWidth(septal);
             bofangFL.AddImageView();
             bofangFL.AddTextButtonView();
-            bofangFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_bofang.png";
+            bofangFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_bofan.png";
+            bofangFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_bofan_selected.png";
             bofangFL.GetTextButton().Text = "鎾斁";
             bofangFL.AddClickView();
 
@@ -893,6 +971,7 @@
             xiayibuFL.AddImageView();
             xiayibuFL.AddTextButtonView();
             xiayibuFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_xiayibu.png";
+            xiayibuFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_xiayibu_selected.png";
             xiayibuFL.GetTextButton().Text = "涓嬩竴閮�";
             xiayibuFL.AddClickView();
 
@@ -914,6 +993,7 @@
             kuaituiFL.AddImageView();
             kuaituiFL.AddTextButtonView();
             kuaituiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_kuaitui.png";
+            kuaituiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_kuaijin_selected.png";
             kuaituiFL.GetTextButton().Text = "蹇��";
             kuaituiFL.AddClickView();
 
@@ -926,6 +1006,7 @@
             zantingFL.AddImageView();
             zantingFL.AddTextButtonView();
             zantingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_zanting.png";
+            zantingFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_zanting_selected.png";
             zantingFL.GetTextButton().Text = "鏆傚仠";
             zantingFL.AddClickView();
 
@@ -938,6 +1019,7 @@
             kusinjinFL.AddImageView();
             kusinjinFL.AddTextButtonView();
             kusinjinFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_kuaijin.png";
+            kusinjinFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_kuaitui_selected.png";
             kusinjinFL.GetTextButton().Text = "蹇繘";
             kusinjinFL.AddClickView();
 
@@ -959,6 +1041,7 @@
             dengguanFL.AddImageView();
             dengguanFL.AddTextButtonView();
             dengguanFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dengguan.png";
+            dengguanFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dengguang_selected.png";
             dengguanFL.GetTextButton().Text = "鐏叧";
             dengguanFL.AddClickView();
 
@@ -969,6 +1052,7 @@
             tingzhiFL.AddImageView();
             tingzhiFL.AddTextButtonView();
             tingzhiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_tingzhi.png";
+            tingzhiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_tingzhi_selected.png";
             tingzhiFL.GetTextButton().Text = "鍋滄";
             tingzhiFL.AddClickView();
 
@@ -980,6 +1064,7 @@
             dankongdengFL.AddImageView();
             dankongdengFL.AddTextButtonView();
             dankongdengFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dankongdeng.png";
+            dankongdengFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dankongdeng_selected.png";
             dankongdengFL.GetTextButton().Text = "鍗曟帶鐏�";
             dankongdengFL.AddClickView();
 
@@ -1001,6 +1086,32 @@
             typeMultiFramLayout.btnBottonRightName.TextID = StringId.xuniyaokongqi;
 
             this.AdjustRealHeight(16);
+        }
+
+        /// <summary>
+        /// 鎸夐敭鎺у埗
+        /// </summary>
+        /// <param name="keypad"><鎸夐敭鏍囪瘑/param>
+        /// <param name="keyName"><鎸夐敭鍚嶇О(鎵撳嵃鐢ㄧ殑)/param>
+        private void KeyControl(string keypad, string keyName)
+        {
+            //CommonMethod.Current.Loading.Start();
+            CommonMethod.Current.SunThread(() =>
+            {
+                try
+                {
+                    SendMethod.Current.KeypadExecute(remoteControl.deviceId, remoteControl.rcId, keypad, keyName);
+                }
+                catch { }
+                finally
+                {
+                    CommonMethod.Current.MainThread(() =>
+                    {
+                        //CommonMethod.Current.Loading.Hide();
+                    });
+                }
+            });
+
         }
 
     }
@@ -1030,6 +1141,7 @@
             Height = Application.GetRealHeight(16),
             TextSize = TextSize.Text12,
             TextColor = MusicColor.WhiteColor,
+            SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
             TextAlignment = TextAlignment.Center,
             Gravity = Gravity.CenterHorizontal,
         };
@@ -1040,6 +1152,7 @@
             Gravity = Gravity.Center,
             TextSize = 20,
             TextColor = MusicColor.WhiteColor,
+            SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
             IsBold = true,
 
         };
@@ -1049,6 +1162,8 @@
             Height = Application.GetRealWidth(12),
             Gravity = Gravity.Center,
             Radius = (uint)Application.GetRealHeight(6),
+            BackgroundColor=0x00000000,
+            SelectedBackgroundColor = 0xFFEFEFEF,
         };
 
         public FrameLayout clickFl = new FrameLayout
@@ -1110,15 +1225,23 @@
         {
             clickFl.MouseDownEventHandler += (sender, e) =>
             {
-                //this.BackgroundColor = 0xff484378;
+                //this.BackgroundColor = 0xff798394;
+                btnImage.IsSelected = true;
+                btnText.IsSelected = true;
+                btnNumber.IsSelected = true;
+                btn.IsSelected = true;
+
                 action?.Invoke();
             };
 
             clickFl.MouseUpEventHandler += (sender, e) =>
             {
-                //this.BackgroundColor = 0xff484378;
+                //this.BackgroundColor = 0x00000000;
+                btnImage.IsSelected = false;
+                btnText.IsSelected = false;
+                btnNumber.IsSelected = false;
+                btn.IsSelected = false;
             };
-
 
         }
 

--
Gitblit v1.8.0