From f17556d2ee4ade808f776653286690ab235463d5 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期三, 30 八月 2023 17:18:54 +0800 Subject: [PATCH] 2023年08月30日17:18:36 --- HDL-ON_iOS/Resources/Phone/HisenseTv/yingliangjianSelected.png | 0 SiriIntents/SiriIntents.csproj | 4 HDL-ON_iOS/Resources/Phone/HisenseTv/kaiguanSelected.png | 0 HDL-ON_Android/Assets/Phone/HisenseTv/kai.png | 0 HDL-ON_iOS/Resources/Phone/HisenseTv/guan.png | 0 HDL-ON_iOS/HDL-ON_iOS.csproj | 12 + HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTvPage.cs | 341 +++++++++-------------------------------------- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 4 HDL-ON_iOS/Resources/Phone/HisenseTv/yingliangjiaSelected.png | 0 HDL-ON_Android/Assets/Phone/HisenseTv/shouyeSelected.png | 0 HDL-ON_iOS/Resources/Phone/HisenseTv/shouyeSelected.png | 0 HDL-ON_Android/HDL-ON_Android.csproj | 8 HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs | 4 /dev/null | 0 HDL-ON_Android/Assets/Phone/HisenseTv/yingliangjiaSelected.png | 0 HDL-ON_Android/Assets/Phone/HisenseTv/yingliangjianSelected.png | 0 HDL-ON_Android/Assets/Phone/HisenseTv/guan.png | 0 HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs | 4 HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs | 12 HDL-ON_iOS/Resources/Phone/HisenseTv/kai.png | 0 SiriIntentsUI/SiriIntentsUI.csproj | 4 HDL-ON_Android/Assets/Phone/HisenseTv/kaiguanSelected.png | 0 22 files changed, 99 insertions(+), 294 deletions(-) diff --git a/HDL-ON_Android/Assets/Phone/HisenseTv/kaiguan.png b/HDL-ON_Android/Assets/Phone/HisenseTv/guan.png similarity index 100% rename from HDL-ON_Android/Assets/Phone/HisenseTv/kaiguan.png rename to HDL-ON_Android/Assets/Phone/HisenseTv/guan.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/HisenseTv/kai.png b/HDL-ON_Android/Assets/Phone/HisenseTv/kai.png new file mode 100644 index 0000000..ddce0db --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/HisenseTv/kai.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/HisenseTv/kaiguanSelected.png b/HDL-ON_Android/Assets/Phone/HisenseTv/kaiguanSelected.png new file mode 100644 index 0000000..0b65164 --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/HisenseTv/kaiguanSelected.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/HisenseTv/on.png b/HDL-ON_Android/Assets/Phone/HisenseTv/on.png deleted file mode 100644 index 5ce77d3..0000000 --- a/HDL-ON_Android/Assets/Phone/HisenseTv/on.png +++ /dev/null Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/HisenseTv/shouyeSelected.png b/HDL-ON_Android/Assets/Phone/HisenseTv/shouyeSelected.png new file mode 100644 index 0000000..933d5ec --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/HisenseTv/shouyeSelected.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/HisenseTv/yingliangjiaSelected.png b/HDL-ON_Android/Assets/Phone/HisenseTv/yingliangjiaSelected.png new file mode 100644 index 0000000..1785e81 --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/HisenseTv/yingliangjiaSelected.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/HisenseTv/yingliangjianSelected.png b/HDL-ON_Android/Assets/Phone/HisenseTv/yingliangjianSelected.png new file mode 100644 index 0000000..aa459fe --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/HisenseTv/yingliangjianSelected.png Binary files differ diff --git a/HDL-ON_Android/HDL-ON_Android.csproj b/HDL-ON_Android/HDL-ON_Android.csproj index e7a4c18..5c21aa2 100644 --- a/HDL-ON_Android/HDL-ON_Android.csproj +++ b/HDL-ON_Android/HDL-ON_Android.csproj @@ -580,10 +580,8 @@ <AndroidAsset Include="Assets\Phone\AksIcon\aks.png" /> <AndroidAsset Include="Assets\Phone\AksIcon\like.png" /> <AndroidAsset Include="Assets\Phone\HisenseTv\caidan.png" /> - <AndroidAsset Include="Assets\Phone\HisenseTv\kaiguan.png" /> <AndroidAsset Include="Assets\Phone\HisenseTv\offbj.png" /> <AndroidAsset Include="Assets\Phone\HisenseTv\offtvbj.png" /> - <AndroidAsset Include="Assets\Phone\HisenseTv\on.png" /> <AndroidAsset Include="Assets\Phone\HisenseTv\onbj.png" /> <AndroidAsset Include="Assets\Phone\HisenseTv\shouye.png" /> <AndroidAsset Include="Assets\Phone\HisenseTv\yingliangjia.png" /> @@ -592,6 +590,12 @@ <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\electricaltvhisense_blue.png" /> <AndroidAsset Include="Assets\h5\static\js\index.31e0ba7a.js" /> <AndroidAsset Include="Assets\h5\static\js\pages-index-index.25064587.js" /> + <AndroidAsset Include="Assets\Phone\HisenseTv\guan.png" /> + <AndroidAsset Include="Assets\Phone\HisenseTv\kai.png" /> + <AndroidAsset Include="Assets\Phone\HisenseTv\kaiguanSelected.png" /> + <AndroidAsset Include="Assets\Phone\HisenseTv\shouyeSelected.png" /> + <AndroidAsset Include="Assets\Phone\HisenseTv\yingliangjianSelected.png" /> + <AndroidAsset Include="Assets\Phone\HisenseTv\yingliangjiaSelected.png" /> </ItemGroup> <ItemGroup> <AndroidResource Include="Resources\values\colors.xml" /> diff --git a/HDL-ON_iOS/HDL-ON_iOS.csproj b/HDL-ON_iOS/HDL-ON_iOS.csproj index f3d037d..6b572eb 100644 --- a/HDL-ON_iOS/HDL-ON_iOS.csproj +++ b/HDL-ON_iOS/HDL-ON_iOS.csproj @@ -51,7 +51,7 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <MtouchArch>ARM64</MtouchArch> - <CodesignKey>Apple Development: xuebiao huang (4P32GXQWWK)</CodesignKey> + <CodesignKey>iPhone Developer</CodesignKey> <MtouchDebug>true</MtouchDebug> <MtouchI18n>cjk</MtouchI18n> <MtouchLink>SdkOnly</MtouchLink> @@ -59,7 +59,7 @@ <MtouchEnableSGenConc>false</MtouchEnableSGenConc> <CodesignEntitlements>Entitlements.plist</CodesignEntitlements> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> -<CodesignProvision>OnPro2307291-Dev</CodesignProvision> +<CodesignProvision>鑷姩</CodesignProvision> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <DebugType>none</DebugType> @@ -1611,10 +1611,8 @@ <BundleResource Include="Resources\h5\static\img\equal-plant-ic.7ef6befa.png" /> <BundleResource Include="Resources\h5\static\img\coal-save-ic.6c5fd125.png" /> <BundleResource Include="Resources\h5\static\font\SourceHanSansCN-Normal.otf" /> - <BundleResource Include="Resources\Phone\HisenseTv\on.png" /> <BundleResource Include="Resources\Phone\HisenseTv\yingliangjian.png" /> <BundleResource Include="Resources\Phone\HisenseTv\caidan.png" /> - <BundleResource Include="Resources\Phone\HisenseTv\kaiguan.png" /> <BundleResource Include="Resources\Phone\HisenseTv\offtvbj.png" /> <BundleResource Include="Resources\Phone\HisenseTv\offbj.png" /> <BundleResource Include="Resources\Phone\HisenseTv\electricaltvhisense.png" /> @@ -1745,6 +1743,12 @@ <BundleResource Include="Resources\Phone\AksIcon\zdyyou2.png" /> <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\electricaltvhisense_blue.png" /> <BundleResource Include="Resources\Phone\FunctionIcon\Icon\electricaltvhisense.png" /> + <BundleResource Include="Resources\Phone\HisenseTv\guan.png" /> + <BundleResource Include="Resources\Phone\HisenseTv\kai.png" /> + <BundleResource Include="Resources\Phone\HisenseTv\kaiguanSelected.png" /> + <BundleResource Include="Resources\Phone\HisenseTv\shouyeSelected.png" /> + <BundleResource Include="Resources\Phone\HisenseTv\yingliangjianSelected.png" /> + <BundleResource Include="Resources\Phone\HisenseTv\yingliangjiaSelected.png" /> </ItemGroup> <ItemGroup> <ITunesArtwork Include="iTunesArtwork" /> diff --git a/HDL-ON_iOS/Resources/Phone/HisenseTv/kaiguan.png b/HDL-ON_iOS/Resources/Phone/HisenseTv/guan.png similarity index 100% rename from HDL-ON_iOS/Resources/Phone/HisenseTv/kaiguan.png rename to HDL-ON_iOS/Resources/Phone/HisenseTv/guan.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/HisenseTv/kai.png b/HDL-ON_iOS/Resources/Phone/HisenseTv/kai.png new file mode 100644 index 0000000..ddce0db --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/HisenseTv/kai.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/HisenseTv/kaiguanSelected.png b/HDL-ON_iOS/Resources/Phone/HisenseTv/kaiguanSelected.png new file mode 100644 index 0000000..0b65164 --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/HisenseTv/kaiguanSelected.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/HisenseTv/on.png b/HDL-ON_iOS/Resources/Phone/HisenseTv/on.png deleted file mode 100644 index 5ce77d3..0000000 --- a/HDL-ON_iOS/Resources/Phone/HisenseTv/on.png +++ /dev/null Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/HisenseTv/shouyeSelected.png b/HDL-ON_iOS/Resources/Phone/HisenseTv/shouyeSelected.png new file mode 100644 index 0000000..933d5ec --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/HisenseTv/shouyeSelected.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/HisenseTv/yingliangjiaSelected.png b/HDL-ON_iOS/Resources/Phone/HisenseTv/yingliangjiaSelected.png new file mode 100644 index 0000000..1785e81 --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/HisenseTv/yingliangjiaSelected.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/HisenseTv/yingliangjianSelected.png b/HDL-ON_iOS/Resources/Phone/HisenseTv/yingliangjianSelected.png new file mode 100644 index 0000000..aa459fe --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/HisenseTv/yingliangjianSelected.png Binary files differ diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 265338d..a26909b 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -716,7 +716,7 @@ #region 鐢靛櫒 functionCount = FunctionList.List.GetElectricals().Count; - functionOnCount = FunctionList.List.GetElectricals().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count; + functionOnCount = FunctionList.List.GetElectricals().FindAll((obj) => obj.spk!=SPK.ElectricalTvHisense&&obj.trait_on_off.curValue.ToString() == "on").Count; #if DEBUG functionCount = 1; #endif @@ -835,7 +835,7 @@ IsMoreLines = true, }; functionView.AddChidren(btnName); - //鍘绘帀鍔熻兘澶栭潰寮�鍏充釜鏁�; + //涓嶉渶瑕佹樉绀鸿澶囧紑鐘舵�佹暟閲�; if (item != ShowFunction.Aks && item != ShowFunction.VideoDoorLock && item != ShowFunction.Environmental diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs index 54bcda7..f75ceef 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs @@ -555,7 +555,7 @@ { btnFunctionText.Text = song.name; sceneStatus.value = song.name; - //杩藉姞鎺у埗灞炴�� + //杩藉姞灞炴�� var oldList = new List<SceneFunctionStatus>(); for (int i = 0; i < sceneFunction.status.Count; i++) { @@ -568,7 +568,7 @@ } else if (status.key == FunctionAttributeKey.Url) { - //瀛樺湪url灏变竴璧峰彂閫佽繃鍘� + //瀛樺湪url灏变竴璧峰彂杩囧幓 if (!string.IsNullOrEmpty(song.url)) { //鎺у埗闇�瑕侊紙鐣岄潰涓嶉渶瑕佹樉绀猴級 diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs index 5e38d48..40156ef 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs @@ -238,7 +238,7 @@ MusicPage musicPage = new MusicPage(GetRemoteControl((int)IntType.Player),this.sequencerList); this.vv.AddChidren(musicPage); musicPage.Show(); - musicPage.action += (type) => + musicPage.action += (deviceType) => { SelectedType(); }; @@ -249,7 +249,7 @@ GfPage gfPage = new GfPage(GetRemoteControl((int)IntType.HiFi), this.sequencerList); this.vv.AddChidren(gfPage); gfPage.Show(); - gfPage.action += (type) => + gfPage.action += (deviceType) => { SelectedType(); }; @@ -262,7 +262,7 @@ TvPage tvPage = new TvPage(GetRemoteControl((int)IntType.TV), this.sequencerList); this.vv.AddChidren(tvPage); tvPage.Show(); - tvPage.action += (type) => + tvPage.action += (deviceType) => { SelectedType(); }; @@ -273,7 +273,7 @@ JdhPage jdhPage = new JdhPage(GetRemoteControl((int)IntType.STB), this.sequencerList); this.vv.AddChidren(jdhPage); jdhPage.Show(); - jdhPage.action += (type) => + jdhPage.action += (deviceType) => { SelectedType(); }; @@ -284,7 +284,7 @@ TyyPage tyyPage = new TyyPage(GetRemoteControl((int)IntType.Projector), this.sequencerList); this.vv.AddChidren(tyyPage); tyyPage.Show(); - tyyPage.action += (type) => + tyyPage.action += (deviceType) => { SelectedType(); }; @@ -296,7 +296,7 @@ YkqPage ykqPage = new YkqPage(GetRemoteControl((int)IntType.Control), this.sequencerList); this.vv.AddChidren(ykqPage); ykqPage.Show(); - ykqPage.action += (type) => + ykqPage.action += (deviceType) => { SelectedType(); }; diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs index f7b2203..76a22bc 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs @@ -86,9 +86,9 @@ { return; } - var filters = (Filters)button.Tag; + var filtersSelected = (Filters)button.Tag; - SelectTypeEvent?.Invoke(filters); + SelectTypeEvent?.Invoke(filtersSelected); }; if (defaultIndex != -1 && defaultIndex == i) diff --git a/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTvPage.cs b/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTvPage.cs index 56214c5..d1a5acc 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTvPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/HisenseTV /HisenseTvPage.cs @@ -32,12 +32,13 @@ /// 涓婁竴绾х晫闈㈢殑鏀惰棌鎺т欢 /// </summary> private Button btnCollectionIcon; - /// <summary> /// 澶撮儴甯冨眬 /// </summary> private TopView topView; - BaseFramLayout baseCloseFFL; + /// <summary> + ///涓儴甯冨眬 + /// </summary> VerticalScrolViewLayout vv; /// <summary> /// 褰撳墠璁惧鍚嶇О @@ -52,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; @@ -66,12 +68,6 @@ CustomButton fanhuiBtn; MenuFramLayout muenFrameLayout; SourceFrameLayout sourceFrameLayout; - - - Button btnCloseCollectIcon; - Button btnCloseCurrDeviceName; - Button btnCloseCurrDeviceRoom; - Button clickBtn; /// <summary> /// 琛ㄧず鏉ヨ嚜閭d釜鐣岄潰 @@ -106,12 +102,10 @@ //鍒濆鍖朥I this.InitTopUI(); this.InitOpenUI(); - this.InitCloseUI(); - this.CurrentAssignPage(); //鍒濆鍖栦簨浠� this.EventListener(); //璇诲彇鏁版嵁 - this.ReadData(); + //this.ReadData(); } @@ -143,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();//閲嶆柊璁$畻瀹藉害 }); @@ -166,7 +157,6 @@ { btnOpenCollectIcon.IsSelected = this.device.collect = !btnOpenCollectIcon.IsSelected; this.device.CollectFunction(); - btnCloseCollectIcon.IsSelected = btnOpenCollectIcon.IsSelected; this.btnCollectionIcon.IsSelected = btnOpenCollectIcon.IsSelected; }; @@ -175,42 +165,36 @@ { ControlCommand(HisenseTVFunctionalAttributeConstant.home_page, ""); }); - //鍏虫満 - kaiguanFL.SetClickListener((fl, btnImage, btnText) => + //寮�鏈� + kaijiFL.SetClickListener((fl, btnImage, btnText) => { - ControlCommand(HisenseTVFunctionalAttributeConstant.on_off, "off", (isBool) => - { - if (isBool) - { - CommonMethod.Current.MainThread(() => - { - vv.Visible = false; - baseCloseFFL.Visible = true; - }); - } - else - { - //鎻愮ず:鍏虫満澶辫触; - } - }); + ControlCommand(HisenseTVFunctionalAttributeConstant.on_off, "on"); }); - //鑿滃崟 - caidanFL.SetClickListener((fl, btnImage, btnText) => + //鍏虫満 + guanFL.SetClickListener((fl, btnImage, btnText) => { - ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "11"); + ControlCommand(HisenseTVFunctionalAttributeConstant.on_off, "off"); }); //闊抽噺+ btn_jia.MouseDownEventHandler += (sender, e) => { + btn_jia.IsSelected = true; ControlCommand(HisenseTVFunctionalAttributeConstant.volume_add, ""); }; //闊抽噺- btn_jian.MouseDownEventHandler += (sender, e) => { + btn_jian.IsSelected = true; ControlCommand(HisenseTVFunctionalAttributeConstant.volume_subtract, ""); }; + //鑿滃崟 + caidanBtn.SetClickListener((btn) => + { + ControlCommand(HisenseTVFunctionalAttributeConstant.operation, "11"); + + }); //鎾斁 bofangBtn.SetClickListener((btn) => { @@ -294,36 +278,6 @@ var dic = p.GetHisenseSignalSourceDic(); string value = p.GetValue(dic, key); ControlCommand(HisenseTVFunctionalAttributeConstant.signal, value); - }; - - - //鏀惰棌(鍏虫満) - this.btnCloseCollectIcon.MouseUpEventHandler += (sender, e) => - { - btnCloseCollectIcon.IsSelected = this.device.collect = !btnCloseCollectIcon.IsSelected; - this.device.CollectFunction(); - btnOpenCollectIcon.IsSelected = btnCloseCollectIcon.IsSelected; - this.btnCollectionIcon.IsSelected = btnCloseCollectIcon.IsSelected; - }; - //寮�鏈� - clickBtn.MouseDownEventHandler += (sen, e) => - { - ControlCommand(HisenseTVFunctionalAttributeConstant.on_off, "on", (isBool) => - { - if (isBool) - { - CommonMethod.Current.MainThread(() => - { - vv.Visible = true; - baseCloseFFL.Visible = false; - }); - } - else - { - //鎻愮ず:寮�鏈哄け璐�; - } - }); - }; } @@ -443,32 +397,36 @@ shouyeFL.AddImageView(); shouyeFL.AddTextButtonView(); shouyeFL.GetImageButton().UnSelectedImagePath = "HisenseTv/shouye.png"; + 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().TextID = StringId.guanji; + 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().TextID = StringId.caidan; + 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); @@ -478,14 +436,15 @@ 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 = "闊抽噺", TextID = StringId.yinliang, @@ -497,24 +456,31 @@ 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.TextID = StringId.bofang; @@ -612,138 +578,7 @@ #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 = "宸插叧鏈�", - TextID = StringId.yiguanji, - 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, - TextID = StringId.kaiji, - 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> @@ -755,35 +590,7 @@ this.topView.topNameBtn.TextID = StringId.dianshi; this.AddChidren(topView.TopFLayoutView()); } - /// <summary> - /// 鏍规嵁璁惧寮�鍏崇姸鎬佹樉绀烘寚瀹氱晫闈� - /// (杩涙潵鐨勬椂鍊欑敤鍒�) - /// </summary> - /// <returns></returns> - private void CurrentAssignPage() - { - CommonMethod.Current.MainThread(() => - { - - if (this.device == null) - { - vv.Visible = false; - baseCloseFFL.Visible = true; - return; - } - if (this.device.GetAttrState("on_off") == "on" || this.device.GetAttrState("on_off") == "1") - { - vv.Visible = true; - baseCloseFFL.Visible = false; - } - else - { - vv.Visible = false; - baseCloseFFL.Visible = true; - } - }); - - } + /// <summary> /// 閲嶆柊璁$畻瀹藉害(璁惧鍚嶇О,鎴块棿鎺т欢) @@ -804,23 +611,6 @@ { //閲嶆柊璁$畻瀹藉害 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); } @@ -858,6 +648,7 @@ TextID = StringId.dangqianmenweiguan, TextSize = TextSize.Text14, TextColor = MusicColor.TextColor, + SelectedTextColor= MusicColor.MusicTxet14SelectedColor, TextAlignment = TextAlignment.Center, Gravity = Gravity.CenterHorizontal, Name = "btnText", @@ -891,7 +682,8 @@ { EventHandler<MouseEventArgs> DownClick = (sender, e) => { - //this.BackgroundColor = 0xFFF2F3F7; + btnImage.IsSelected = true; + //btnText.IsSelected = true; action?.Invoke(this, btnImage, btnText); }; this.MouseDownEventHandler += DownClick; @@ -901,7 +693,8 @@ EventHandler<MouseEventArgs> UpClick = (sender, e) => { - //this.BackgroundColor = 0x00000000; + btnImage.IsSelected = false; + //btnText.IsSelected = false; }; this.MouseUpEventHandler += UpClick; btnImage.MouseUpEventHandler += UpClick; @@ -923,9 +716,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); } @@ -937,7 +732,8 @@ { EventHandler<MouseEventArgs> DownClick = (sender, e) => { - this.BackgroundColor = 0xFFF2F3F7; + //this.BackgroundColor = 0xFFF2F3F7; + this.IsSelected = true; action?.Invoke(this); }; this.MouseDownEventHandler += DownClick; @@ -945,7 +741,8 @@ EventHandler<MouseEventArgs> UpClick = (sender, e) => { - this.BackgroundColor = 0xffECEDEE; + //this.BackgroundColor = 0xffECEDEE; + this.IsSelected = false; }; this.MouseUpEventHandler += UpClick; diff --git a/SiriIntents/SiriIntents.csproj b/SiriIntents/SiriIntents.csproj index afb5d87..79a1208 100644 --- a/SiriIntents/SiriIntents.csproj +++ b/SiriIntents/SiriIntents.csproj @@ -28,7 +28,7 @@ <MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler> <DeviceSpecificBuild>false</DeviceSpecificBuild> <MtouchVerbosity></MtouchVerbosity> - <CodesignProvision>OnProSiri230605-1-Dev</CodesignProvision> + <CodesignProvision>OnProSiri230729-1-Dev</CodesignProvision> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <DebugType>pdbonly</DebugType> @@ -80,7 +80,7 @@ <MtouchArch>ARM64</MtouchArch> <MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler> <MtouchVerbosity></MtouchVerbosity> - <CodesignProvision>OnProSiri230630-1-Dev</CodesignProvision> + <CodesignProvision>OnProSiri230729-1-Dev</CodesignProvision> </PropertyGroup> <ItemGroup> <Reference Include="System" /> diff --git a/SiriIntentsUI/SiriIntentsUI.csproj b/SiriIntentsUI/SiriIntentsUI.csproj index 4d07b7f..87fa8fa 100644 --- a/SiriIntentsUI/SiriIntentsUI.csproj +++ b/SiriIntentsUI/SiriIntentsUI.csproj @@ -29,7 +29,7 @@ <DeviceSpecificBuild>false</DeviceSpecificBuild> <MtouchVerbosity></MtouchVerbosity> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CodesignProvision>OnProSiriUI230605-1-Dev</CodesignProvision> + <CodesignProvision>OnProSiriUI230729-1-Dev</CodesignProvision> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "> <DebugType>pdbonly</DebugType> @@ -84,7 +84,7 @@ <MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler> <MtouchVerbosity></MtouchVerbosity> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <CodesignProvision>OnProSiriUI230630-1-Dev</CodesignProvision> + <CodesignProvision>OnProSiriUI230729-1-Dev</CodesignProvision> </PropertyGroup> <ItemGroup> <Reference Include="System" /> -- Gitblit v1.8.0