| | |
| | | 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 |
| | | { |
| | |
| | | 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; |
| | |
| | | //开关 |
| | | 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", "上"); |
| | | |
| | | }; |
| | | |
| | |
| | | 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", "单控灯"); |
| | | |
| | | }); |
| | | |
| | |
| | | }); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 初始化界面 |
| | | /// </summary> |
| | | private void InitUI() |
| | | { |
| | | this.BackgroundColor = MusicColor.ViewColor; |
| | |
| | | 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轴偏移量 |
| | |
| | | xinxiFL.AddImageView(); |
| | | xinxiFL.AddTextButtonView(); |
| | | xinxiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_xinxi.png"; |
| | | xinxiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_xinxi_selected.png"; |
| | | xinxiFL.GetTextButton().Text = "信息"; |
| | | xinxiFL.AddClickView(); |
| | | |
| | |
| | | shoucangFL.AddImageView(); |
| | | shoucangFL.AddTextButtonView(); |
| | | shoucangFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_shoucang.png"; |
| | | shoucangFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_shoucang_selected.png"; |
| | | shoucangFL.GetTextButton().Text = "收藏"; |
| | | shoucangFL.AddClickView(); |
| | | |
| | |
| | | dianyingFL.AddImageView(); |
| | | dianyingFL.AddTextButtonView(); |
| | | dianyingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dianying.png"; |
| | | dianyingFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dianying_selected.png"; |
| | | dianyingFL.GetTextButton().Text = "电影"; |
| | | dianyingFL.AddClickView(); |
| | | |
| | |
| | | yuleFL.AddImageView(); |
| | | yuleFL.AddTextButtonView(); |
| | | yuleFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_yule.png"; |
| | | yuleFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_yule_selected.png"; |
| | | yuleFL.GetTextButton().Text = "娱乐"; |
| | | yuleFL.AddClickView(); |
| | | |
| | |
| | | dianshiFL.AddImageView(); |
| | | dianshiFL.AddTextButtonView(); |
| | | dianshiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dianshi.png"; |
| | | dianshiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dianshi_selected.png"; |
| | | dianshiFL.GetTextButton().Text = "电视"; |
| | | dianshiFL.AddClickView(); |
| | | |
| | |
| | | yinguiFL.AddImageView(); |
| | | yinguiFL.AddTextButtonView(); |
| | | yinguiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_yingui.png"; |
| | | yinguiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_yingui_selected.png"; |
| | | yinguiFL.GetTextButton().Text = "音轨"; |
| | | yinguiFL.AddClickView(); |
| | | |
| | |
| | | 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(); |
| | |
| | | jingyinFL.AddImageView(); |
| | | jingyinFL.AddTextButtonView(); |
| | | jingyinFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_jingyin.png"; |
| | | jingyinFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_jingyin_selected.png"; |
| | | jingyinFL.GetTextButton().Text = "静音"; |
| | | jingyinFL.AddClickView(); |
| | | |
| | |
| | | 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(); |
| | | |
| | |
| | | zhuyeFL.AddImageView(); |
| | | zhuyeFL.AddTextButtonView(); |
| | | zhuyeFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_zhuye.png"; |
| | | zhuyeFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_zhuye_selected.png"; |
| | | zhuyeFL.GetTextButton().Text = "主页"; |
| | | zhuyeFL.AddClickView(); |
| | | |
| | |
| | | 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; |
| | | }; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | 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 |
| | | { |
| | |
| | | |
| | | 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); |
| | | |
| | | |
| | | |
| | |
| | | okFl.BackgroundImagePath = "AksIcon/ykq_ok.png"; |
| | | |
| | | }; |
| | | btnQian.MouseUpEventHandler += (sender, e) => |
| | | btnShang.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | okFl.BackgroundImagePath = "AksIcon/ykq_ok.png"; |
| | | |
| | |
| | | okFl.BackgroundImagePath = "AksIcon/ykq_ok.png"; |
| | | |
| | | }; |
| | | btnHou.MouseUpEventHandler += (sender, e) => |
| | | btnXia.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | okFl.BackgroundImagePath = "AksIcon/ykq_ok.png"; |
| | | |
| | |
| | | caidanFL.AddImageView(); |
| | | caidanFL.AddTextButtonView(); |
| | | caidanFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_caidan.png"; |
| | | caidanFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_caidan_selected.png"; |
| | | caidanFL.GetTextButton().Text = "菜单"; |
| | | caidanFL.AddClickView(); |
| | | |
| | |
| | | fanhuiFL.AddImageView(); |
| | | fanhuiFL.AddTextButtonView(); |
| | | fanhuiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_fanhui.png"; |
| | | fanhuiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_fanhui_selected.png"; |
| | | fanhuiFL.GetTextButton().Text = "返回"; |
| | | fanhuiFL.AddClickView(); |
| | | |
| | |
| | | shanyibuFL.AddImageView(); |
| | | shanyibuFL.AddTextButtonView(); |
| | | shanyibuFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_shangyibu.png"; |
| | | shanyibuFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_shangyibu_selected.png"; |
| | | shanyibuFL.GetTextButton().Text = "上一部"; |
| | | shanyibuFL.AddClickView(); |
| | | |
| | |
| | | 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(); |
| | | |
| | |
| | | xiayibuFL.AddImageView(); |
| | | xiayibuFL.AddTextButtonView(); |
| | | xiayibuFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_xiayibu.png"; |
| | | xiayibuFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_xiayibu_selected.png"; |
| | | xiayibuFL.GetTextButton().Text = "下一部"; |
| | | xiayibuFL.AddClickView(); |
| | | |
| | |
| | | kuaituiFL.AddImageView(); |
| | | kuaituiFL.AddTextButtonView(); |
| | | kuaituiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_kuaitui.png"; |
| | | kuaituiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_kuaijin_selected.png"; |
| | | kuaituiFL.GetTextButton().Text = "快退"; |
| | | kuaituiFL.AddClickView(); |
| | | |
| | |
| | | zantingFL.AddImageView(); |
| | | zantingFL.AddTextButtonView(); |
| | | zantingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_zanting.png"; |
| | | zantingFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_zanting_selected.png"; |
| | | zantingFL.GetTextButton().Text = "暂停"; |
| | | zantingFL.AddClickView(); |
| | | |
| | |
| | | kusinjinFL.AddImageView(); |
| | | kusinjinFL.AddTextButtonView(); |
| | | kusinjinFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_kuaijin.png"; |
| | | kusinjinFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_kuaitui_selected.png"; |
| | | kusinjinFL.GetTextButton().Text = "快进"; |
| | | kusinjinFL.AddClickView(); |
| | | |
| | |
| | | dengguanFL.AddImageView(); |
| | | dengguanFL.AddTextButtonView(); |
| | | dengguanFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dengguan.png"; |
| | | dengguanFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dengguang_selected.png"; |
| | | dengguanFL.GetTextButton().Text = "灯关"; |
| | | dengguanFL.AddClickView(); |
| | | |
| | |
| | | tingzhiFL.AddImageView(); |
| | | tingzhiFL.AddTextButtonView(); |
| | | tingzhiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_tingzhi.png"; |
| | | tingzhiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_tingzhi_selected.png"; |
| | | tingzhiFL.GetTextButton().Text = "停止"; |
| | | tingzhiFL.AddClickView(); |
| | | |
| | |
| | | dankongdengFL.AddImageView(); |
| | | dankongdengFL.AddTextButtonView(); |
| | | dankongdengFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dankongdeng.png"; |
| | | dankongdengFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dankongdeng_selected.png"; |
| | | dankongdengFL.GetTextButton().Text = "单控灯"; |
| | | dankongdengFL.AddClickView(); |
| | | |
| | |
| | | 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(); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | Height = Application.GetRealHeight(16), |
| | | TextSize = TextSize.Text12, |
| | | TextColor = MusicColor.WhiteColor, |
| | | SelectedTextColor = MusicColor.MusicTxet14SelectedColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | }; |
| | |
| | | Gravity = Gravity.Center, |
| | | TextSize = 20, |
| | | TextColor = MusicColor.WhiteColor, |
| | | SelectedTextColor = MusicColor.MusicTxet14SelectedColor, |
| | | IsBold = true, |
| | | |
| | | }; |
| | |
| | | Height = Application.GetRealWidth(12), |
| | | Gravity = Gravity.Center, |
| | | Radius = (uint)Application.GetRealHeight(6), |
| | | BackgroundColor=0x00000000, |
| | | SelectedBackgroundColor = 0xFFEFEFEF, |
| | | }; |
| | | |
| | | public FrameLayout clickFl = new FrameLayout |
| | |
| | | { |
| | | 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; |
| | | }; |
| | | |
| | | |
| | | } |
| | | |