From 8fdb0e0c9d04b5069e9c83e9a5f38ba085485663 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期二, 07 三月 2023 18:21:29 +0800 Subject: [PATCH] 2023年03月07日18:21:18 --- HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs | 4 HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 20 +++- HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/VideoDoorLockOpen.png | 0 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/HistoryList.png | 0 HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/Cell.png | 0 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/Cell.png | 0 HDL-ON_iOS/HDL-ON_iOS.csproj | 8 ++ HDL_ON/UI/UI2/2-Classification/RoomPage.cs | 1 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/OneOpenLock.png | 0 HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/HistoryList.png | 0 HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/UnLocked.png | 0 HDL-ON_Android/HDL-ON_Android.csproj | 10 ++ HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/OneOpenLock.png | 0 HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/VideoDoorLockClose.png | 0 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/UnLocking.png | 0 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorLockClose.png | 0 HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/RTV.png | 0 HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs | 2 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorlockClose.png | 0 HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/UnLocking.png | 0 HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs | 15 ++- HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/RTV.png | 0 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/UnLocked.png | 0 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/history.png | 0 HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorLockOpen.png | 0 HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs | 2 HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs | 169 ++++++++++++++++++++++++++++++----------- 27 files changed, 167 insertions(+), 64 deletions(-) diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/Cell.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/Cell.png new file mode 100644 index 0000000..875ba67 --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/Cell.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/HistoryList.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/HistoryList.png new file mode 100644 index 0000000..0ad1a69 --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/HistoryList.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/OneOpenLock.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/OneOpenLock.png new file mode 100644 index 0000000..779d661 --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/OneOpenLock.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/RTV.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/RTV.png new file mode 100644 index 0000000..002d330 --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/RTV.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/UnLocked.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/UnLocked.png new file mode 100644 index 0000000..058119f --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/UnLocked.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/UnLocking.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/UnLocking.png new file mode 100644 index 0000000..6c15f4f --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/UnLocking.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorLockClose.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorLockClose.png new file mode 100644 index 0000000..e4d40fb --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorLockClose.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorLockOpen.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorLockOpen.png new file mode 100644 index 0000000..5d35a45 --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorLockOpen.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorlockClose.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorlockClose.png new file mode 100644 index 0000000..e4d40fb --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/VideoDoorlockClose.png Binary files differ diff --git a/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/history.png b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/history.png new file mode 100644 index 0000000..7609540 --- /dev/null +++ b/HDL-ON_Android/Assets/Phone/FunctionIcon/DoorLock/history.png Binary files differ diff --git a/HDL-ON_Android/HDL-ON_Android.csproj b/HDL-ON_Android/HDL-ON_Android.csproj index 7dab4a9..88add3e 100644 --- a/HDL-ON_Android/HDL-ON_Android.csproj +++ b/HDL-ON_Android/HDL-ON_Android.csproj @@ -420,6 +420,14 @@ <AndroidAsset Include="Assets\h5\static\img\coal-save-ic.6c5fd125.png" /> <AndroidAsset Include="Assets\h5\static\font\SourceHanSansCN-Normal.otf" /> <AndroidAsset Include="Assets\Phone\MusicIcon\currentPlayList.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\OneOpenLock.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\RTV.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\UnLocked.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\UnLocking.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\VideoDoorlockClose.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\VideoDoorLockOpen.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\History.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\cell.png" /> </ItemGroup> <ItemGroup> <AndroidResource Include="Resources\values\colors.xml" /> @@ -1617,7 +1625,7 @@ <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\NormallyOpenIcon3.png" /> </ItemGroup> <ItemGroup> - <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\History.png" /> + <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\HistoryList.png" /> </ItemGroup> <ItemGroup> <AndroidAsset Include="Assets\Phone\FunctionIcon\DoorLock\DoorLock.png" /> diff --git a/HDL-ON_iOS/HDL-ON_iOS.csproj b/HDL-ON_iOS/HDL-ON_iOS.csproj index d6e2020..c7a31ee 100644 --- a/HDL-ON_iOS/HDL-ON_iOS.csproj +++ b/HDL-ON_iOS/HDL-ON_iOS.csproj @@ -1563,6 +1563,14 @@ <BundleResource Include="Resources\h5\static\img\coal-save-ic.6c5fd125.png" /> <BundleResource Include="Resources\h5\static\font\SourceHanSansCN-Normal.otf" /> <BundleResource Include="Resources\Phone\MusicIcon\currentPlayList.png" /> + <BundleResource Include="Resources\Phone\FunctionIcon\DoorLock\HistoryList.png" /> + <BundleResource Include="Resources\Phone\FunctionIcon\DoorLock\OneOpenLock.png" /> + <BundleResource Include="Resources\Phone\FunctionIcon\DoorLock\RTV.png" /> + <BundleResource Include="Resources\Phone\FunctionIcon\DoorLock\UnLocked.png" /> + <BundleResource Include="Resources\Phone\FunctionIcon\DoorLock\UnLocking.png" /> + <BundleResource Include="Resources\Phone\FunctionIcon\DoorLock\VideoDoorLockClose.png" /> + <BundleResource Include="Resources\Phone\FunctionIcon\DoorLock\VideoDoorLockOpen.png" /> + <BundleResource Include="Resources\Phone\FunctionIcon\DoorLock\Cell.png" /> </ItemGroup> <ItemGroup> <ITunesArtwork Include="iTunesArtwork" /> diff --git a/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/Cell.png b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/Cell.png new file mode 100644 index 0000000..875ba67 --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/Cell.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/HistoryList.png b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/HistoryList.png new file mode 100644 index 0000000..0ad1a69 --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/HistoryList.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/OneOpenLock.png b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/OneOpenLock.png new file mode 100644 index 0000000..779d661 --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/OneOpenLock.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/RTV.png b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/RTV.png new file mode 100644 index 0000000..002d330 --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/RTV.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/UnLocked.png b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/UnLocked.png new file mode 100644 index 0000000..058119f --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/UnLocked.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/UnLocking.png b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/UnLocking.png new file mode 100644 index 0000000..6c15f4f --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/UnLocking.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/VideoDoorLockClose.png b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/VideoDoorLockClose.png new file mode 100644 index 0000000..e4d40fb --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/VideoDoorLockClose.png Binary files differ diff --git a/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/VideoDoorLockOpen.png b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/VideoDoorLockOpen.png new file mode 100644 index 0000000..5d35a45 --- /dev/null +++ b/HDL-ON_iOS/Resources/Phone/FunctionIcon/DoorLock/VideoDoorLockOpen.png Binary files differ diff --git a/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs b/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs index f3d4922..b109f73 100644 --- a/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs +++ b/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs @@ -12,7 +12,7 @@ /// <summary> /// 鍔熻兘鎺у埗鐣岄潰璺宠浆浜嬩欢 /// </summary> - public EventHandler<MouseEventArgs> LoadEvent_SkipFunctionControlPage(Function function, Button btnCollectionIcon, Button btnName, Button btnFromFloor + public EventHandler<MouseEventArgs> LoadEvent_SkipFunctionControlPage(Function function, Button btnCollectionIcon, Button btnName, Button btnFromFloor, Comerom comerom ) { EventHandler<MouseEventArgs> eventHandler = (sender, e) => @@ -309,7 +309,7 @@ break; case SPK.VideoDoorLock: { //钀ょ煶瑙嗛闂ㄩ攣 - var form = new VideoDoorLockPage(function, btnName, btnFromFloor, Comerom.room); + var form = new VideoDoorLockPage(function, btnName, btnFromFloor,comerom); MainPage.BasePageView.AddChidren(form); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; form.Show(); diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index 788f78b..9d3f726 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -725,6 +725,7 @@ { int index = 0; var list = FunctionList.List.GetDeviceFunctionList(); + foreach (var function in list) { //闊充箰妯″潡鏈変富浠庡叧绯伙紝闇�瑕佺壒娈婂鐞� @@ -1202,7 +1203,11 @@ btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_blue.png"; btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_blue.png"; } - + else if (function.spk == SPK.VideoDoorLock) + { + btnIcon.UnSelectedImagePath =UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.GetVideoDoorLockIcon(Comerom.collect); + //btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_blue.png"; + } else { Button btnSwitch; @@ -1238,7 +1243,7 @@ }; - var skipControlPageEvent = new PublicAssmebly().LoadEvent_SkipFunctionControlPage(function, btnCollection, btnName, btnZone); + var skipControlPageEvent = new PublicAssmebly().LoadEvent_SkipFunctionControlPage(function, btnCollection, btnName, btnZone,Comerom.collect); view.MouseUpEventHandler = skipControlPageEvent; btnName.MouseUpEventHandler = skipControlPageEvent; btnIcon.MouseUpEventHandler = skipControlPageEvent; @@ -1452,11 +1457,14 @@ LoadEvent_ControlScene(btnCoverd, btnName, btnZone, btnShowDelay, scene); - btnSettingIcon.MouseUpEventHandler = (sender, e) => { - Action backAction = () => { + btnSettingIcon.MouseUpEventHandler = (sender, e) => + { + Action backAction = () => + { //LoadSceneFunctionControlZone(); }; - Action refreshAction = () => { + Action refreshAction = () => + { btnName.Text = scene.name; btnZone.Text = scene.GetRoomListName(); //view.BackgroundImagePath = (scene as Scene).ImagePath; @@ -1465,7 +1473,7 @@ }; var aep = new SceneEditPage(scene, backAction); MainPage.BasePageView.AddChidren(aep); - aep.LoadPage( refreshAction); + aep.LoadPage(refreshAction); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; //鍦烘櫙姝e湪鍊掕鏃舵墽琛屼腑 diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs index f15644f..1b607d7 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs @@ -188,7 +188,7 @@ } else if (function.spk == SPK.VideoDoorLock) { - btnIcon.UnSelectedImagePath = UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.GetVideoDoorLockIcon; + btnIcon.UnSelectedImagePath = UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.GetVideoDoorLockIcon(Comerom.function); } else if (function.spk == SPK.HvacCac) { diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs b/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs index f2a4587..fba531b 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs @@ -405,7 +405,7 @@ /// </summary> void LoadEvent_DivSkipEvent() { - var eventHandler = new PublicAssmebly().LoadEvent_SkipFunctionControlPage(function, btnCollectionIcon, btnName, btnFromFloor); + var eventHandler = new PublicAssmebly().LoadEvent_SkipFunctionControlPage(function, btnCollectionIcon, btnName, btnFromFloor,Comerom.function); this.MouseUpEventHandler = eventHandler; btnName.MouseUpEventHandler = eventHandler; btnFromFloor.MouseUpEventHandler = eventHandler; diff --git a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs index c076ac5..ab78fd4 100644 --- a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs @@ -78,7 +78,6 @@ }; bodyView.AddChidren(functionListView); - foreach (var function in room.GetRoomFunctions(false)) { if (MainPage.RoomNotSupportFunctionList.Contains( function.spk)) diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs index b64ff77..2abf7ac 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs @@ -29,12 +29,17 @@ /// <summary> /// 钀ょ煶瑙嗛闂ㄩ攣鐨勫浘鏍� /// </summary> - public string GetVideoDoorLockIcon{ - get { - - return "FunctionIcon/DoorLock/DoorLock.png"; - + public string GetVideoDoorLockIcon(Comerom comerom) + { + if (comerom == Comerom.collect) + { + return "FunctionIcon/DoorLock/VideoDoorLockOpen.png"; } + else + { + return "FunctionIcon/DoorLock/VideoDoorlockClose.png"; + } + } /// <summary> diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs index c62b717..b6922dc 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs @@ -32,13 +32,25 @@ /// </summary> private TopView topView; /// <summary> + /// 褰撳墠璁惧鍚嶇О + /// </summary> + private Button btnCurrDeviceName; + /// <summary> + /// 鍖哄煙 + /// </summary> + private Button btnCurrDeviceRoom; + /// <summary> + /// 鐢甸噺 + /// </summary> + private Button btnCell; + /// <summary> ///鏀惰棌鍥炬爣 /// </summary> private Button btnCollectIcon; /// <summary> /// 闂ㄩ攣鐘舵�� /// </summary> - private CustomFrameLayout doorLockFL; + private Button btnDoorLockIcon; /// <summary> /// 瀹炴椂瑙嗛 /// </summary> @@ -55,6 +67,7 @@ /// 鍘嗗彶璁板綍 /// </summary> private CustomFrameLayout recordFL; + /// <summary> /// 琛ㄧず鏉ヨ嚜閭d釜鐣岄潰 /// </summary> @@ -82,7 +95,7 @@ //鍒濆鍖朥I this.InitUI(); //鍒濆鍖栦簨浠� - this.Events(); + this.EventListener (); } @@ -95,17 +108,71 @@ this.BackgroundColor = MusicColor.ViewColor; this.topView = new TopView(); this.topView.setBtn.Visible = true; - this.topView.topNameBtn.Text = this.device.name; + this.topView.topNameBtn.TextID =StringId.shipinmensuo; this.AddChidren(topView.TopFLayoutView()); - var middLayout = new FrameLayout + var middleFl=new FrameLayout { Y = topView.fLayout.Bottom, Height = Application.GetRealHeight(H_W.H - H_W.T_Height), }; - this.AddChidren(middLayout); + this.AddChidren(middleFl); + + var whiteFl = new FrameLayout + { + Y = Application.GetRealHeight(24), + X = Application.GetRealWidth(24), + Height = Application.GetRealHeight(526), + Width = Application.GetRealWidth(327), + BackgroundImagePath = "MusicIcon/playBj.png", + Name = "fl", + }; + middleFl.AddChidren(whiteFl); + + + btnCurrDeviceName= 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, + }; + whiteFl.AddChidren(btnCurrDeviceName); + + btnCurrDeviceRoom = new Button + { + TextSize = TextSize.Text12, + TextColor = MusicColor.MusicNoTxetColor, + Width = Application.GetRealWidth(160), + Height = Application.GetRealHeight(33), + Y = btnCurrDeviceName.Bottom+ Application.GetRealHeight(4), + X = Application.GetRealWidth(16), + Text = this.device.GetRoomListName(), + TextAlignment = TextAlignment.CenterLeft, + }; + whiteFl.AddChidren(btnCurrDeviceRoom); + btnCurrDeviceRoom.Width=btnCurrDeviceName.GetTextWidth(); + + btnCell = new Button + { + TextSize = TextSize.Text10, + TextColor = MusicColor.TextColor, + Y = Application.GetRealHeight(43), + X = btnCurrDeviceRoom.Right+Application.GetRealWidth(17), + //Text ="60"+"%", + //TextAlignment = TextAlignment.Center, + Width = Application.GetRealWidth(36), + Height = Application.GetRealWidth(36), + UnSelectedImagePath ="FunctionIcon/DoorLock/Cell.png", + }; + whiteFl.AddChidren(btnCell); + btnCollectIcon = new Button { - X = Application.GetRealWidth(273), + X = Application.GetRealWidth(264), Y = Application.GetRealHeight(14), Width = Application.GetRealWidth(40), Height = Application.GetRealWidth(40), @@ -114,54 +181,63 @@ IsSelected= this.device.collect, Name = "collect" }; - middLayout.AddChidren(btnCollectIcon); + whiteFl.AddChidren(btnCollectIcon); //闂ㄩ攣鐘舵�� - doorLockFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); - middLayout.AddChidren(doorLockFL); - doorLockFL.X = Application.GetRealWidth(40); - doorLockFL.Y = btnCollectIcon.Bottom + Application.GetRealHeight(20); - doorLockFL.AddImageView(); - doorLockFL.AddTextButtonView(); - doorLockFL.GetTextButton().TextID = StringId.shishishipin; + btnDoorLockIcon = new Button + { + X = Application.GetRealWidth(65), + Y = Application.GetRealHeight(108), + Width = Application.GetRealWidth(198), + Height = Application.GetRealWidth(200), + UnSelectedImagePath = "FunctionIcon/DoorLock/UnLocked.png", + SelectedImagePath = "FunctionIcon/DoorLock/UnLocking.png", + }; + whiteFl.AddChidren(btnDoorLockIcon); + //瀹炴椂瑙嗛 rtvFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); - middLayout.AddChidren(rtvFL); - rtvFL.X = Application.GetRealWidth(20); - rtvFL.Y = Application.GetRealHeight(300); + whiteFl.AddChidren(rtvFL); + rtvFL.Y = btnDoorLockIcon.Bottom+ Application.GetRealHeight(45); + rtvFL.X = Application.GetRealWidth(68); rtvFL.AddImageView(); rtvFL.AddTextButtonView(); + rtvFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/RTV.png"; rtvFL.GetTextButton().TextID = StringId.shishishipin; + //鍘嗗彶璁板綍 + recordFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); + whiteFl.AddChidren(recordFL); + recordFL.Y = btnDoorLockIcon.Bottom + Application.GetRealHeight(45); + recordFL.X = rtvFL.Right + Application.GetRealHeight(CustomFrameLayout.interval); + recordFL.AddImageView(); + recordFL.AddTextButtonView(); + recordFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/HistoryList.png"; + recordFL.GetTextButton().TextID = StringId.lishijilu; //涓�閿紑閿� openFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); - middLayout.AddChidren(openFL); - openFL.X = rtvFL.Right + Application.GetRealWidth(20); - openFL.Y = Application.GetRealHeight(300); + whiteFl.AddChidren(openFL); + openFL.X = rtvFL.X; + openFL.Y = rtvFL.Bottom+Application.GetRealHeight(14); openFL.AddImageView(); openFL.AddTextButtonView(); + openFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/OneOpenLock.png"; openFL.GetTextButton().TextID = StringId.yijiankaisuo; //涓存椂瀵嗙爜 pswFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); - middLayout.AddChidren(pswFL); - pswFL.X = openFL.Right + Application.GetRealWidth(20); - pswFL.Y = Application.GetRealHeight(300); + whiteFl.AddChidren(pswFL); + pswFL.X = recordFL.X; + pswFL.Y = rtvFL.Bottom + Application.GetRealHeight(14); pswFL.AddImageView(); pswFL.AddTextButtonView(); + pswFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/OneOpenLock.png"; pswFL.GetTextButton().TextID = StringId.linshimima1; - //鍘嗗彶璁板綍 - recordFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); - middLayout.AddChidren(recordFL); - recordFL.X = Application.GetRealWidth(20); - recordFL.Y = Application.GetRealHeight(300 + 100); - recordFL.AddImageView(); - recordFL.AddTextButtonView(); - recordFL.GetTextButton().TextID = StringId.lishijilu; + #endregion } /// <summary> /// 娉ㄥ唽浜嬩欢 /// </summary> - private void Events() + private void EventListener() { //杩斿洖 this.topView.clickBackBtn.MouseUpEventHandler += (sender, e) => @@ -184,6 +260,8 @@ this.btnDeviceName.Text = this.device.name; this.btnRoomName.Text = this.device.GetRoomListName(); this.topView.topNameBtn.Text = this.device.name; + this.btnCurrDeviceName.Text = this.device.name; + this.btnCurrDeviceRoom.Text= this.device.GetRoomListName(); ////浠庢柊璁$畻瀹藉害 //this.btnDeviceName.Text = btnDeviceName.Text; @@ -223,11 +301,11 @@ /// </summary> class CustomFrameLayout : FrameLayout { - public const int widthFrameLayout = 100; - public const int heightFrameLayout = 80; - public const int yFrameLayout = 300; - public const int xFrameLayout = 20; - public const int interval = 20;//琛屼腑鐨勫垪闂撮殧鍊� + public const int widthFrameLayout = 74; + public const int heightFrameLayout = 70; + public const int yFrameLayout = 353; + public const int xFrameLayout = 68; + public const int interval = 47;//琛屼腑鐨勫垪闂撮殧鍊� public CustomFrameLayout(int width, int height, int x = 0, int y = 0) { @@ -239,26 +317,23 @@ } Button btnStateImage = new Button { - Width = Application.GetRealWidth(40), - Height = Application.GetRealWidth(40), - UnSelectedImagePath = "MusicIcon/collect.png", - SelectedImagePath = "MusicIcon/collectSelected.png", - Gravity = Gravity.CenterHorizontal, + Width = Application.GetRealWidth(32), + Height = Application.GetRealWidth(32), + Gravity = Gravity.TopCenter, Name = "btnStateImage", }; Button btnStateText = new Button { - Y = Application.GetRealHeight(20), + Y = Application.GetRealHeight(4), Width = Application.GetRealWidth(100), Height = Application.GetRealWidth(20), TextID = StringId.dangqianmenweiguan, - TextSize = TextSize.Text14, - TextColor = MusicColor.TextColor, + TextSize = TextSize.Text12, + TextColor = MusicColor.TextCancelColor, + TextAlignment=TextAlignment.Center, Gravity = Gravity.CenterHorizontal, Name = "btnStateText" - - }; public void AddImageView() { -- Gitblit v1.8.0