From 3793a9a38ac6c4c4111c2bba3a35a71c30601e82 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 13 四月 2020 19:38:24 +0800 Subject: [PATCH] 上传个东西 --- ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/10.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs | 14 ZigbeeApp/GateWay.Droid/Assets/Language.ini | 49 ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs | 10058 +++++++++++++++++------------------ ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonLayout.cs | 19 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/Contents.json | 56 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/320*480.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs | 2 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*1136.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*768.png | 0 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/Residence/SelectLocalRoomImageForm.cs | 118 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1004.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs | 16 ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs | 33 ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs | 188 ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitSettionForm.cs | 12 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2008.png | 0 ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs | 16 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/10.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterColor.cs | 4 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*1136-1.png | 0 ZigbeeApp/Shared/Phone/Device/Logic/TimePage.cs | 269 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/3.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242*2688_XS Max.png | 0 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/7.png | 0 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/7.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs | 24 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlAlarmsLogic.cs | 22 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1024.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordAddNewForm.cs | 20 ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs | 5 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/0.png | 0 ZigbeeApp/Shared/Phone/MainPage/Controls/ListRoomCardControl.cs | 39 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/9.png | 0 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/1.png | 0 ZigbeeApp/Shared/Phone/MainPage/Controls/SceneCardControl.cs | 38 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlRoomLogic.cs | 15 ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs | 13 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1496.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2436*1125.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs | 12 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/12.png | 0 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/9.png | 0 ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs | 10 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs | 14 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242*2208-1.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1792*828.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueButtonSettionForm.cs | 16 ZigbeeApp/Shared/Phone/ZigBee/Device/DeviceType.cs | 10 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*960-1.png | 0 ZigbeeApp/Home.Ios/Resources/Phone/Logo/2.png | 0 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/0.png | 0 ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs | 4 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/13.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1125*2436.png | 0 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/2.png | 0 ZigbeeApp/Shared/Phone/ZigBee/Device/HumiditySensor.cs | 13 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/4.png | 0 ZigbeeApp/Shared/DLL/Android/Shared.Droid.dll | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1536.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2208*1242.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/750*1334.png | 0 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/13.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceDoorLockLogic.cs | 191 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs | 33 ZigbeeApp/Shared/Phone/ZigBee/Device/FreshAir.cs | 166 ZigbeeApp/Home.Ios/Info.plist | 4 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs | 19 ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs | 4 ZigbeeApp/Shared/Phone/Category/AdjustTargetAddDelayTimeForm.cs | 12 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs | 136 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*2732-1.png | 0 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs | 71 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*748.png | 0 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/6.png | 0 ZigbeeApp/Shared/Phone/UserView/LoginLoading.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs | 21 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2048-1.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*960.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/RoomDeviceGroupMenuControl.cs | 174 ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs | 50 ZigbeeApp/Shared/Shared.projitems | 56 ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs | 15 ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs | 4 ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs | 1 ZigbeeApp/Shared/Phone/Category/SelectLocalSceneImageForm.cs | 119 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFunctionSettionForm.cs | 16 ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs | 7 ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddNewForm.cs | 19 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs | 39 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/5.png | 0 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/11.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs | 8 ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetStatuSelectAcForm.cs | 40 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/4.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueEnvironmentButtonSettionForm.cs | 12 ZigbeeApp/Shared/DLL/IOS/Shared.IOS.dll | 0 ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj | 51 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/8.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*768-1.png | 0 ZigbeeApp/Shared/Common/CommonPage.cs | 2 ZigbeeApp/Shared/Phone/Device/Logic/Send.cs | 8 ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs | 12 ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs | 52 ZigbeeApp/Home.Ios/Resources/Phone/Item/NormallyOpen.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs | 16 ZigbeeApp/Shared/Phone/Device/Logic/OneTimePoint.cs | 106 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/2.png | 0 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/11.png | 0 ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml | 2 ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockHistoryLogForm.cs | 397 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2048.png | 0 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/8.png | 0 ZigbeeApp/GateWay.Droid/Resources/drawable/Loading.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceDryContactSettionForm.cs | 30 ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs | 32 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs | 2 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/1.png | 0 ZigbeeApp/Shared/Phone/MainPage/DeviceDetailInfoForm.cs | 26 ZigbeeApp/Shared/Phone/UserCenter/Residence/AddNewRoomForm.cs | 29 ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswEditorForm.cs | 170 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs | 8 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/3.png | 0 ZigbeeApp/GateWay.Droid/Assets/Phone/Logo/2.png | 0 ZigbeeApp/Home.Ios/Resources/Language.ini | 49 ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/DeviceCurtainCardControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs | 12 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1024-1.png | 0 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2688*1242.png | 0 ZigbeeApp/Home.Ios/Home.IOS.csproj | 71 ZigbeeApp/GateWay.Droid/Assets/Phone/Item/NormallyOpen.png | 0 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs | 2 ZigbeeApp/Shared/R.cs | 128 ZigbeeApp/Shared/Phone/Device/Logic/OneLogic.cs | 45 ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs | 15 ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordUserEditorForm.cs | 57 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/IconViewControl.cs | 2 ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceAcDetailCardForm.cs | 18 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelButtonSettionForm.cs | 18 ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1536-1.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs | 11 ZigbeeApp/Shared/Common/Device.cs | 85 ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs | 24 ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListForm.cs | 7 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs | 35 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/DateSelectControl.cs | 7 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TimeSettignPage.cs | 9 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSceneLogic.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameListControl.cs | 22 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs | 30 ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/6.png | 0 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/12.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs | 7 /dev/null | 1912 ------ ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/828*1792_XR.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/PicViewControl.cs | 6 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewaySearchListForm.cs | 7 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlControlLogic.cs | 84 ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs | 29 ZigbeeApp/Shared/Phone/ZigBee/Device/CommonDevice.cs | 764 -- ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockScreeningTypeForm.cs | 17 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFunctionSettionForm.cs | 16 ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/5.png | 0 165 files changed, 7,923 insertions(+), 8,845 deletions(-) diff --git a/ZigbeeApp/GateWay.Droid/Assets/Language.ini b/ZigbeeApp/GateWay.Droid/Assets/Language.ini index ab34f65..a46cfd0 100755 --- a/ZigbeeApp/GateWay.Droid/Assets/Language.ini +++ b/ZigbeeApp/GateWay.Droid/Assets/Language.ini @@ -152,8 +152,8 @@ 147=鎵嬪娍寮�閿� 148=璇风粦瀹氳繙绋嬪紑閿佺殑闂ㄩ攣 149=鍘昏缃� -150=璇峰墠寰�涓汉涓績{0}璁剧疆浜屾瀹夊叏楠岃瘉鏂瑰紡 -151=璁剧疆浜屾瀹夊叏楠岃瘉鏂瑰紡 +150=璇峰墠寰�涓汉涓績{0}寮�鍚繙绋嬪紑閿侀獙璇� +151=璇峰墠寰�涓汉涓績{0}璁剧疆浜屾瀹夊叏楠岃瘉鏂瑰紡 152=寮�鍚繙绋嬪紑閿侀獙璇� 153=闂ㄩ攣 154=杩滅▼寮�閿� @@ -273,7 +273,6 @@ 266=褰撳墠璁惧涓嶅湪绾� 267=鑾峰彇闊抽噺澶辫触 268=纭畾鍙栨秷璇ユ垚鍛樼殑杩滅▼寮�閿佹潈闄� -269=甯稿紑妯″紡灏嗕簬{0}鍙栨秷 269=闆舵椂鍖� 270=涓滀竴鍖� 271=涓滀簩鍖� @@ -305,6 +304,8 @@ 297= 澶辨晥鏃堕棿涓嶈兘鐪佺暐 298= 澶辨晥鏃堕棿涓嶈兘澶т簬36灏忔椂 299= 澶辨晥鏃堕棿涓嶈兘灏忎簬1灏忔椂 +300=鏂伴 +301=闈炵鐞嗗憳涓嶈兘鍦ㄥ父寮�妯″紡涓嬫搷浣� @@ -1403,9 +1404,9 @@ 15697=妯″潡鏇存崲鐢垫睜 15698=閿欒灏濊瘯寮�閿佽鎶� 15699=鏆村姏寮�闂� -15700=甯稿紑妯″紡寮�鍚� -15701=甯稿紑妯″紡缁撴潫 -15702=闂ㄩ搩瑙﹀彂 +15700=甯稿紑妯″紡寮�鍚�(闂ㄩ攣瑙﹀彂) +15701=甯稿紑妯″紡缁撴潫(闂ㄩ攣瑙﹀彂) +15702=鏈変汉璁块棶 15703=鍘嗗彶璁板綍 15704=绫诲瀷绛涢�� 15705=娓呯┖璁板綍 @@ -1789,6 +1790,9 @@ 16085=涓埆鎵ц鐩爣娣诲姞澶辫触 16086=鍒濆鍖栨墽琛岀洰鏍囧け璐� 16087=淇敼鍦烘櫙鍚嶇О澶辫触 +16088=甯稿紑妯″紡寮�鍚�(缃戝叧瑙﹀彂) +16089=甯稿紑妯″紡缁撴潫(缃戝叧瑙﹀彂) +16090=甯稿紑妯″紡 ;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄帴鍙g殑杩斿洖淇℃伅缈昏瘧,浠�18000寮�濮嬧槄鈽呪槄鈽� 18004=鎸囧畾缃戝叧宸茬粡琚粦瀹� @@ -1895,7 +1899,7 @@ 30017=zigbee涓户鍣� 30018=12鎸夐敭瑙︽懜闈㈡澘(1璺户鐢靛櫒搴曞骇) 30019=4鎸夐敭瑙︽懜闈㈡澘(鍙甫鐢垫簮搴曞骇) -30020=绾㈠浼犳劅鍣� +30020=Zigbee浜轰綋绉诲姩浼犳劅鍣�(鐞冨舰) 30021=1璺皟鍏夊櫒灏忔ā鍧� 30022=zigbee杞珺uspro鍗忚杞崲鍣� 30023=zigbee杞�485鍗忚杞崲鍣� @@ -1923,7 +1927,7 @@ 40005=闂ㄩ攣 40006=绌鸿皟 40007=涓户鍣� -40008=鏅鸿兘绌哄叧 +40008=鏅鸿兘绌哄紑 40009=杞崲鍣� 40010=褰╃伅 40011=娓╂箍搴︿紶鎰熷櫒 @@ -1985,4 +1989,31 @@ 60007=璋冨厜妯″潡 60008=杞崲鍣� 60009=绌鸿皟妯″潡 -60010=鏅鸿兘闂ㄩ攣 \ No newline at end of file +60010=鏅鸿兘闂ㄩ攣 + +;//鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄坊鍔犳柊璁惧鐣岄潰閭i噷鏄剧ず鐨勫悕瀛�,浠�70000寮�濮嬧槄鈽呪槄鈽� +70000=2鎸夐敭闈㈡澘 +70001=3鎸夐敭闈㈡澘 +70002=4鎸夐敭闈㈡澘 +70003=鏂规偊鍗曞紑鍙屾帶闈㈡澘 +70004=鏂规偊鍙屽紑鍥涙帶闈㈡澘 +70005=鏂规偊鍥涘紑鍏帶闈㈡澘 +70006=鏂规偊鏂伴灏忔ā鍧� +70007=鏂规偊鏂伴闈㈡澘 +70008=鏂规偊鐜闈㈡澘 +70009=绐楀笜闈㈡澘 +70010=3璺户鐢靛櫒 +70011=1璺皟鍏夊櫒 +70012=绐楀笜鐢垫満 +70013=鍗峰笜鐢垫満 +70014=绌鸿皟缃戝叧 +70015=闂ㄩ攣 +70016=PIR浼犳劅鍣� +70017=绾㈠浼犳劅鍣� +70018=鐕冩皵浼犳劅鍣� +70019=鐑熼浘浼犳劅鍣� +70020=姘存蹈浼犳劅鍣� +70021=闂ㄧ獥浼犳劅鍣� +70022=娓╂箍搴︿紶鎰熷櫒 +70023=涓户鍣� +70024=鏅鸿兘绌哄紑 \ No newline at end of file diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Item/NormallyOpen.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/Item/NormallyOpen.png new file mode 100755 index 0000000..079c5db --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/Item/NormallyOpen.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Logo/2.jpg b/ZigbeeApp/GateWay.Droid/Assets/Phone/Logo/2.jpg deleted file mode 100755 index c0c53ac..0000000 --- a/ZigbeeApp/GateWay.Droid/Assets/Phone/Logo/2.jpg +++ /dev/null Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Logo/2.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/Logo/2.png new file mode 100755 index 0000000..7a07804 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/Logo/2.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/0.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/0.png new file mode 100755 index 0000000..b58dd77 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/0.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/1.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/1.png new file mode 100755 index 0000000..8a1ddc7 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/1.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/10.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/10.png new file mode 100755 index 0000000..d1f0d95 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/10.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/11.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/11.png new file mode 100755 index 0000000..bb9e8b0 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/11.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/12.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/12.png new file mode 100755 index 0000000..443e809 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/12.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/13.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/13.png new file mode 100755 index 0000000..2f94a2e --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/13.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/2.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/2.png new file mode 100755 index 0000000..919c660 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/2.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/3.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/3.png new file mode 100755 index 0000000..471a280 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/3.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/4.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/4.png new file mode 100755 index 0000000..5d5ff68 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/4.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/5.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/5.png new file mode 100755 index 0000000..7ac9263 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/5.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/6.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/6.png new file mode 100755 index 0000000..3a184d7 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/6.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/7.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/7.png new file mode 100755 index 0000000..fa0050a --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/7.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/8.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/8.png new file mode 100755 index 0000000..4bb2fdd --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/8.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/9.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/9.png new file mode 100755 index 0000000..1242838 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/SceneCardIcon/9.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj b/ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj index 08606e7..b932e19 100644 --- a/ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj +++ b/ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj @@ -1413,9 +1413,6 @@ <AndroidAsset Include="Assets\Phone\Device\SwitchSelected.png" /> </ItemGroup> <ItemGroup> - <AndroidAsset Include="Assets\Phone\Logo\2.jpg" /> - </ItemGroup> - <ItemGroup> <AndroidAsset Include="Assets\Phone\Room\AddBackground.png" /> </ItemGroup> <ItemGroup> @@ -2045,6 +2042,54 @@ <ItemGroup> <AndroidAsset Include="Assets\Phone\RealDevice\ButtonPanelFangyueFreshAir.png" /> </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\0.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\1.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\2.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\3.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\4.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\5.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\6.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\7.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\8.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\9.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\10.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\11.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\12.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\SceneCardIcon\13.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\Item\NormallyOpen.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\Logo\2.png" /> + </ItemGroup> <Import Project="..\Shared\Shared.projitems" Label="Shared" Condition="Exists('..\Shared\Shared.projitems')" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> <Import Project="..\packages\Xamarin.Android.Support.Annotations.26.0.2\build\MonoAndroid80\Xamarin.Android.Support.Annotations.targets" Condition="Exists('..\packages\Xamarin.Android.Support.Annotations.26.0.2\build\MonoAndroid80\Xamarin.Android.Support.Annotations.targets')" /> diff --git a/ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml b/ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml index d97db01..7d6b000 100644 --- a/ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml +++ b/ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml @@ -1,5 +1,5 @@ 锘�<?xml version="1.0" encoding="utf-8"?> -<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2020040801" android:installLocation="auto" android:versionName="1.0.20040801"> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2020041301" android:installLocation="auto" android:versionName="1.0.20041301"> <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="26" /> <permission android:name="com.hdl.home.permission.JPUSH_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> diff --git a/ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs b/ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs index d393349..012ca3c 100644 --- a/ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs +++ b/ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs @@ -34,233 +34,233 @@ public partial class Animation { - // aapt resource value: 0x7F010000 - public const int abc_fade_in = 2130771968; + // aapt resource value: 0x7f050000 + public const int abc_fade_in = 2131034112; - // aapt resource value: 0x7F010001 - public const int abc_fade_out = 2130771969; + // aapt resource value: 0x7f050001 + public const int abc_fade_out = 2131034113; - // aapt resource value: 0x7F010002 - public const int abc_grow_fade_in_from_bottom = 2130771970; + // aapt resource value: 0x7f050002 + public const int abc_grow_fade_in_from_bottom = 2131034114; - // aapt resource value: 0x7F010003 - public const int abc_popup_enter = 2130771971; + // aapt resource value: 0x7f050003 + public const int abc_popup_enter = 2131034115; - // aapt resource value: 0x7F010004 - public const int abc_popup_exit = 2130771972; + // aapt resource value: 0x7f050004 + public const int abc_popup_exit = 2131034116; - // aapt resource value: 0x7F010005 - public const int abc_shrink_fade_out_from_bottom = 2130771973; + // aapt resource value: 0x7f050005 + public const int abc_shrink_fade_out_from_bottom = 2131034117; - // aapt resource value: 0x7F010006 - public const int abc_slide_in_bottom = 2130771974; + // aapt resource value: 0x7f050006 + public const int abc_slide_in_bottom = 2131034118; - // aapt resource value: 0x7F010007 - public const int abc_slide_in_top = 2130771975; + // aapt resource value: 0x7f050007 + public const int abc_slide_in_top = 2131034119; - // aapt resource value: 0x7F010008 - public const int abc_slide_out_bottom = 2130771976; + // aapt resource value: 0x7f050008 + public const int abc_slide_out_bottom = 2131034120; - // aapt resource value: 0x7F010009 - public const int abc_slide_out_top = 2130771977; + // aapt resource value: 0x7f050009 + public const int abc_slide_out_top = 2131034121; - // aapt resource value: 0x7F01000A - public const int design_bottom_sheet_slide_in = 2130771978; + // aapt resource value: 0x7f05000a + public const int design_bottom_sheet_slide_in = 2131034122; - // aapt resource value: 0x7F01000B - public const int design_bottom_sheet_slide_out = 2130771979; + // aapt resource value: 0x7f05000b + public const int design_bottom_sheet_slide_out = 2131034123; - // aapt resource value: 0x7F01000C - public const int design_snackbar_in = 2130771980; + // aapt resource value: 0x7f05000c + public const int design_snackbar_in = 2131034124; - // aapt resource value: 0x7F01000D - public const int design_snackbar_out = 2130771981; + // aapt resource value: 0x7f05000d + public const int design_snackbar_out = 2131034125; - // aapt resource value: 0x7F01000E - public const int fingerprint_draw_off_animation_interpolator_0 = 2130771982; + // aapt resource value: 0x7f05000e + public const int fingerprint_draw_off_animation_interpolator_0 = 2131034126; - // aapt resource value: 0x7F01000F - public const int fingerprint_draw_off_animation_interpolator_1 = 2130771983; + // aapt resource value: 0x7f05000f + public const int fingerprint_draw_off_animation_interpolator_1 = 2131034127; - // aapt resource value: 0x7F010010 - public const int fingerprint_draw_off_ridge_1_path_animation = 2130771984; + // aapt resource value: 0x7f050010 + public const int fingerprint_draw_off_ridge_1_path_animation = 2131034128; - // aapt resource value: 0x7F010011 - public const int fingerprint_draw_off_ridge_2_path_animation = 2130771985; + // aapt resource value: 0x7f050011 + public const int fingerprint_draw_off_ridge_2_path_animation = 2131034129; - // aapt resource value: 0x7F010012 - public const int fingerprint_draw_off_ridge_5_path_animation = 2130771986; + // aapt resource value: 0x7f050012 + public const int fingerprint_draw_off_ridge_5_path_animation = 2131034130; - // aapt resource value: 0x7F010013 - public const int fingerprint_draw_off_ridge_6_path_animation = 2130771987; + // aapt resource value: 0x7f050013 + public const int fingerprint_draw_off_ridge_6_path_animation = 2131034131; - // aapt resource value: 0x7F010014 - public const int fingerprint_draw_off_ridge_7_path_animation = 2130771988; + // aapt resource value: 0x7f050014 + public const int fingerprint_draw_off_ridge_7_path_animation = 2131034132; - // aapt resource value: 0x7F010015 - public const int fingerprint_draw_on_animation_interpolator_0 = 2130771989; + // aapt resource value: 0x7f050015 + public const int fingerprint_draw_on_animation_interpolator_0 = 2131034133; - // aapt resource value: 0x7F010016 - public const int fingerprint_draw_on_animation_interpolator_1 = 2130771990; + // aapt resource value: 0x7f050016 + public const int fingerprint_draw_on_animation_interpolator_1 = 2131034134; - // aapt resource value: 0x7F010017 - public const int fingerprint_draw_on_ridge_1_path_animation = 2130771991; + // aapt resource value: 0x7f050017 + public const int fingerprint_draw_on_ridge_1_path_animation = 2131034135; - // aapt resource value: 0x7F010018 - public const int fingerprint_draw_on_ridge_2_path_animation = 2130771992; + // aapt resource value: 0x7f050018 + public const int fingerprint_draw_on_ridge_2_path_animation = 2131034136; - // aapt resource value: 0x7F010019 - public const int fingerprint_draw_on_ridge_5_path_animation = 2130771993; + // aapt resource value: 0x7f050019 + public const int fingerprint_draw_on_ridge_5_path_animation = 2131034137; - // aapt resource value: 0x7F01001A - public const int fingerprint_draw_on_ridge_6_path_animation = 2130771994; + // aapt resource value: 0x7f05001a + public const int fingerprint_draw_on_ridge_6_path_animation = 2131034138; - // aapt resource value: 0x7F01001B - public const int fingerprint_draw_on_ridge_7_path_animation = 2130771995; + // aapt resource value: 0x7f05001b + public const int fingerprint_draw_on_ridge_7_path_animation = 2131034139; - // aapt resource value: 0x7F01001C - public const int fingerprint_error_state_to_fp_animation_interpolator_0 = 2130771996; + // aapt resource value: 0x7f05001c + public const int fingerprint_error_state_to_fp_animation_interpolator_0 = 2131034140; - // aapt resource value: 0x7F01001D - public const int fingerprint_error_state_to_fp_animation_interpolator_1 = 2130771997; + // aapt resource value: 0x7f05001d + public const int fingerprint_error_state_to_fp_animation_interpolator_1 = 2131034141; - // aapt resource value: 0x7F01001E - public const int fingerprint_error_state_to_fp_animation_interpolator_2 = 2130771998; + // aapt resource value: 0x7f05001e + public const int fingerprint_error_state_to_fp_animation_interpolator_2 = 2131034142; - // aapt resource value: 0x7F01001F - public const int fingerprint_error_state_to_fp_animation_interpolator_3 = 2130771999; + // aapt resource value: 0x7f05001f + public const int fingerprint_error_state_to_fp_animation_interpolator_3 = 2131034143; - // aapt resource value: 0x7F010020 - public const int fingerprint_error_state_to_fp_animation_interpolator_4 = 2130772000; + // aapt resource value: 0x7f050020 + public const int fingerprint_error_state_to_fp_animation_interpolator_4 = 2131034144; - // aapt resource value: 0x7F010021 - public const int fingerprint_error_state_to_fp_animation_interpolator_5 = 2130772001; + // aapt resource value: 0x7f050021 + public const int fingerprint_error_state_to_fp_animation_interpolator_5 = 2131034145; - // aapt resource value: 0x7F010022 - public const int fingerprint_error_state_to_fp_group_1_animation = 2130772002; + // aapt resource value: 0x7f050022 + public const int fingerprint_error_state_to_fp_group_1_animation = 2131034146; - // aapt resource value: 0x7F010023 - public const int fingerprint_error_state_to_fp_group_2_animation = 2130772003; + // aapt resource value: 0x7f050023 + public const int fingerprint_error_state_to_fp_group_2_animation = 2131034147; - // aapt resource value: 0x7F010024 - public const int fingerprint_error_state_to_fp_path_1_animation = 2130772004; + // aapt resource value: 0x7f050024 + public const int fingerprint_error_state_to_fp_path_1_animation = 2131034148; - // aapt resource value: 0x7F010025 - public const int fingerprint_error_state_to_fp_path_2_animation = 2130772005; + // aapt resource value: 0x7f050025 + public const int fingerprint_error_state_to_fp_path_2_animation = 2131034149; - // aapt resource value: 0x7F010026 - public const int fingerprint_error_state_to_fp_path_3_animation = 2130772006; + // aapt resource value: 0x7f050026 + public const int fingerprint_error_state_to_fp_path_3_animation = 2131034150; - // aapt resource value: 0x7F010027 - public const int fingerprint_error_state_to_fp_ridge_1_path_animation = 2130772007; + // aapt resource value: 0x7f050027 + public const int fingerprint_error_state_to_fp_ridge_1_path_animation = 2131034151; - // aapt resource value: 0x7F010028 - public const int fingerprint_error_state_to_fp_ridge_2_path_animation = 2130772008; + // aapt resource value: 0x7f050028 + public const int fingerprint_error_state_to_fp_ridge_2_path_animation = 2131034152; - // aapt resource value: 0x7F010029 - public const int fingerprint_error_state_to_fp_ridge_5_path_animation = 2130772009; + // aapt resource value: 0x7f050029 + public const int fingerprint_error_state_to_fp_ridge_5_path_animation = 2131034153; - // aapt resource value: 0x7F01002A - public const int fingerprint_error_state_to_fp_ridge_6_path_animation = 2130772010; + // aapt resource value: 0x7f05002a + public const int fingerprint_error_state_to_fp_ridge_6_path_animation = 2131034154; - // aapt resource value: 0x7F01002B - public const int fingerprint_error_state_to_fp_ridge_7_path_animation = 2130772011; + // aapt resource value: 0x7f05002b + public const int fingerprint_error_state_to_fp_ridge_7_path_animation = 2131034155; - // aapt resource value: 0x7F01002C - public const int fingerprint_error_state_to_fp_white_fingerprint_ridges_animation = 2130772012; + // aapt resource value: 0x7f05002c + public const int fingerprint_error_state_to_fp_white_fingerprint_ridges_animation = 2131034156; - // aapt resource value: 0x7F01002D - public const int fingerprint_fp_to_error_state_animation_interpolator_0 = 2130772013; + // aapt resource value: 0x7f05002d + public const int fingerprint_fp_to_error_state_animation_interpolator_0 = 2131034157; - // aapt resource value: 0x7F01002E - public const int fingerprint_fp_to_error_state_animation_interpolator_1 = 2130772014; + // aapt resource value: 0x7f05002e + public const int fingerprint_fp_to_error_state_animation_interpolator_1 = 2131034158; - // aapt resource value: 0x7F01002F - public const int fingerprint_fp_to_error_state_animation_interpolator_2 = 2130772015; + // aapt resource value: 0x7f05002f + public const int fingerprint_fp_to_error_state_animation_interpolator_2 = 2131034159; - // aapt resource value: 0x7F010030 - public const int fingerprint_fp_to_error_state_animation_interpolator_3 = 2130772016; + // aapt resource value: 0x7f050030 + public const int fingerprint_fp_to_error_state_animation_interpolator_3 = 2131034160; - // aapt resource value: 0x7F010031 - public const int fingerprint_fp_to_error_state_animation_interpolator_4 = 2130772017; + // aapt resource value: 0x7f050031 + public const int fingerprint_fp_to_error_state_animation_interpolator_4 = 2131034161; - // aapt resource value: 0x7F010032 - public const int fingerprint_fp_to_error_state_animation_interpolator_5 = 2130772018; + // aapt resource value: 0x7f050032 + public const int fingerprint_fp_to_error_state_animation_interpolator_5 = 2131034162; - // aapt resource value: 0x7F010033 - public const int fingerprint_fp_to_error_state_fingerprint_ridges_animation = 2130772019; + // aapt resource value: 0x7f050033 + public const int fingerprint_fp_to_error_state_fingerprint_ridges_animation = 2131034163; - // aapt resource value: 0x7F010034 - public const int fingerprint_fp_to_error_state_group_1_animation = 2130772020; + // aapt resource value: 0x7f050034 + public const int fingerprint_fp_to_error_state_group_1_animation = 2131034164; - // aapt resource value: 0x7F010035 - public const int fingerprint_fp_to_error_state_group_2_animation = 2130772021; + // aapt resource value: 0x7f050035 + public const int fingerprint_fp_to_error_state_group_2_animation = 2131034165; - // aapt resource value: 0x7F010036 - public const int fingerprint_fp_to_error_state_path_1_animation = 2130772022; + // aapt resource value: 0x7f050036 + public const int fingerprint_fp_to_error_state_path_1_animation = 2131034166; - // aapt resource value: 0x7F010037 - public const int fingerprint_fp_to_error_state_path_2_animation = 2130772023; + // aapt resource value: 0x7f050037 + public const int fingerprint_fp_to_error_state_path_2_animation = 2131034167; - // aapt resource value: 0x7F010038 - public const int fingerprint_fp_to_error_state_path_3_animation = 2130772024; + // aapt resource value: 0x7f050038 + public const int fingerprint_fp_to_error_state_path_3_animation = 2131034168; - // aapt resource value: 0x7F010039 - public const int fingerprint_fp_to_error_state_ridge_1_path_0_animation = 2130772025; + // aapt resource value: 0x7f050039 + public const int fingerprint_fp_to_error_state_ridge_1_path_0_animation = 2131034169; - // aapt resource value: 0x7F01003A - public const int fingerprint_fp_to_error_state_ridge_1_path_animation = 2130772026; + // aapt resource value: 0x7f05003a + public const int fingerprint_fp_to_error_state_ridge_1_path_animation = 2131034170; - // aapt resource value: 0x7F01003B - public const int fingerprint_fp_to_error_state_ridge_2_path_0_animation = 2130772027; + // aapt resource value: 0x7f05003b + public const int fingerprint_fp_to_error_state_ridge_2_path_0_animation = 2131034171; - // aapt resource value: 0x7F01003C - public const int fingerprint_fp_to_error_state_ridge_2_path_animation = 2130772028; + // aapt resource value: 0x7f05003c + public const int fingerprint_fp_to_error_state_ridge_2_path_animation = 2131034172; - // aapt resource value: 0x7F01003D - public const int fingerprint_fp_to_error_state_ridge_5_path_0_animation = 2130772029; + // aapt resource value: 0x7f05003d + public const int fingerprint_fp_to_error_state_ridge_5_path_0_animation = 2131034173; - // aapt resource value: 0x7F01003E - public const int fingerprint_fp_to_error_state_ridge_5_path_animation = 2130772030; + // aapt resource value: 0x7f05003e + public const int fingerprint_fp_to_error_state_ridge_5_path_animation = 2131034174; - // aapt resource value: 0x7F01003F - public const int fingerprint_fp_to_error_state_ridge_6_path_0_animation = 2130772031; + // aapt resource value: 0x7f05003f + public const int fingerprint_fp_to_error_state_ridge_6_path_0_animation = 2131034175; - // aapt resource value: 0x7F010040 - public const int fingerprint_fp_to_error_state_ridge_6_path_animation = 2130772032; + // aapt resource value: 0x7f050040 + public const int fingerprint_fp_to_error_state_ridge_6_path_animation = 2131034176; - // aapt resource value: 0x7F010041 - public const int fingerprint_fp_to_error_state_ridge_7_path_0_animation = 2130772033; + // aapt resource value: 0x7f050041 + public const int fingerprint_fp_to_error_state_ridge_7_path_0_animation = 2131034177; - // aapt resource value: 0x7F010042 - public const int fingerprint_fp_to_error_state_ridge_7_path_animation = 2130772034; + // aapt resource value: 0x7f050042 + public const int fingerprint_fp_to_error_state_ridge_7_path_animation = 2131034178; - // aapt resource value: 0x7F010043 - public const int fingerprint_fp_to_error_state_white_fingerprint_ridges_animation = 2130772035; + // aapt resource value: 0x7f050043 + public const int fingerprint_fp_to_error_state_white_fingerprint_ridges_animation = 2131034179; - // aapt resource value: 0x7F010044 - public const int move_in = 2130772036; + // aapt resource value: 0x7f050044 + public const int move_in = 2131034180; - // aapt resource value: 0x7F010045 - public const int move_out = 2130772037; + // aapt resource value: 0x7f050045 + public const int move_out = 2131034181; - // aapt resource value: 0x7F010046 - public const int pickerview_dialog_scale_in = 2130772038; + // aapt resource value: 0x7f050046 + public const int pickerview_dialog_scale_in = 2131034182; - // aapt resource value: 0x7F010047 - public const int pickerview_dialog_scale_out = 2130772039; + // aapt resource value: 0x7f050047 + public const int pickerview_dialog_scale_out = 2131034183; - // aapt resource value: 0x7F010048 - public const int pickerview_slide_in_bottom = 2130772040; + // aapt resource value: 0x7f050048 + public const int pickerview_slide_in_bottom = 2131034184; - // aapt resource value: 0x7F010049 - public const int pickerview_slide_out_bottom = 2130772041; + // aapt resource value: 0x7f050049 + public const int pickerview_slide_out_bottom = 2131034185; - // aapt resource value: 0x7F01004A - public const int tooltip_enter = 2130772042; + // aapt resource value: 0x7f05004a + public const int tooltip_enter = 2131034186; - // aapt resource value: 0x7F01004B - public const int tooltip_exit = 2130772043; + // aapt resource value: 0x7f05004b + public const int tooltip_exit = 2131034187; static Animation() { @@ -275,8 +275,8 @@ public partial class Animator { - // aapt resource value: 0x7F020000 - public const int design_appbar_state_list_animator = 2130837504; + // aapt resource value: 0x7f060000 + public const int design_appbar_state_list_animator = 2131099648; static Animator() { @@ -291,8 +291,8 @@ public partial class Array { - // aapt resource value: 0x7F030000 - public const int arc_colors_default = 2130903040; + // aapt resource value: 0x7f0f0000 + public const int arc_colors_default = 2131689472; static Array() { @@ -307,1355 +307,1355 @@ public partial class Attribute { - // aapt resource value: 0x7F040000 - public const int actionBarDivider = 2130968576; + // aapt resource value: 0x7f010052 + public const int actionBarDivider = 2130772050; - // aapt resource value: 0x7F040001 - public const int actionBarItemBackground = 2130968577; + // aapt resource value: 0x7f010053 + public const int actionBarItemBackground = 2130772051; - // aapt resource value: 0x7F040002 - public const int actionBarPopupTheme = 2130968578; + // aapt resource value: 0x7f01004c + public const int actionBarPopupTheme = 2130772044; - // aapt resource value: 0x7F040003 - public const int actionBarSize = 2130968579; + // aapt resource value: 0x7f010051 + public const int actionBarSize = 2130772049; - // aapt resource value: 0x7F040004 - public const int actionBarSplitStyle = 2130968580; + // aapt resource value: 0x7f01004e + public const int actionBarSplitStyle = 2130772046; - // aapt resource value: 0x7F040005 - public const int actionBarStyle = 2130968581; + // aapt resource value: 0x7f01004d + public const int actionBarStyle = 2130772045; - // aapt resource value: 0x7F040006 - public const int actionBarTabBarStyle = 2130968582; + // aapt resource value: 0x7f010048 + public const int actionBarTabBarStyle = 2130772040; - // aapt resource value: 0x7F040007 - public const int actionBarTabStyle = 2130968583; + // aapt resource value: 0x7f010047 + public const int actionBarTabStyle = 2130772039; - // aapt resource value: 0x7F040008 - public const int actionBarTabTextStyle = 2130968584; + // aapt resource value: 0x7f010049 + public const int actionBarTabTextStyle = 2130772041; - // aapt resource value: 0x7F040009 - public const int actionBarTheme = 2130968585; + // aapt resource value: 0x7f01004f + public const int actionBarTheme = 2130772047; - // aapt resource value: 0x7F04000A - public const int actionBarWidgetTheme = 2130968586; + // aapt resource value: 0x7f010050 + public const int actionBarWidgetTheme = 2130772048; - // aapt resource value: 0x7F04000B - public const int actionButtonStyle = 2130968587; + // aapt resource value: 0x7f01006d + public const int actionButtonStyle = 2130772077; - // aapt resource value: 0x7F04000C - public const int actionDropDownStyle = 2130968588; + // aapt resource value: 0x7f010069 + public const int actionDropDownStyle = 2130772073; - // aapt resource value: 0x7F04000D - public const int actionLayout = 2130968589; + // aapt resource value: 0x7f0100c4 + public const int actionLayout = 2130772164; - // aapt resource value: 0x7F04000E - public const int actionMenuTextAppearance = 2130968590; + // aapt resource value: 0x7f010054 + public const int actionMenuTextAppearance = 2130772052; - // aapt resource value: 0x7F04000F - public const int actionMenuTextColor = 2130968591; + // aapt resource value: 0x7f010055 + public const int actionMenuTextColor = 2130772053; - // aapt resource value: 0x7F040010 - public const int actionModeBackground = 2130968592; + // aapt resource value: 0x7f010058 + public const int actionModeBackground = 2130772056; - // aapt resource value: 0x7F040011 - public const int actionModeCloseButtonStyle = 2130968593; + // aapt resource value: 0x7f010057 + public const int actionModeCloseButtonStyle = 2130772055; - // aapt resource value: 0x7F040012 - public const int actionModeCloseDrawable = 2130968594; + // aapt resource value: 0x7f01005a + public const int actionModeCloseDrawable = 2130772058; - // aapt resource value: 0x7F040013 - public const int actionModeCopyDrawable = 2130968595; + // aapt resource value: 0x7f01005c + public const int actionModeCopyDrawable = 2130772060; - // aapt resource value: 0x7F040014 - public const int actionModeCutDrawable = 2130968596; + // aapt resource value: 0x7f01005b + public const int actionModeCutDrawable = 2130772059; - // aapt resource value: 0x7F040015 - public const int actionModeFindDrawable = 2130968597; + // aapt resource value: 0x7f010060 + public const int actionModeFindDrawable = 2130772064; - // aapt resource value: 0x7F040016 - public const int actionModePasteDrawable = 2130968598; + // aapt resource value: 0x7f01005d + public const int actionModePasteDrawable = 2130772061; - // aapt resource value: 0x7F040017 - public const int actionModePopupWindowStyle = 2130968599; + // aapt resource value: 0x7f010062 + public const int actionModePopupWindowStyle = 2130772066; - // aapt resource value: 0x7F040018 - public const int actionModeSelectAllDrawable = 2130968600; + // aapt resource value: 0x7f01005e + public const int actionModeSelectAllDrawable = 2130772062; - // aapt resource value: 0x7F040019 - public const int actionModeShareDrawable = 2130968601; + // aapt resource value: 0x7f01005f + public const int actionModeShareDrawable = 2130772063; - // aapt resource value: 0x7F04001A - public const int actionModeSplitBackground = 2130968602; + // aapt resource value: 0x7f010059 + public const int actionModeSplitBackground = 2130772057; - // aapt resource value: 0x7F04001B - public const int actionModeStyle = 2130968603; + // aapt resource value: 0x7f010056 + public const int actionModeStyle = 2130772054; - // aapt resource value: 0x7F04001C - public const int actionModeWebSearchDrawable = 2130968604; + // aapt resource value: 0x7f010061 + public const int actionModeWebSearchDrawable = 2130772065; - // aapt resource value: 0x7F04001D - public const int actionOverflowButtonStyle = 2130968605; + // aapt resource value: 0x7f01004a + public const int actionOverflowButtonStyle = 2130772042; - // aapt resource value: 0x7F04001E - public const int actionOverflowMenuStyle = 2130968606; + // aapt resource value: 0x7f01004b + public const int actionOverflowMenuStyle = 2130772043; - // aapt resource value: 0x7F04001F - public const int actionProviderClass = 2130968607; + // aapt resource value: 0x7f0100c6 + public const int actionProviderClass = 2130772166; - // aapt resource value: 0x7F040020 - public const int actionViewClass = 2130968608; + // aapt resource value: 0x7f0100c5 + public const int actionViewClass = 2130772165; - // aapt resource value: 0x7F040021 - public const int activityChooserViewStyle = 2130968609; + // aapt resource value: 0x7f010075 + public const int activityChooserViewStyle = 2130772085; - // aapt resource value: 0x7F040022 - public const int alertDialogButtonGroupStyle = 2130968610; + // aapt resource value: 0x7f01009a + public const int alertDialogButtonGroupStyle = 2130772122; - // aapt resource value: 0x7F040023 - public const int alertDialogCenterButtons = 2130968611; + // aapt resource value: 0x7f01009b + public const int alertDialogCenterButtons = 2130772123; - // aapt resource value: 0x7F040024 - public const int alertDialogStyle = 2130968612; + // aapt resource value: 0x7f010099 + public const int alertDialogStyle = 2130772121; - // aapt resource value: 0x7F040025 - public const int alertDialogTheme = 2130968613; + // aapt resource value: 0x7f01009c + public const int alertDialogTheme = 2130772124; - // aapt resource value: 0x7F040026 - public const int allowStacking = 2130968614; + // aapt resource value: 0x7f0100b2 + public const int allowStacking = 2130772146; - // aapt resource value: 0x7F040027 - public const int alpha = 2130968615; + // aapt resource value: 0x7f0100b3 + public const int alpha = 2130772147; - // aapt resource value: 0x7F040028 - public const int alphabeticModifiers = 2130968616; + // aapt resource value: 0x7f0100c1 + public const int alphabeticModifiers = 2130772161; - // aapt resource value: 0x7F040029 - public const int arc_border_color = 2130968617; + // aapt resource value: 0x7f0101a3 + public const int arc_border_color = 2130772387; - // aapt resource value: 0x7F04002A - public const int arc_border_width = 2130968618; + // aapt resource value: 0x7f0101a2 + public const int arc_border_width = 2130772386; - // aapt resource value: 0x7F04002B - public const int arc_colors = 2130968619; + // aapt resource value: 0x7f0101a1 + public const int arc_colors = 2130772385; - // aapt resource value: 0x7F04002C - public const int arc_max = 2130968620; + // aapt resource value: 0x7f0101a4 + public const int arc_max = 2130772388; - // aapt resource value: 0x7F04002D - public const int arc_min = 2130968621; + // aapt resource value: 0x7f0101a5 + public const int arc_min = 2130772389; - // aapt resource value: 0x7F04002E - public const int arc_open_angle = 2130968622; + // aapt resource value: 0x7f01019f + public const int arc_open_angle = 2130772383; - // aapt resource value: 0x7F04002F - public const int arc_progress = 2130968623; + // aapt resource value: 0x7f0101a6 + public const int arc_progress = 2130772390; - // aapt resource value: 0x7F040030 - public const int arc_progress_bar_color = 2130968624; + // aapt resource value: 0x7f0101ae + public const int arc_progress_bar_color = 2130772398; - // aapt resource value: 0x7F040031 - public const int arc_progress_bar_text_unit = 2130968625; + // aapt resource value: 0x7f0101af + public const int arc_progress_bar_text_unit = 2130772399; - // aapt resource value: 0x7F040032 - public const int arc_rotate_angle = 2130968626; + // aapt resource value: 0x7f0101a0 + public const int arc_rotate_angle = 2130772384; - // aapt resource value: 0x7F040033 - public const int arc_shadow_radius = 2130968627; + // aapt resource value: 0x7f0101ad + public const int arc_shadow_radius = 2130772397; - // aapt resource value: 0x7F040034 - public const int arc_thumb_color = 2130968628; + // aapt resource value: 0x7f0101a8 + public const int arc_thumb_color = 2130772392; - // aapt resource value: 0x7F040035 - public const int arc_thumb_radius = 2130968629; + // aapt resource value: 0x7f0101a9 + public const int arc_thumb_radius = 2130772393; - // aapt resource value: 0x7F040036 - public const int arc_thumb_shadow_color = 2130968630; + // aapt resource value: 0x7f0101ab + public const int arc_thumb_shadow_color = 2130772395; - // aapt resource value: 0x7F040037 - public const int arc_thumb_shadow_radius = 2130968631; + // aapt resource value: 0x7f0101aa + public const int arc_thumb_shadow_radius = 2130772394; - // aapt resource value: 0x7F040038 - public const int arc_thumb_width = 2130968632; + // aapt resource value: 0x7f0101a7 + public const int arc_thumb_width = 2130772391; - // aapt resource value: 0x7F040039 - public const int arc_width = 2130968633; + // aapt resource value: 0x7f01019e + public const int arc_width = 2130772382; - // aapt resource value: 0x7F04003A - public const int arrowHeadLength = 2130968634; + // aapt resource value: 0x7f0100ba + public const int arrowHeadLength = 2130772154; - // aapt resource value: 0x7F04003B - public const int arrowShaftLength = 2130968635; + // aapt resource value: 0x7f0100bb + public const int arrowShaftLength = 2130772155; - // aapt resource value: 0x7F04003C - public const int autoCompleteTextViewStyle = 2130968636; + // aapt resource value: 0x7f0100a1 + public const int autoCompleteTextViewStyle = 2130772129; - // aapt resource value: 0x7F04003D - public const int autoSizeMaxTextSize = 2130968637; + // aapt resource value: 0x7f01003b + public const int autoSizeMaxTextSize = 2130772027; - // aapt resource value: 0x7F04003E - public const int autoSizeMinTextSize = 2130968638; + // aapt resource value: 0x7f01003a + public const int autoSizeMinTextSize = 2130772026; - // aapt resource value: 0x7F04003F - public const int autoSizePresetSizes = 2130968639; + // aapt resource value: 0x7f010039 + public const int autoSizePresetSizes = 2130772025; - // aapt resource value: 0x7F040040 - public const int autoSizeStepGranularity = 2130968640; + // aapt resource value: 0x7f010038 + public const int autoSizeStepGranularity = 2130772024; - // aapt resource value: 0x7F040041 - public const int autoSizeTextType = 2130968641; + // aapt resource value: 0x7f010037 + public const int autoSizeTextType = 2130772023; - // aapt resource value: 0x7F040042 - public const int background = 2130968642; + // aapt resource value: 0x7f010015 + public const int background = 2130771989; - // aapt resource value: 0x7F040043 - public const int backgroundSplit = 2130968643; + // aapt resource value: 0x7f010017 + public const int backgroundSplit = 2130771991; - // aapt resource value: 0x7F040044 - public const int backgroundStacked = 2130968644; + // aapt resource value: 0x7f010016 + public const int backgroundStacked = 2130771990; - // aapt resource value: 0x7F040045 - public const int backgroundTint = 2130968645; + // aapt resource value: 0x7f0100fd + public const int backgroundTint = 2130772221; - // aapt resource value: 0x7F040046 - public const int backgroundTintMode = 2130968646; + // aapt resource value: 0x7f0100fe + public const int backgroundTintMode = 2130772222; - // aapt resource value: 0x7F040047 - public const int barLength = 2130968647; + // aapt resource value: 0x7f0100bc + public const int barLength = 2130772156; - // aapt resource value: 0x7F040048 - public const int behavior_autoHide = 2130968648; + // aapt resource value: 0x7f010128 + public const int behavior_autoHide = 2130772264; - // aapt resource value: 0x7F040049 - public const int behavior_hideable = 2130968649; + // aapt resource value: 0x7f010105 + public const int behavior_hideable = 2130772229; - // aapt resource value: 0x7F04004A - public const int behavior_overlapTop = 2130968650; + // aapt resource value: 0x7f010131 + public const int behavior_overlapTop = 2130772273; - // aapt resource value: 0x7F04004B - public const int behavior_peekHeight = 2130968651; + // aapt resource value: 0x7f010104 + public const int behavior_peekHeight = 2130772228; - // aapt resource value: 0x7F04004C - public const int behavior_skipCollapsed = 2130968652; + // aapt resource value: 0x7f010106 + public const int behavior_skipCollapsed = 2130772230; - // aapt resource value: 0x7F04004D - public const int biometricPromptDialogTheme = 2130968653; + // aapt resource value: 0x7f01015a + public const int biometricPromptDialogTheme = 2130772314; - // aapt resource value: 0x7F04004F - public const int borderlessButtonStyle = 2130968655; + // aapt resource value: 0x7f010126 + public const int borderWidth = 2130772262; - // aapt resource value: 0x7F04004E - public const int borderWidth = 2130968654; + // aapt resource value: 0x7f010072 + public const int borderlessButtonStyle = 2130772082; - // aapt resource value: 0x7F040050 - public const int bottomSheetDialogTheme = 2130968656; + // aapt resource value: 0x7f010120 + public const int bottomSheetDialogTheme = 2130772256; - // aapt resource value: 0x7F040051 - public const int bottomSheetStyle = 2130968657; + // aapt resource value: 0x7f010121 + public const int bottomSheetStyle = 2130772257; - // aapt resource value: 0x7F040052 - public const int buttonBarButtonStyle = 2130968658; + // aapt resource value: 0x7f01006f + public const int buttonBarButtonStyle = 2130772079; - // aapt resource value: 0x7F040053 - public const int buttonBarNegativeButtonStyle = 2130968659; + // aapt resource value: 0x7f01009f + public const int buttonBarNegativeButtonStyle = 2130772127; - // aapt resource value: 0x7F040054 - public const int buttonBarNeutralButtonStyle = 2130968660; + // aapt resource value: 0x7f0100a0 + public const int buttonBarNeutralButtonStyle = 2130772128; - // aapt resource value: 0x7F040055 - public const int buttonBarPositiveButtonStyle = 2130968661; + // aapt resource value: 0x7f01009e + public const int buttonBarPositiveButtonStyle = 2130772126; - // aapt resource value: 0x7F040056 - public const int buttonBarStyle = 2130968662; + // aapt resource value: 0x7f01006e + public const int buttonBarStyle = 2130772078; - // aapt resource value: 0x7F040057 - public const int buttonGravity = 2130968663; + // aapt resource value: 0x7f0100f2 + public const int buttonGravity = 2130772210; - // aapt resource value: 0x7F040058 - public const int buttonPanelSideLayout = 2130968664; + // aapt resource value: 0x7f01002a + public const int buttonPanelSideLayout = 2130772010; - // aapt resource value: 0x7F040059 - public const int buttonStyle = 2130968665; + // aapt resource value: 0x7f0100a2 + public const int buttonStyle = 2130772130; - // aapt resource value: 0x7F04005A - public const int buttonStyleSmall = 2130968666; + // aapt resource value: 0x7f0100a3 + public const int buttonStyleSmall = 2130772131; - // aapt resource value: 0x7F04005B - public const int buttonTint = 2130968667; + // aapt resource value: 0x7f0100b4 + public const int buttonTint = 2130772148; - // aapt resource value: 0x7F04005C - public const int buttonTintMode = 2130968668; + // aapt resource value: 0x7f0100b5 + public const int buttonTintMode = 2130772149; - // aapt resource value: 0x7F04005D - public const int checkboxStyle = 2130968669; + // aapt resource value: 0x7f0100a4 + public const int checkboxStyle = 2130772132; - // aapt resource value: 0x7F04005E - public const int checkedTextViewStyle = 2130968670; + // aapt resource value: 0x7f0100a5 + public const int checkedTextViewStyle = 2130772133; - // aapt resource value: 0x7F04005F - public const int closeIcon = 2130968671; + // aapt resource value: 0x7f0100d5 + public const int closeIcon = 2130772181; - // aapt resource value: 0x7F040060 - public const int closeItemLayout = 2130968672; + // aapt resource value: 0x7f010027 + public const int closeItemLayout = 2130772007; - // aapt resource value: 0x7F040061 - public const int collapseContentDescription = 2130968673; + // aapt resource value: 0x7f0100f4 + public const int collapseContentDescription = 2130772212; - // aapt resource value: 0x7F040063 - public const int collapsedTitleGravity = 2130968675; + // aapt resource value: 0x7f0100f3 + public const int collapseIcon = 2130772211; - // aapt resource value: 0x7F040064 - public const int collapsedTitleTextAppearance = 2130968676; + // aapt resource value: 0x7f010113 + public const int collapsedTitleGravity = 2130772243; - // aapt resource value: 0x7F040062 - public const int collapseIcon = 2130968674; + // aapt resource value: 0x7f01010d + public const int collapsedTitleTextAppearance = 2130772237; - // aapt resource value: 0x7F040065 - public const int color = 2130968677; + // aapt resource value: 0x7f0100b6 + public const int color = 2130772150; - // aapt resource value: 0x7F040066 - public const int colorAccent = 2130968678; + // aapt resource value: 0x7f010091 + public const int colorAccent = 2130772113; - // aapt resource value: 0x7F040067 - public const int colorBackgroundFloating = 2130968679; + // aapt resource value: 0x7f010098 + public const int colorBackgroundFloating = 2130772120; - // aapt resource value: 0x7F040068 - public const int colorButtonNormal = 2130968680; + // aapt resource value: 0x7f010095 + public const int colorButtonNormal = 2130772117; - // aapt resource value: 0x7F040069 - public const int colorControlActivated = 2130968681; + // aapt resource value: 0x7f010093 + public const int colorControlActivated = 2130772115; - // aapt resource value: 0x7F04006A - public const int colorControlHighlight = 2130968682; + // aapt resource value: 0x7f010094 + public const int colorControlHighlight = 2130772116; - // aapt resource value: 0x7F04006B - public const int colorControlNormal = 2130968683; + // aapt resource value: 0x7f010092 + public const int colorControlNormal = 2130772114; - // aapt resource value: 0x7F04006C - public const int colorError = 2130968684; + // aapt resource value: 0x7f0100b1 + public const int colorError = 2130772145; - // aapt resource value: 0x7F04006D - public const int colorPrimary = 2130968685; + // aapt resource value: 0x7f01008f + public const int colorPrimary = 2130772111; - // aapt resource value: 0x7F04006E - public const int colorPrimaryDark = 2130968686; + // aapt resource value: 0x7f010090 + public const int colorPrimaryDark = 2130772112; - // aapt resource value: 0x7F04006F - public const int colorSwitchThumbNormal = 2130968687; + // aapt resource value: 0x7f010096 + public const int colorSwitchThumbNormal = 2130772118; - // aapt resource value: 0x7F040070 - public const int commitIcon = 2130968688; + // aapt resource value: 0x7f0100da + public const int commitIcon = 2130772186; - // aapt resource value: 0x7F040071 - public const int contentDescription = 2130968689; + // aapt resource value: 0x7f0100c7 + public const int contentDescription = 2130772167; - // aapt resource value: 0x7F040072 - public const int contentInsetEnd = 2130968690; + // aapt resource value: 0x7f010020 + public const int contentInsetEnd = 2130772000; - // aapt resource value: 0x7F040073 - public const int contentInsetEndWithActions = 2130968691; + // aapt resource value: 0x7f010024 + public const int contentInsetEndWithActions = 2130772004; - // aapt resource value: 0x7F040074 - public const int contentInsetLeft = 2130968692; + // aapt resource value: 0x7f010021 + public const int contentInsetLeft = 2130772001; - // aapt resource value: 0x7F040075 - public const int contentInsetRight = 2130968693; + // aapt resource value: 0x7f010022 + public const int contentInsetRight = 2130772002; - // aapt resource value: 0x7F040076 - public const int contentInsetStart = 2130968694; + // aapt resource value: 0x7f01001f + public const int contentInsetStart = 2130771999; - // aapt resource value: 0x7F040077 - public const int contentInsetStartWithNavigation = 2130968695; + // aapt resource value: 0x7f010023 + public const int contentInsetStartWithNavigation = 2130772003; - // aapt resource value: 0x7F040078 - public const int contentScrim = 2130968696; + // aapt resource value: 0x7f01010e + public const int contentScrim = 2130772238; - // aapt resource value: 0x7F040079 - public const int controlBackground = 2130968697; + // aapt resource value: 0x7f010097 + public const int controlBackground = 2130772119; - // aapt resource value: 0x7F04007A - public const int counterEnabled = 2130968698; + // aapt resource value: 0x7f010147 + public const int counterEnabled = 2130772295; - // aapt resource value: 0x7F04007B - public const int counterMaxLength = 2130968699; + // aapt resource value: 0x7f010148 + public const int counterMaxLength = 2130772296; - // aapt resource value: 0x7F04007C - public const int counterOverflowTextAppearance = 2130968700; + // aapt resource value: 0x7f01014a + public const int counterOverflowTextAppearance = 2130772298; - // aapt resource value: 0x7F04007D - public const int counterTextAppearance = 2130968701; + // aapt resource value: 0x7f010149 + public const int counterTextAppearance = 2130772297; - // aapt resource value: 0x7F04007E - public const int curtain_bar_bg_color = 2130968702; + // aapt resource value: 0x7f0101b2 + public const int curtain_bar_bg_color = 2130772402; - // aapt resource value: 0x7F04007F - public const int curtain_bar_border_color = 2130968703; + // aapt resource value: 0x7f0101b3 + public const int curtain_bar_border_color = 2130772403; - // aapt resource value: 0x7F040080 - public const int curtain_bar_color = 2130968704; + // aapt resource value: 0x7f0101b0 + public const int curtain_bar_color = 2130772400; - // aapt resource value: 0x7F040081 - public const int curtain_bar_height = 2130968705; + // aapt resource value: 0x7f0101b5 + public const int curtain_bar_height = 2130772405; - // aapt resource value: 0x7F040082 - public const int curtain_bar_width = 2130968706; + // aapt resource value: 0x7f0101b4 + public const int curtain_bar_width = 2130772404; - // aapt resource value: 0x7F040083 - public const int customNavigationLayout = 2130968707; + // aapt resource value: 0x7f010018 + public const int customNavigationLayout = 2130771992; - // aapt resource value: 0x7F040084 - public const int defaultQueryHint = 2130968708; + // aapt resource value: 0x7f0100d4 + public const int defaultQueryHint = 2130772180; - // aapt resource value: 0x7F040085 - public const int dialogPreferredPadding = 2130968709; + // aapt resource value: 0x7f010067 + public const int dialogPreferredPadding = 2130772071; - // aapt resource value: 0x7F040086 - public const int dialogTheme = 2130968710; + // aapt resource value: 0x7f010066 + public const int dialogTheme = 2130772070; - // aapt resource value: 0x7F040087 - public const int displayOptions = 2130968711; + // aapt resource value: 0x7f01000e + public const int displayOptions = 2130771982; - // aapt resource value: 0x7F040088 - public const int divider = 2130968712; + // aapt resource value: 0x7f010014 + public const int divider = 2130771988; - // aapt resource value: 0x7F040089 - public const int dividerHorizontal = 2130968713; + // aapt resource value: 0x7f010074 + public const int dividerHorizontal = 2130772084; - // aapt resource value: 0x7F04008A - public const int dividerPadding = 2130968714; + // aapt resource value: 0x7f0100c0 + public const int dividerPadding = 2130772160; - // aapt resource value: 0x7F04008B - public const int dividerVertical = 2130968715; + // aapt resource value: 0x7f010073 + public const int dividerVertical = 2130772083; - // aapt resource value: 0x7F04008C - public const int drawableSize = 2130968716; + // aapt resource value: 0x7f0100b8 + public const int drawableSize = 2130772152; - // aapt resource value: 0x7F04008D - public const int drawerArrowStyle = 2130968717; + // aapt resource value: 0x7f010009 + public const int drawerArrowStyle = 2130771977; - // aapt resource value: 0x7F04008F - public const int dropdownListPreferredItemHeight = 2130968719; + // aapt resource value: 0x7f010086 + public const int dropDownListViewStyle = 2130772102; - // aapt resource value: 0x7F04008E - public const int dropDownListViewStyle = 2130968718; + // aapt resource value: 0x7f01006a + public const int dropdownListPreferredItemHeight = 2130772074; - // aapt resource value: 0x7F040090 - public const int editTextBackground = 2130968720; + // aapt resource value: 0x7f01007b + public const int editTextBackground = 2130772091; - // aapt resource value: 0x7F040091 - public const int editTextColor = 2130968721; + // aapt resource value: 0x7f01007a + public const int editTextColor = 2130772090; - // aapt resource value: 0x7F040092 - public const int editTextStyle = 2130968722; + // aapt resource value: 0x7f0100a6 + public const int editTextStyle = 2130772134; - // aapt resource value: 0x7F040093 - public const int elevation = 2130968723; + // aapt resource value: 0x7f010025 + public const int elevation = 2130772005; - // aapt resource value: 0x7F040094 - public const int errorEnabled = 2130968724; + // aapt resource value: 0x7f010145 + public const int errorEnabled = 2130772293; - // aapt resource value: 0x7F040095 - public const int errorTextAppearance = 2130968725; + // aapt resource value: 0x7f010146 + public const int errorTextAppearance = 2130772294; - // aapt resource value: 0x7F040096 - public const int expandActivityOverflowButtonDrawable = 2130968726; + // aapt resource value: 0x7f010029 + public const int expandActivityOverflowButtonDrawable = 2130772009; - // aapt resource value: 0x7F040097 - public const int expanded = 2130968727; + // aapt resource value: 0x7f0100ff + public const int expanded = 2130772223; - // aapt resource value: 0x7F040098 - public const int expandedTitleGravity = 2130968728; + // aapt resource value: 0x7f010114 + public const int expandedTitleGravity = 2130772244; - // aapt resource value: 0x7F040099 - public const int expandedTitleMargin = 2130968729; + // aapt resource value: 0x7f010107 + public const int expandedTitleMargin = 2130772231; - // aapt resource value: 0x7F04009A - public const int expandedTitleMarginBottom = 2130968730; + // aapt resource value: 0x7f01010b + public const int expandedTitleMarginBottom = 2130772235; - // aapt resource value: 0x7F04009B - public const int expandedTitleMarginEnd = 2130968731; + // aapt resource value: 0x7f01010a + public const int expandedTitleMarginEnd = 2130772234; - // aapt resource value: 0x7F04009C - public const int expandedTitleMarginStart = 2130968732; + // aapt resource value: 0x7f010108 + public const int expandedTitleMarginStart = 2130772232; - // aapt resource value: 0x7F04009D - public const int expandedTitleMarginTop = 2130968733; + // aapt resource value: 0x7f010109 + public const int expandedTitleMarginTop = 2130772233; - // aapt resource value: 0x7F04009E - public const int expandedTitleTextAppearance = 2130968734; + // aapt resource value: 0x7f01010c + public const int expandedTitleTextAppearance = 2130772236; - // aapt resource value: 0x7F04009F - public const int fabSize = 2130968735; + // aapt resource value: 0x7f010124 + public const int fabSize = 2130772260; - // aapt resource value: 0x7F0400A0 - public const int fastScrollEnabled = 2130968736; + // aapt resource value: 0x7f010004 + public const int fastScrollEnabled = 2130771972; - // aapt resource value: 0x7F0400A1 - public const int fastScrollHorizontalThumbDrawable = 2130968737; + // aapt resource value: 0x7f010007 + public const int fastScrollHorizontalThumbDrawable = 2130771975; - // aapt resource value: 0x7F0400A2 - public const int fastScrollHorizontalTrackDrawable = 2130968738; + // aapt resource value: 0x7f010008 + public const int fastScrollHorizontalTrackDrawable = 2130771976; - // aapt resource value: 0x7F0400A3 - public const int fastScrollVerticalThumbDrawable = 2130968739; + // aapt resource value: 0x7f010005 + public const int fastScrollVerticalThumbDrawable = 2130771973; - // aapt resource value: 0x7F0400A4 - public const int fastScrollVerticalTrackDrawable = 2130968740; + // aapt resource value: 0x7f010006 + public const int fastScrollVerticalTrackDrawable = 2130771974; - // aapt resource value: 0x7F0400A5 - public const int font = 2130968741; + // aapt resource value: 0x7f010158 + public const int font = 2130772312; - // aapt resource value: 0x7F0400A6 - public const int fontFamily = 2130968742; + // aapt resource value: 0x7f01003c + public const int fontFamily = 2130772028; - // aapt resource value: 0x7F0400A7 - public const int fontProviderAuthority = 2130968743; + // aapt resource value: 0x7f010151 + public const int fontProviderAuthority = 2130772305; - // aapt resource value: 0x7F0400A8 - public const int fontProviderCerts = 2130968744; + // aapt resource value: 0x7f010154 + public const int fontProviderCerts = 2130772308; - // aapt resource value: 0x7F0400A9 - public const int fontProviderFetchStrategy = 2130968745; + // aapt resource value: 0x7f010155 + public const int fontProviderFetchStrategy = 2130772309; - // aapt resource value: 0x7F0400AA - public const int fontProviderFetchTimeout = 2130968746; + // aapt resource value: 0x7f010156 + public const int fontProviderFetchTimeout = 2130772310; - // aapt resource value: 0x7F0400AB - public const int fontProviderPackage = 2130968747; + // aapt resource value: 0x7f010152 + public const int fontProviderPackage = 2130772306; - // aapt resource value: 0x7F0400AC - public const int fontProviderQuery = 2130968748; + // aapt resource value: 0x7f010153 + public const int fontProviderQuery = 2130772307; - // aapt resource value: 0x7F0400AD - public const int fontStyle = 2130968749; + // aapt resource value: 0x7f010157 + public const int fontStyle = 2130772311; - // aapt resource value: 0x7F0400AE - public const int fontWeight = 2130968750; + // aapt resource value: 0x7f010159 + public const int fontWeight = 2130772313; - // aapt resource value: 0x7F0400AF - public const int foregroundInsidePadding = 2130968751; + // aapt resource value: 0x7f010129 + public const int foregroundInsidePadding = 2130772265; - // aapt resource value: 0x7F0400B0 - public const int gapBetweenBars = 2130968752; + // aapt resource value: 0x7f0100b9 + public const int gapBetweenBars = 2130772153; - // aapt resource value: 0x7F0400B1 - public const int goIcon = 2130968753; + // aapt resource value: 0x7f0100d6 + public const int goIcon = 2130772182; - // aapt resource value: 0x7F0400B2 - public const int hdl_arc_thumb_mode = 2130968754; + // aapt resource value: 0x7f0101ac + public const int hdl_arc_thumb_mode = 2130772396; - // aapt resource value: 0x7F0400B3 - public const int headerLayout = 2130968755; + // aapt resource value: 0x7f01012f + public const int headerLayout = 2130772271; - // aapt resource value: 0x7F0400B4 - public const int height = 2130968756; + // aapt resource value: 0x7f01000a + public const int height = 2130771978; - // aapt resource value: 0x7F0400B5 - public const int hideOnContentScroll = 2130968757; + // aapt resource value: 0x7f01001e + public const int hideOnContentScroll = 2130771998; - // aapt resource value: 0x7F0400B6 - public const int hintAnimationEnabled = 2130968758; + // aapt resource value: 0x7f01014b + public const int hintAnimationEnabled = 2130772299; - // aapt resource value: 0x7F0400B7 - public const int hintEnabled = 2130968759; + // aapt resource value: 0x7f010144 + public const int hintEnabled = 2130772292; - // aapt resource value: 0x7F0400B8 - public const int hintTextAppearance = 2130968760; + // aapt resource value: 0x7f010143 + public const int hintTextAppearance = 2130772291; - // aapt resource value: 0x7F0400B9 - public const int homeAsUpIndicator = 2130968761; + // aapt resource value: 0x7f01006c + public const int homeAsUpIndicator = 2130772076; - // aapt resource value: 0x7F0400BA - public const int homeLayout = 2130968762; + // aapt resource value: 0x7f010019 + public const int homeLayout = 2130771993; - // aapt resource value: 0x7F0400BB - public const int icon = 2130968763; + // aapt resource value: 0x7f010012 + public const int icon = 2130771986; - // aapt resource value: 0x7F0400BE - public const int iconifiedByDefault = 2130968766; + // aapt resource value: 0x7f0100c9 + public const int iconTint = 2130772169; - // aapt resource value: 0x7F0400BC - public const int iconTint = 2130968764; + // aapt resource value: 0x7f0100ca + public const int iconTintMode = 2130772170; - // aapt resource value: 0x7F0400BD - public const int iconTintMode = 2130968765; + // aapt resource value: 0x7f0100d2 + public const int iconifiedByDefault = 2130772178; - // aapt resource value: 0x7F0400BF - public const int imageButtonStyle = 2130968767; + // aapt resource value: 0x7f01007c + public const int imageButtonStyle = 2130772092; - // aapt resource value: 0x7F0400C0 - public const int indeterminateProgressStyle = 2130968768; + // aapt resource value: 0x7f01001b + public const int indeterminateProgressStyle = 2130771995; - // aapt resource value: 0x7F0400C1 - public const int initialActivityCount = 2130968769; + // aapt resource value: 0x7f010028 + public const int initialActivityCount = 2130772008; - // aapt resource value: 0x7F0400C2 - public const int insetForeground = 2130968770; + // aapt resource value: 0x7f010130 + public const int insetForeground = 2130772272; - // aapt resource value: 0x7F0400C3 - public const int isLightTheme = 2130968771; + // aapt resource value: 0x7f01000b + public const int isLightTheme = 2130771979; - // aapt resource value: 0x7F0400C4 - public const int itemBackground = 2130968772; + // aapt resource value: 0x7f01012d + public const int itemBackground = 2130772269; - // aapt resource value: 0x7F0400C5 - public const int itemIconTint = 2130968773; + // aapt resource value: 0x7f01012b + public const int itemIconTint = 2130772267; - // aapt resource value: 0x7F0400C6 - public const int itemPadding = 2130968774; + // aapt resource value: 0x7f01001d + public const int itemPadding = 2130771997; - // aapt resource value: 0x7F0400C7 - public const int itemTextAppearance = 2130968775; + // aapt resource value: 0x7f01012e + public const int itemTextAppearance = 2130772270; - // aapt resource value: 0x7F0400C8 - public const int itemTextColor = 2130968776; + // aapt resource value: 0x7f01012c + public const int itemTextColor = 2130772268; - // aapt resource value: 0x7F0400C9 - public const int keylines = 2130968777; + // aapt resource value: 0x7f010118 + public const int keylines = 2130772248; - // aapt resource value: 0x7F0400CA - public const int layout = 2130968778; + // aapt resource value: 0x7f0100d1 + public const int layout = 2130772177; - // aapt resource value: 0x7F0400CB - public const int layoutManager = 2130968779; + // aapt resource value: 0x7f010000 + public const int layoutManager = 2130771968; - // aapt resource value: 0x7F0400CC - public const int layout_anchor = 2130968780; + // aapt resource value: 0x7f01011b + public const int layout_anchor = 2130772251; - // aapt resource value: 0x7F0400CD - public const int layout_anchorGravity = 2130968781; + // aapt resource value: 0x7f01011d + public const int layout_anchorGravity = 2130772253; - // aapt resource value: 0x7F0400CE - public const int layout_behavior = 2130968782; + // aapt resource value: 0x7f01011a + public const int layout_behavior = 2130772250; - // aapt resource value: 0x7F0400CF - public const int layout_collapseMode = 2130968783; + // aapt resource value: 0x7f010116 + public const int layout_collapseMode = 2130772246; - // aapt resource value: 0x7F0400D0 - public const int layout_collapseParallaxMultiplier = 2130968784; + // aapt resource value: 0x7f010117 + public const int layout_collapseParallaxMultiplier = 2130772247; - // aapt resource value: 0x7F0400D1 - public const int layout_dodgeInsetEdges = 2130968785; + // aapt resource value: 0x7f01011f + public const int layout_dodgeInsetEdges = 2130772255; - // aapt resource value: 0x7F0400D2 - public const int layout_insetEdge = 2130968786; + // aapt resource value: 0x7f01011e + public const int layout_insetEdge = 2130772254; - // aapt resource value: 0x7F0400D3 - public const int layout_keyline = 2130968787; + // aapt resource value: 0x7f01011c + public const int layout_keyline = 2130772252; - // aapt resource value: 0x7F0400D4 - public const int layout_scrollFlags = 2130968788; + // aapt resource value: 0x7f010102 + public const int layout_scrollFlags = 2130772226; - // aapt resource value: 0x7F0400D5 - public const int layout_scrollInterpolator = 2130968789; + // aapt resource value: 0x7f010103 + public const int layout_scrollInterpolator = 2130772227; - // aapt resource value: 0x7F0400D6 - public const int layout_srlBackgroundColor = 2130968790; + // aapt resource value: 0x7f010197 + public const int layout_srlBackgroundColor = 2130772375; - // aapt resource value: 0x7F0400D7 - public const int layout_srlSpinnerStyle = 2130968791; + // aapt resource value: 0x7f01015b + public const int layout_srlSpinnerStyle = 2130772315; - // aapt resource value: 0x7F0400D8 - public const int listChoiceBackgroundIndicator = 2130968792; + // aapt resource value: 0x7f01008e + public const int listChoiceBackgroundIndicator = 2130772110; - // aapt resource value: 0x7F0400D9 - public const int listDividerAlertDialog = 2130968793; + // aapt resource value: 0x7f010068 + public const int listDividerAlertDialog = 2130772072; - // aapt resource value: 0x7F0400DA - public const int listItemLayout = 2130968794; + // aapt resource value: 0x7f01002e + public const int listItemLayout = 2130772014; - // aapt resource value: 0x7F0400DB - public const int listLayout = 2130968795; + // aapt resource value: 0x7f01002b + public const int listLayout = 2130772011; - // aapt resource value: 0x7F0400DC - public const int listMenuViewStyle = 2130968796; + // aapt resource value: 0x7f0100ae + public const int listMenuViewStyle = 2130772142; - // aapt resource value: 0x7F0400DD - public const int listPopupWindowStyle = 2130968797; + // aapt resource value: 0x7f010087 + public const int listPopupWindowStyle = 2130772103; - // aapt resource value: 0x7F0400DE - public const int listPreferredItemHeight = 2130968798; + // aapt resource value: 0x7f010081 + public const int listPreferredItemHeight = 2130772097; - // aapt resource value: 0x7F0400DF - public const int listPreferredItemHeightLarge = 2130968799; + // aapt resource value: 0x7f010083 + public const int listPreferredItemHeightLarge = 2130772099; - // aapt resource value: 0x7F0400E0 - public const int listPreferredItemHeightSmall = 2130968800; + // aapt resource value: 0x7f010082 + public const int listPreferredItemHeightSmall = 2130772098; - // aapt resource value: 0x7F0400E1 - public const int listPreferredItemPaddingLeft = 2130968801; + // aapt resource value: 0x7f010084 + public const int listPreferredItemPaddingLeft = 2130772100; - // aapt resource value: 0x7F0400E2 - public const int listPreferredItemPaddingRight = 2130968802; + // aapt resource value: 0x7f010085 + public const int listPreferredItemPaddingRight = 2130772101; - // aapt resource value: 0x7F0400E3 - public const int logo = 2130968803; + // aapt resource value: 0x7f010013 + public const int logo = 2130771987; - // aapt resource value: 0x7F0400E4 - public const int logoDescription = 2130968804; + // aapt resource value: 0x7f0100f7 + public const int logoDescription = 2130772215; - // aapt resource value: 0x7F0400E5 - public const int maxActionInlineWidth = 2130968805; + // aapt resource value: 0x7f010132 + public const int maxActionInlineWidth = 2130772274; - // aapt resource value: 0x7F0400E6 - public const int maxButtonHeight = 2130968806; + // aapt resource value: 0x7f0100f1 + public const int maxButtonHeight = 2130772209; - // aapt resource value: 0x7F0400E7 - public const int measureWithLargestChild = 2130968807; + // aapt resource value: 0x7f0100be + public const int measureWithLargestChild = 2130772158; - // aapt resource value: 0x7F0400E8 - public const int menu = 2130968808; + // aapt resource value: 0x7f01012a + public const int menu = 2130772266; - // aapt resource value: 0x7F0400E9 - public const int multiChoiceItemLayout = 2130968809; + // aapt resource value: 0x7f01002c + public const int multiChoiceItemLayout = 2130772012; - // aapt resource value: 0x7F0400EA - public const int navigationContentDescription = 2130968810; + // aapt resource value: 0x7f0100f6 + public const int navigationContentDescription = 2130772214; - // aapt resource value: 0x7F0400EB - public const int navigationIcon = 2130968811; + // aapt resource value: 0x7f0100f5 + public const int navigationIcon = 2130772213; - // aapt resource value: 0x7F0400EC - public const int navigationMode = 2130968812; + // aapt resource value: 0x7f01000d + public const int navigationMode = 2130771981; - // aapt resource value: 0x7F0400ED - public const int numericModifiers = 2130968813; + // aapt resource value: 0x7f0100c2 + public const int numericModifiers = 2130772162; - // aapt resource value: 0x7F0400EE - public const int overlapAnchor = 2130968814; + // aapt resource value: 0x7f0100cd + public const int overlapAnchor = 2130772173; - // aapt resource value: 0x7F0400EF - public const int paddingBottomNoButtons = 2130968815; + // aapt resource value: 0x7f0100cf + public const int paddingBottomNoButtons = 2130772175; - // aapt resource value: 0x7F0400F0 - public const int paddingEnd = 2130968816; + // aapt resource value: 0x7f0100fb + public const int paddingEnd = 2130772219; - // aapt resource value: 0x7F0400F1 - public const int paddingStart = 2130968817; + // aapt resource value: 0x7f0100fa + public const int paddingStart = 2130772218; - // aapt resource value: 0x7F0400F2 - public const int paddingTopNoTitle = 2130968818; + // aapt resource value: 0x7f0100d0 + public const int paddingTopNoTitle = 2130772176; - // aapt resource value: 0x7F0400F3 - public const int panelBackground = 2130968819; + // aapt resource value: 0x7f01008b + public const int panelBackground = 2130772107; - // aapt resource value: 0x7F0400F4 - public const int panelMenuListTheme = 2130968820; + // aapt resource value: 0x7f01008d + public const int panelMenuListTheme = 2130772109; - // aapt resource value: 0x7F0400F5 - public const int panelMenuListWidth = 2130968821; + // aapt resource value: 0x7f01008c + public const int panelMenuListWidth = 2130772108; - // aapt resource value: 0x7F0400F6 - public const int passwordToggleContentDescription = 2130968822; + // aapt resource value: 0x7f01014e + public const int passwordToggleContentDescription = 2130772302; - // aapt resource value: 0x7F0400F7 - public const int passwordToggleDrawable = 2130968823; + // aapt resource value: 0x7f01014d + public const int passwordToggleDrawable = 2130772301; - // aapt resource value: 0x7F0400F8 - public const int passwordToggleEnabled = 2130968824; + // aapt resource value: 0x7f01014c + public const int passwordToggleEnabled = 2130772300; - // aapt resource value: 0x7F0400F9 - public const int passwordToggleTint = 2130968825; + // aapt resource value: 0x7f01014f + public const int passwordToggleTint = 2130772303; - // aapt resource value: 0x7F0400FA - public const int passwordToggleTintMode = 2130968826; + // aapt resource value: 0x7f010150 + public const int passwordToggleTintMode = 2130772304; - // aapt resource value: 0x7F0400FB - public const int popupMenuStyle = 2130968827; + // aapt resource value: 0x7f010078 + public const int popupMenuStyle = 2130772088; - // aapt resource value: 0x7F0400FC - public const int popupTheme = 2130968828; + // aapt resource value: 0x7f010026 + public const int popupTheme = 2130772006; - // aapt resource value: 0x7F0400FD - public const int popupWindowStyle = 2130968829; + // aapt resource value: 0x7f010079 + public const int popupWindowStyle = 2130772089; - // aapt resource value: 0x7F0400FE - public const int preserveIconSpacing = 2130968830; + // aapt resource value: 0x7f0100cb + public const int preserveIconSpacing = 2130772171; - // aapt resource value: 0x7F0400FF - public const int pressedTranslationZ = 2130968831; + // aapt resource value: 0x7f010125 + public const int pressedTranslationZ = 2130772261; - // aapt resource value: 0x7F040100 - public const int progressBarPadding = 2130968832; + // aapt resource value: 0x7f01001c + public const int progressBarPadding = 2130771996; - // aapt resource value: 0x7F040101 - public const int progressBarStyle = 2130968833; + // aapt resource value: 0x7f01001a + public const int progressBarStyle = 2130771994; - // aapt resource value: 0x7F040102 - public const int queryBackground = 2130968834; + // aapt resource value: 0x7f0100dc + public const int queryBackground = 2130772188; - // aapt resource value: 0x7F040103 - public const int queryHint = 2130968835; + // aapt resource value: 0x7f0100d3 + public const int queryHint = 2130772179; - // aapt resource value: 0x7F040104 - public const int radioButtonStyle = 2130968836; + // aapt resource value: 0x7f0100a7 + public const int radioButtonStyle = 2130772135; - // aapt resource value: 0x7F040105 - public const int ratingBarStyle = 2130968837; + // aapt resource value: 0x7f0100a8 + public const int ratingBarStyle = 2130772136; - // aapt resource value: 0x7F040106 - public const int ratingBarStyleIndicator = 2130968838; + // aapt resource value: 0x7f0100a9 + public const int ratingBarStyleIndicator = 2130772137; - // aapt resource value: 0x7F040107 - public const int ratingBarStyleSmall = 2130968839; + // aapt resource value: 0x7f0100aa + public const int ratingBarStyleSmall = 2130772138; - // aapt resource value: 0x7F040108 - public const int reverseLayout = 2130968840; + // aapt resource value: 0x7f010002 + public const int reverseLayout = 2130771970; - // aapt resource value: 0x7F040109 - public const int rippleColor = 2130968841; + // aapt resource value: 0x7f010123 + public const int rippleColor = 2130772259; - // aapt resource value: 0x7F04010A - public const int scrimAnimationDuration = 2130968842; + // aapt resource value: 0x7f010112 + public const int scrimAnimationDuration = 2130772242; - // aapt resource value: 0x7F04010B - public const int scrimVisibleHeightTrigger = 2130968843; + // aapt resource value: 0x7f010111 + public const int scrimVisibleHeightTrigger = 2130772241; - // aapt resource value: 0x7F04010C - public const int searchHintIcon = 2130968844; + // aapt resource value: 0x7f0100d8 + public const int searchHintIcon = 2130772184; - // aapt resource value: 0x7F04010D - public const int searchIcon = 2130968845; + // aapt resource value: 0x7f0100d7 + public const int searchIcon = 2130772183; - // aapt resource value: 0x7F04010E - public const int searchViewStyle = 2130968846; + // aapt resource value: 0x7f010080 + public const int searchViewStyle = 2130772096; - // aapt resource value: 0x7F04010F - public const int second_curtain_bar_color = 2130968847; + // aapt resource value: 0x7f0101b1 + public const int second_curtain_bar_color = 2130772401; - // aapt resource value: 0x7F040110 - public const int second_wave_color = 2130968848; + // aapt resource value: 0x7f0101b7 + public const int second_wave_color = 2130772407; - // aapt resource value: 0x7F040111 - public const int seekBarStyle = 2130968849; + // aapt resource value: 0x7f0100ab + public const int seekBarStyle = 2130772139; - // aapt resource value: 0x7F040112 - public const int selectableItemBackground = 2130968850; + // aapt resource value: 0x7f010070 + public const int selectableItemBackground = 2130772080; - // aapt resource value: 0x7F040113 - public const int selectableItemBackgroundBorderless = 2130968851; + // aapt resource value: 0x7f010071 + public const int selectableItemBackgroundBorderless = 2130772081; - // aapt resource value: 0x7F040114 - public const int showAsAction = 2130968852; + // aapt resource value: 0x7f0100c3 + public const int showAsAction = 2130772163; - // aapt resource value: 0x7F040115 - public const int showDividers = 2130968853; + // aapt resource value: 0x7f0100bf + public const int showDividers = 2130772159; - // aapt resource value: 0x7F040116 - public const int showText = 2130968854; + // aapt resource value: 0x7f0100e8 + public const int showText = 2130772200; - // aapt resource value: 0x7F040117 - public const int showTitle = 2130968855; + // aapt resource value: 0x7f01002f + public const int showTitle = 2130772015; - // aapt resource value: 0x7F040118 - public const int singleChoiceItemLayout = 2130968856; + // aapt resource value: 0x7f01002d + public const int singleChoiceItemLayout = 2130772013; - // aapt resource value: 0x7F040119 - public const int spanCount = 2130968857; + // aapt resource value: 0x7f010001 + public const int spanCount = 2130771969; - // aapt resource value: 0x7F04011A - public const int spinBars = 2130968858; + // aapt resource value: 0x7f0100b7 + public const int spinBars = 2130772151; - // aapt resource value: 0x7F04011B - public const int spinnerDropDownItemStyle = 2130968859; + // aapt resource value: 0x7f01006b + public const int spinnerDropDownItemStyle = 2130772075; - // aapt resource value: 0x7F04011C - public const int spinnerStyle = 2130968860; + // aapt resource value: 0x7f0100ac + public const int spinnerStyle = 2130772140; - // aapt resource value: 0x7F04011D - public const int splitTrack = 2130968861; + // aapt resource value: 0x7f0100e7 + public const int splitTrack = 2130772199; - // aapt resource value: 0x7F04011E - public const int srcCompat = 2130968862; + // aapt resource value: 0x7f010030 + public const int srcCompat = 2130772016; - // aapt resource value: 0x7F04011F - public const int srlAccentColor = 2130968863; + // aapt resource value: 0x7f01015c + public const int srlAccentColor = 2130772316; - // aapt resource value: 0x7F040120 - public const int srlAnimatingColor = 2130968864; + // aapt resource value: 0x7f010172 + public const int srlAnimatingColor = 2130772338; - // aapt resource value: 0x7F040121 - public const int srlClassicsSpinnerStyle = 2130968865; + // aapt resource value: 0x7f01015d + public const int srlClassicsSpinnerStyle = 2130772317; - // aapt resource value: 0x7F040122 - public const int srlDisableContentWhenLoading = 2130968866; + // aapt resource value: 0x7f010194 + public const int srlDisableContentWhenLoading = 2130772372; - // aapt resource value: 0x7F040123 - public const int srlDisableContentWhenRefresh = 2130968867; + // aapt resource value: 0x7f010193 + public const int srlDisableContentWhenRefresh = 2130772371; - // aapt resource value: 0x7F040124 - public const int srlDragRate = 2130968868; + // aapt resource value: 0x7f01017b + public const int srlDragRate = 2130772347; - // aapt resource value: 0x7F040125 - public const int srlDrawableArrow = 2130968869; + // aapt resource value: 0x7f01015e + public const int srlDrawableArrow = 2130772318; - // aapt resource value: 0x7F040126 - public const int srlDrawableArrowSize = 2130968870; + // aapt resource value: 0x7f01015f + public const int srlDrawableArrowSize = 2130772319; - // aapt resource value: 0x7F040127 - public const int srlDrawableMarginRight = 2130968871; + // aapt resource value: 0x7f010160 + public const int srlDrawableMarginRight = 2130772320; - // aapt resource value: 0x7F040128 - public const int srlDrawableProgress = 2130968872; + // aapt resource value: 0x7f010161 + public const int srlDrawableProgress = 2130772321; - // aapt resource value: 0x7F040129 - public const int srlDrawableProgressSize = 2130968873; + // aapt resource value: 0x7f010162 + public const int srlDrawableProgressSize = 2130772322; - // aapt resource value: 0x7F04012A - public const int srlDrawableSize = 2130968874; + // aapt resource value: 0x7f010163 + public const int srlDrawableSize = 2130772323; - // aapt resource value: 0x7F04012B - public const int srlEnableAutoLoadMore = 2130968875; + // aapt resource value: 0x7f010187 + public const int srlEnableAutoLoadMore = 2130772359; - // aapt resource value: 0x7F04012C - public const int srlEnableClipFooterWhenFixedBehind = 2130968876; + // aapt resource value: 0x7f010191 + public const int srlEnableClipFooterWhenFixedBehind = 2130772369; - // aapt resource value: 0x7F04012D - public const int srlEnableClipHeaderWhenFixedBehind = 2130968877; + // aapt resource value: 0x7f010190 + public const int srlEnableClipHeaderWhenFixedBehind = 2130772368; - // aapt resource value: 0x7F04012E - public const int srlEnableFooterFollowWhenLoadFinished = 2130968878; + // aapt resource value: 0x7f01018e + public const int srlEnableFooterFollowWhenLoadFinished = 2130772366; - // aapt resource value: 0x7F04012F - public const int srlEnableFooterFollowWhenNoMoreData = 2130968879; + // aapt resource value: 0x7f01018f + public const int srlEnableFooterFollowWhenNoMoreData = 2130772367; - // aapt resource value: 0x7F040130 - public const int srlEnableFooterTranslationContent = 2130968880; + // aapt resource value: 0x7f010183 + public const int srlEnableFooterTranslationContent = 2130772355; - // aapt resource value: 0x7F040131 - public const int srlEnableHeaderTranslationContent = 2130968881; + // aapt resource value: 0x7f010182 + public const int srlEnableHeaderTranslationContent = 2130772354; - // aapt resource value: 0x7F040132 - public const int srlEnableHorizontalDrag = 2130968882; + // aapt resource value: 0x7f010164 + public const int srlEnableHorizontalDrag = 2130772324; - // aapt resource value: 0x7F040133 - public const int srlEnableLastTime = 2130968883; + // aapt resource value: 0x7f010175 + public const int srlEnableLastTime = 2130772341; - // aapt resource value: 0x7F040134 - public const int srlEnableLoadMore = 2130968884; + // aapt resource value: 0x7f010181 + public const int srlEnableLoadMore = 2130772353; - // aapt resource value: 0x7F040135 - public const int srlEnableLoadMoreWhenContentNotFull = 2130968885; + // aapt resource value: 0x7f01018d + public const int srlEnableLoadMoreWhenContentNotFull = 2130772365; - // aapt resource value: 0x7F040136 - public const int srlEnableNestedScrolling = 2130968886; + // aapt resource value: 0x7f01018a + public const int srlEnableNestedScrolling = 2130772362; - // aapt resource value: 0x7F040137 - public const int srlEnableOverScrollBounce = 2130968887; + // aapt resource value: 0x7f010188 + public const int srlEnableOverScrollBounce = 2130772360; - // aapt resource value: 0x7F040138 - public const int srlEnableOverScrollDrag = 2130968888; + // aapt resource value: 0x7f010192 + public const int srlEnableOverScrollDrag = 2130772370; - // aapt resource value: 0x7F040139 - public const int srlEnablePreviewInEditMode = 2130968889; + // aapt resource value: 0x7f010186 + public const int srlEnablePreviewInEditMode = 2130772358; - // aapt resource value: 0x7F04013A - public const int srlEnablePullToCloseTwoLevel = 2130968890; + // aapt resource value: 0x7f01019d + public const int srlEnablePullToCloseTwoLevel = 2130772381; - // aapt resource value: 0x7F04013B - public const int srlEnablePureScrollMode = 2130968891; + // aapt resource value: 0x7f010189 + public const int srlEnablePureScrollMode = 2130772361; - // aapt resource value: 0x7F04013C - public const int srlEnableRefresh = 2130968892; + // aapt resource value: 0x7f010180 + public const int srlEnableRefresh = 2130772352; - // aapt resource value: 0x7F04013D - public const int srlEnableScrollContentWhenLoaded = 2130968893; + // aapt resource value: 0x7f01018b + public const int srlEnableScrollContentWhenLoaded = 2130772363; - // aapt resource value: 0x7F04013E - public const int srlEnableScrollContentWhenRefreshed = 2130968894; + // aapt resource value: 0x7f01018c + public const int srlEnableScrollContentWhenRefreshed = 2130772364; - // aapt resource value: 0x7F04013F - public const int srlEnableTwoLevel = 2130968895; + // aapt resource value: 0x7f01019c + public const int srlEnableTwoLevel = 2130772380; - // aapt resource value: 0x7F040140 - public const int srlFinishDuration = 2130968896; + // aapt resource value: 0x7f010165 + public const int srlFinishDuration = 2130772325; - // aapt resource value: 0x7F040141 - public const int srlFixedFooterViewId = 2130968897; + // aapt resource value: 0x7f010196 + public const int srlFixedFooterViewId = 2130772374; - // aapt resource value: 0x7F040142 - public const int srlFixedHeaderViewId = 2130968898; + // aapt resource value: 0x7f010195 + public const int srlFixedHeaderViewId = 2130772373; - // aapt resource value: 0x7F040143 - public const int srlFloorDuration = 2130968899; + // aapt resource value: 0x7f01019b + public const int srlFloorDuration = 2130772379; - // aapt resource value: 0x7F040144 - public const int srlFloorRage = 2130968900; + // aapt resource value: 0x7f010199 + public const int srlFloorRage = 2130772377; - // aapt resource value: 0x7F040145 - public const int srlFooterHeight = 2130968901; + // aapt resource value: 0x7f010178 + public const int srlFooterHeight = 2130772344; - // aapt resource value: 0x7F040146 - public const int srlFooterInsetStart = 2130968902; + // aapt resource value: 0x7f01017a + public const int srlFooterInsetStart = 2130772346; - // aapt resource value: 0x7F040147 - public const int srlFooterMaxDragRate = 2130968903; + // aapt resource value: 0x7f01017d + public const int srlFooterMaxDragRate = 2130772349; - // aapt resource value: 0x7F040148 - public const int srlFooterTranslationViewId = 2130968904; + // aapt resource value: 0x7f010185 + public const int srlFooterTranslationViewId = 2130772357; - // aapt resource value: 0x7F040149 - public const int srlFooterTriggerRate = 2130968905; + // aapt resource value: 0x7f01017f + public const int srlFooterTriggerRate = 2130772351; - // aapt resource value: 0x7F04014A - public const int srlHeaderHeight = 2130968906; + // aapt resource value: 0x7f010177 + public const int srlHeaderHeight = 2130772343; - // aapt resource value: 0x7F04014B - public const int srlHeaderInsetStart = 2130968907; + // aapt resource value: 0x7f010179 + public const int srlHeaderInsetStart = 2130772345; - // aapt resource value: 0x7F04014C - public const int srlHeaderMaxDragRate = 2130968908; + // aapt resource value: 0x7f01017c + public const int srlHeaderMaxDragRate = 2130772348; - // aapt resource value: 0x7F04014D - public const int srlHeaderTranslationViewId = 2130968909; + // aapt resource value: 0x7f010184 + public const int srlHeaderTranslationViewId = 2130772356; - // aapt resource value: 0x7F04014E - public const int srlHeaderTriggerRate = 2130968910; + // aapt resource value: 0x7f01017e + public const int srlHeaderTriggerRate = 2130772350; - // aapt resource value: 0x7F04014F - public const int srlMaxRage = 2130968911; + // aapt resource value: 0x7f010198 + public const int srlMaxRage = 2130772376; - // aapt resource value: 0x7F040150 - public const int srlNormalColor = 2130968912; + // aapt resource value: 0x7f010173 + public const int srlNormalColor = 2130772339; - // aapt resource value: 0x7F040151 - public const int srlPrimaryColor = 2130968913; + // aapt resource value: 0x7f010166 + public const int srlPrimaryColor = 2130772326; - // aapt resource value: 0x7F040152 - public const int srlReboundDuration = 2130968914; + // aapt resource value: 0x7f010176 + public const int srlReboundDuration = 2130772342; - // aapt resource value: 0x7F040153 - public const int srlRefreshRage = 2130968915; + // aapt resource value: 0x7f01019a + public const int srlRefreshRage = 2130772378; - // aapt resource value: 0x7F040154 - public const int srlTextFailed = 2130968916; + // aapt resource value: 0x7f010167 + public const int srlTextFailed = 2130772327; - // aapt resource value: 0x7F040155 - public const int srlTextFinish = 2130968917; + // aapt resource value: 0x7f010168 + public const int srlTextFinish = 2130772328; - // aapt resource value: 0x7F040156 - public const int srlTextLoading = 2130968918; + // aapt resource value: 0x7f010169 + public const int srlTextLoading = 2130772329; - // aapt resource value: 0x7F040157 - public const int srlTextNothing = 2130968919; + // aapt resource value: 0x7f01016a + public const int srlTextNothing = 2130772330; - // aapt resource value: 0x7F040158 - public const int srlTextPulling = 2130968920; + // aapt resource value: 0x7f01016b + public const int srlTextPulling = 2130772331; - // aapt resource value: 0x7F040159 - public const int srlTextRefreshing = 2130968921; + // aapt resource value: 0x7f01016c + public const int srlTextRefreshing = 2130772332; - // aapt resource value: 0x7F04015A - public const int srlTextRelease = 2130968922; + // aapt resource value: 0x7f01016d + public const int srlTextRelease = 2130772333; - // aapt resource value: 0x7F04015B - public const int srlTextSecondary = 2130968923; + // aapt resource value: 0x7f01016e + public const int srlTextSecondary = 2130772334; - // aapt resource value: 0x7F04015C - public const int srlTextSizeTime = 2130968924; + // aapt resource value: 0x7f01016f + public const int srlTextSizeTime = 2130772335; - // aapt resource value: 0x7F04015D - public const int srlTextSizeTitle = 2130968925; + // aapt resource value: 0x7f010170 + public const int srlTextSizeTitle = 2130772336; - // aapt resource value: 0x7F04015E - public const int srlTextTimeMarginTop = 2130968926; + // aapt resource value: 0x7f010174 + public const int srlTextTimeMarginTop = 2130772340; - // aapt resource value: 0x7F04015F - public const int srlTextUpdate = 2130968927; + // aapt resource value: 0x7f010171 + public const int srlTextUpdate = 2130772337; - // aapt resource value: 0x7F040160 - public const int stackFromEnd = 2130968928; + // aapt resource value: 0x7f010003 + public const int stackFromEnd = 2130771971; - // aapt resource value: 0x7F040161 - public const int state_above_anchor = 2130968929; + // aapt resource value: 0x7f0100ce + public const int state_above_anchor = 2130772174; - // aapt resource value: 0x7F040162 - public const int state_collapsed = 2130968930; + // aapt resource value: 0x7f010100 + public const int state_collapsed = 2130772224; - // aapt resource value: 0x7F040163 - public const int state_collapsible = 2130968931; + // aapt resource value: 0x7f010101 + public const int state_collapsible = 2130772225; - // aapt resource value: 0x7F040164 - public const int statusBarBackground = 2130968932; + // aapt resource value: 0x7f010119 + public const int statusBarBackground = 2130772249; - // aapt resource value: 0x7F040165 - public const int statusBarScrim = 2130968933; + // aapt resource value: 0x7f01010f + public const int statusBarScrim = 2130772239; - // aapt resource value: 0x7F040166 - public const int subMenuArrow = 2130968934; + // aapt resource value: 0x7f0100cc + public const int subMenuArrow = 2130772172; - // aapt resource value: 0x7F040167 - public const int submitBackground = 2130968935; + // aapt resource value: 0x7f0100dd + public const int submitBackground = 2130772189; - // aapt resource value: 0x7F040168 - public const int subtitle = 2130968936; + // aapt resource value: 0x7f01000f + public const int subtitle = 2130771983; - // aapt resource value: 0x7F040169 - public const int subtitleTextAppearance = 2130968937; + // aapt resource value: 0x7f0100ea + public const int subtitleTextAppearance = 2130772202; - // aapt resource value: 0x7F04016A - public const int subtitleTextColor = 2130968938; + // aapt resource value: 0x7f0100f9 + public const int subtitleTextColor = 2130772217; - // aapt resource value: 0x7F04016B - public const int subtitleTextStyle = 2130968939; + // aapt resource value: 0x7f010011 + public const int subtitleTextStyle = 2130771985; - // aapt resource value: 0x7F04016C - public const int suggestionRowLayout = 2130968940; + // aapt resource value: 0x7f0100db + public const int suggestionRowLayout = 2130772187; - // aapt resource value: 0x7F04016D - public const int switchMinWidth = 2130968941; + // aapt resource value: 0x7f0100e5 + public const int switchMinWidth = 2130772197; - // aapt resource value: 0x7F04016E - public const int switchPadding = 2130968942; + // aapt resource value: 0x7f0100e6 + public const int switchPadding = 2130772198; - // aapt resource value: 0x7F04016F - public const int switchStyle = 2130968943; + // aapt resource value: 0x7f0100ad + public const int switchStyle = 2130772141; - // aapt resource value: 0x7F040170 - public const int switchTextAppearance = 2130968944; + // aapt resource value: 0x7f0100e4 + public const int switchTextAppearance = 2130772196; - // aapt resource value: 0x7F040171 - public const int tabBackground = 2130968945; + // aapt resource value: 0x7f010136 + public const int tabBackground = 2130772278; - // aapt resource value: 0x7F040172 - public const int tabContentStart = 2130968946; + // aapt resource value: 0x7f010135 + public const int tabContentStart = 2130772277; - // aapt resource value: 0x7F040173 - public const int tabGravity = 2130968947; + // aapt resource value: 0x7f010138 + public const int tabGravity = 2130772280; - // aapt resource value: 0x7F040174 - public const int tabIndicatorColor = 2130968948; + // aapt resource value: 0x7f010133 + public const int tabIndicatorColor = 2130772275; - // aapt resource value: 0x7F040175 - public const int tabIndicatorHeight = 2130968949; + // aapt resource value: 0x7f010134 + public const int tabIndicatorHeight = 2130772276; - // aapt resource value: 0x7F040176 - public const int tabMaxWidth = 2130968950; + // aapt resource value: 0x7f01013a + public const int tabMaxWidth = 2130772282; - // aapt resource value: 0x7F040177 - public const int tabMinWidth = 2130968951; + // aapt resource value: 0x7f010139 + public const int tabMinWidth = 2130772281; - // aapt resource value: 0x7F040178 - public const int tabMode = 2130968952; + // aapt resource value: 0x7f010137 + public const int tabMode = 2130772279; - // aapt resource value: 0x7F040179 - public const int tabPadding = 2130968953; + // aapt resource value: 0x7f010142 + public const int tabPadding = 2130772290; - // aapt resource value: 0x7F04017A - public const int tabPaddingBottom = 2130968954; + // aapt resource value: 0x7f010141 + public const int tabPaddingBottom = 2130772289; - // aapt resource value: 0x7F04017B - public const int tabPaddingEnd = 2130968955; + // aapt resource value: 0x7f010140 + public const int tabPaddingEnd = 2130772288; - // aapt resource value: 0x7F04017C - public const int tabPaddingStart = 2130968956; + // aapt resource value: 0x7f01013e + public const int tabPaddingStart = 2130772286; - // aapt resource value: 0x7F04017D - public const int tabPaddingTop = 2130968957; + // aapt resource value: 0x7f01013f + public const int tabPaddingTop = 2130772287; - // aapt resource value: 0x7F04017E - public const int tabSelectedTextColor = 2130968958; + // aapt resource value: 0x7f01013d + public const int tabSelectedTextColor = 2130772285; - // aapt resource value: 0x7F04017F - public const int tabTextAppearance = 2130968959; + // aapt resource value: 0x7f01013b + public const int tabTextAppearance = 2130772283; - // aapt resource value: 0x7F040180 - public const int tabTextColor = 2130968960; + // aapt resource value: 0x7f01013c + public const int tabTextColor = 2130772284; - // aapt resource value: 0x7F040181 - public const int textAllCaps = 2130968961; + // aapt resource value: 0x7f010036 + public const int textAllCaps = 2130772022; - // aapt resource value: 0x7F040182 - public const int textAppearanceLargePopupMenu = 2130968962; + // aapt resource value: 0x7f010063 + public const int textAppearanceLargePopupMenu = 2130772067; - // aapt resource value: 0x7F040183 - public const int textAppearanceListItem = 2130968963; + // aapt resource value: 0x7f010088 + public const int textAppearanceListItem = 2130772104; - // aapt resource value: 0x7F040184 - public const int textAppearanceListItemSecondary = 2130968964; + // aapt resource value: 0x7f010089 + public const int textAppearanceListItemSecondary = 2130772105; - // aapt resource value: 0x7F040185 - public const int textAppearanceListItemSmall = 2130968965; + // aapt resource value: 0x7f01008a + public const int textAppearanceListItemSmall = 2130772106; - // aapt resource value: 0x7F040186 - public const int textAppearancePopupMenuHeader = 2130968966; + // aapt resource value: 0x7f010065 + public const int textAppearancePopupMenuHeader = 2130772069; - // aapt resource value: 0x7F040187 - public const int textAppearanceSearchResultSubtitle = 2130968967; + // aapt resource value: 0x7f01007e + public const int textAppearanceSearchResultSubtitle = 2130772094; - // aapt resource value: 0x7F040188 - public const int textAppearanceSearchResultTitle = 2130968968; + // aapt resource value: 0x7f01007d + public const int textAppearanceSearchResultTitle = 2130772093; - // aapt resource value: 0x7F040189 - public const int textAppearanceSmallPopupMenu = 2130968969; + // aapt resource value: 0x7f010064 + public const int textAppearanceSmallPopupMenu = 2130772068; - // aapt resource value: 0x7F04018A - public const int textColorAlertDialogListItem = 2130968970; + // aapt resource value: 0x7f01009d + public const int textColorAlertDialogListItem = 2130772125; - // aapt resource value: 0x7F04018B - public const int textColorError = 2130968971; + // aapt resource value: 0x7f010122 + public const int textColorError = 2130772258; - // aapt resource value: 0x7F04018C - public const int textColorSearchUrl = 2130968972; + // aapt resource value: 0x7f01007f + public const int textColorSearchUrl = 2130772095; - // aapt resource value: 0x7F04018D - public const int theme = 2130968973; + // aapt resource value: 0x7f0100fc + public const int theme = 2130772220; - // aapt resource value: 0x7F04018E - public const int thickness = 2130968974; + // aapt resource value: 0x7f0100bd + public const int thickness = 2130772157; - // aapt resource value: 0x7F04018F - public const int thumbTextPadding = 2130968975; + // aapt resource value: 0x7f0100e3 + public const int thumbTextPadding = 2130772195; - // aapt resource value: 0x7F040190 - public const int thumbTint = 2130968976; + // aapt resource value: 0x7f0100de + public const int thumbTint = 2130772190; - // aapt resource value: 0x7F040191 - public const int thumbTintMode = 2130968977; + // aapt resource value: 0x7f0100df + public const int thumbTintMode = 2130772191; - // aapt resource value: 0x7F040192 - public const int tickMark = 2130968978; + // aapt resource value: 0x7f010033 + public const int tickMark = 2130772019; - // aapt resource value: 0x7F040193 - public const int tickMarkTint = 2130968979; + // aapt resource value: 0x7f010034 + public const int tickMarkTint = 2130772020; - // aapt resource value: 0x7F040194 - public const int tickMarkTintMode = 2130968980; + // aapt resource value: 0x7f010035 + public const int tickMarkTintMode = 2130772021; - // aapt resource value: 0x7F040195 - public const int tint = 2130968981; + // aapt resource value: 0x7f010031 + public const int tint = 2130772017; - // aapt resource value: 0x7F040196 - public const int tintMode = 2130968982; + // aapt resource value: 0x7f010032 + public const int tintMode = 2130772018; - // aapt resource value: 0x7F040197 - public const int title = 2130968983; + // aapt resource value: 0x7f01000c + public const int title = 2130771980; - // aapt resource value: 0x7F040198 - public const int titleEnabled = 2130968984; + // aapt resource value: 0x7f010115 + public const int titleEnabled = 2130772245; - // aapt resource value: 0x7F040199 - public const int titleMargin = 2130968985; + // aapt resource value: 0x7f0100eb + public const int titleMargin = 2130772203; - // aapt resource value: 0x7F04019A - public const int titleMarginBottom = 2130968986; + // aapt resource value: 0x7f0100ef + public const int titleMarginBottom = 2130772207; - // aapt resource value: 0x7F04019B - public const int titleMarginEnd = 2130968987; + // aapt resource value: 0x7f0100ed + public const int titleMarginEnd = 2130772205; - // aapt resource value: 0x7F04019E - public const int titleMargins = 2130968990; + // aapt resource value: 0x7f0100ec + public const int titleMarginStart = 2130772204; - // aapt resource value: 0x7F04019C - public const int titleMarginStart = 2130968988; + // aapt resource value: 0x7f0100ee + public const int titleMarginTop = 2130772206; - // aapt resource value: 0x7F04019D - public const int titleMarginTop = 2130968989; + // aapt resource value: 0x7f0100f0 + public const int titleMargins = 2130772208; - // aapt resource value: 0x7F04019F - public const int titleTextAppearance = 2130968991; + // aapt resource value: 0x7f0100e9 + public const int titleTextAppearance = 2130772201; - // aapt resource value: 0x7F0401A0 - public const int titleTextColor = 2130968992; + // aapt resource value: 0x7f0100f8 + public const int titleTextColor = 2130772216; - // aapt resource value: 0x7F0401A1 - public const int titleTextStyle = 2130968993; + // aapt resource value: 0x7f010010 + public const int titleTextStyle = 2130771984; - // aapt resource value: 0x7F0401A2 - public const int toolbarId = 2130968994; + // aapt resource value: 0x7f010110 + public const int toolbarId = 2130772240; - // aapt resource value: 0x7F0401A3 - public const int toolbarNavigationButtonStyle = 2130968995; + // aapt resource value: 0x7f010077 + public const int toolbarNavigationButtonStyle = 2130772087; - // aapt resource value: 0x7F0401A4 - public const int toolbarStyle = 2130968996; + // aapt resource value: 0x7f010076 + public const int toolbarStyle = 2130772086; - // aapt resource value: 0x7F0401A5 - public const int tooltipForegroundColor = 2130968997; + // aapt resource value: 0x7f0100b0 + public const int tooltipForegroundColor = 2130772144; - // aapt resource value: 0x7F0401A6 - public const int tooltipFrameBackground = 2130968998; + // aapt resource value: 0x7f0100af + public const int tooltipFrameBackground = 2130772143; - // aapt resource value: 0x7F0401A7 - public const int tooltipText = 2130968999; + // aapt resource value: 0x7f0100c8 + public const int tooltipText = 2130772168; - // aapt resource value: 0x7F0401A8 - public const int track = 2130969000; + // aapt resource value: 0x7f0100e0 + public const int track = 2130772192; - // aapt resource value: 0x7F0401A9 - public const int trackTint = 2130969001; + // aapt resource value: 0x7f0100e1 + public const int trackTint = 2130772193; - // aapt resource value: 0x7F0401AA - public const int trackTintMode = 2130969002; + // aapt resource value: 0x7f0100e2 + public const int trackTintMode = 2130772194; - // aapt resource value: 0x7F0401AB - public const int useCompatPadding = 2130969003; + // aapt resource value: 0x7f010127 + public const int useCompatPadding = 2130772263; - // aapt resource value: 0x7F0401AC - public const int voiceIcon = 2130969004; + // aapt resource value: 0x7f0100d9 + public const int voiceIcon = 2130772185; - // aapt resource value: 0x7F0401AD - public const int wave_bg_color = 2130969005; + // aapt resource value: 0x7f0101b8 + public const int wave_bg_color = 2130772408; - // aapt resource value: 0x7F0401AE - public const int wave_border_color = 2130969006; + // aapt resource value: 0x7f0101b9 + public const int wave_border_color = 2130772409; - // aapt resource value: 0x7F0401AF - public const int wave_color = 2130969007; + // aapt resource value: 0x7f0101b6 + public const int wave_color = 2130772406; - // aapt resource value: 0x7F0401B0 - public const int wave_height = 2130969008; + // aapt resource value: 0x7f0101bb + public const int wave_height = 2130772411; - // aapt resource value: 0x7F0401B1 - public const int wave_width = 2130969009; + // aapt resource value: 0x7f0101ba + public const int wave_width = 2130772410; - // aapt resource value: 0x7F0401B2 - public const int wheelview_dividerColor = 2130969010; + // aapt resource value: 0x7f0101c0 + public const int wheelview_dividerColor = 2130772416; - // aapt resource value: 0x7F0401B3 - public const int wheelview_gravity = 2130969011; + // aapt resource value: 0x7f0101bc + public const int wheelview_gravity = 2130772412; - // aapt resource value: 0x7F0401B4 - public const int wheelview_lineSpacingMultiplier = 2130969012; + // aapt resource value: 0x7f0101c1 + public const int wheelview_lineSpacingMultiplier = 2130772417; - // aapt resource value: 0x7F0401B5 - public const int wheelview_textColorCenter = 2130969013; + // aapt resource value: 0x7f0101bf + public const int wheelview_textColorCenter = 2130772415; - // aapt resource value: 0x7F0401B6 - public const int wheelview_textColorOut = 2130969014; + // aapt resource value: 0x7f0101be + public const int wheelview_textColorOut = 2130772414; - // aapt resource value: 0x7F0401B7 - public const int wheelview_textSize = 2130969015; + // aapt resource value: 0x7f0101bd + public const int wheelview_textSize = 2130772413; - // aapt resource value: 0x7F0401B8 - public const int windowActionBar = 2130969016; + // aapt resource value: 0x7f01003d + public const int windowActionBar = 2130772029; - // aapt resource value: 0x7F0401B9 - public const int windowActionBarOverlay = 2130969017; + // aapt resource value: 0x7f01003f + public const int windowActionBarOverlay = 2130772031; - // aapt resource value: 0x7F0401BA - public const int windowActionModeOverlay = 2130969018; + // aapt resource value: 0x7f010040 + public const int windowActionModeOverlay = 2130772032; - // aapt resource value: 0x7F0401BB - public const int windowFixedHeightMajor = 2130969019; + // aapt resource value: 0x7f010044 + public const int windowFixedHeightMajor = 2130772036; - // aapt resource value: 0x7F0401BC - public const int windowFixedHeightMinor = 2130969020; + // aapt resource value: 0x7f010042 + public const int windowFixedHeightMinor = 2130772034; - // aapt resource value: 0x7F0401BD - public const int windowFixedWidthMajor = 2130969021; + // aapt resource value: 0x7f010041 + public const int windowFixedWidthMajor = 2130772033; - // aapt resource value: 0x7F0401BE - public const int windowFixedWidthMinor = 2130969022; + // aapt resource value: 0x7f010043 + public const int windowFixedWidthMinor = 2130772035; - // aapt resource value: 0x7F0401BF - public const int windowMinWidthMajor = 2130969023; + // aapt resource value: 0x7f010045 + public const int windowMinWidthMajor = 2130772037; - // aapt resource value: 0x7F0401C0 - public const int windowMinWidthMinor = 2130969024; + // aapt resource value: 0x7f010046 + public const int windowMinWidthMinor = 2130772038; - // aapt resource value: 0x7F0401C1 - public const int windowNoTitle = 2130969025; + // aapt resource value: 0x7f01003e + public const int windowNoTitle = 2130772030; static Attribute() { @@ -1670,20 +1670,20 @@ public partial class Boolean { - // aapt resource value: 0x7F050000 - public const int abc_action_bar_embed_tabs = 2131034112; + // aapt resource value: 0x7f0c0000 + public const int abc_action_bar_embed_tabs = 2131492864; - // aapt resource value: 0x7F050001 - public const int abc_allow_stacked_button_bar = 2131034113; + // aapt resource value: 0x7f0c0001 + public const int abc_allow_stacked_button_bar = 2131492865; - // aapt resource value: 0x7F050002 - public const int abc_config_actionMenuItemAllCaps = 2131034114; + // aapt resource value: 0x7f0c0002 + public const int abc_config_actionMenuItemAllCaps = 2131492866; - // aapt resource value: 0x7F050003 - public const int abc_config_closeDialogWhenTouchOutside = 2131034115; + // aapt resource value: 0x7f0c0003 + public const int abc_config_closeDialogWhenTouchOutside = 2131492867; - // aapt resource value: 0x7F050004 - public const int abc_config_showMenuShortcutsWhenKeyboardPresent = 2131034116; + // aapt resource value: 0x7f0c0004 + public const int abc_config_showMenuShortcutsWhenKeyboardPresent = 2131492868; static Boolean() { @@ -1698,323 +1698,323 @@ public partial class Color { - // aapt resource value: 0x7F060000 - public const int abc_background_cache_hint_selector_material_dark = 2131099648; + // aapt resource value: 0x7f0d0052 + public const int abc_background_cache_hint_selector_material_dark = 2131558482; - // aapt resource value: 0x7F060001 - public const int abc_background_cache_hint_selector_material_light = 2131099649; + // aapt resource value: 0x7f0d0053 + public const int abc_background_cache_hint_selector_material_light = 2131558483; - // aapt resource value: 0x7F060002 - public const int abc_btn_colored_borderless_text_material = 2131099650; + // aapt resource value: 0x7f0d0054 + public const int abc_btn_colored_borderless_text_material = 2131558484; - // aapt resource value: 0x7F060003 - public const int abc_btn_colored_text_material = 2131099651; + // aapt resource value: 0x7f0d0055 + public const int abc_btn_colored_text_material = 2131558485; - // aapt resource value: 0x7F060004 - public const int abc_color_highlight_material = 2131099652; + // aapt resource value: 0x7f0d0056 + public const int abc_color_highlight_material = 2131558486; - // aapt resource value: 0x7F060005 - public const int abc_hint_foreground_material_dark = 2131099653; + // aapt resource value: 0x7f0d0057 + public const int abc_hint_foreground_material_dark = 2131558487; - // aapt resource value: 0x7F060006 - public const int abc_hint_foreground_material_light = 2131099654; + // aapt resource value: 0x7f0d0058 + public const int abc_hint_foreground_material_light = 2131558488; - // aapt resource value: 0x7F060007 - public const int abc_input_method_navigation_guard = 2131099655; + // aapt resource value: 0x7f0d0000 + public const int abc_input_method_navigation_guard = 2131558400; - // aapt resource value: 0x7F060008 - public const int abc_primary_text_disable_only_material_dark = 2131099656; + // aapt resource value: 0x7f0d0059 + public const int abc_primary_text_disable_only_material_dark = 2131558489; - // aapt resource value: 0x7F060009 - public const int abc_primary_text_disable_only_material_light = 2131099657; + // aapt resource value: 0x7f0d005a + public const int abc_primary_text_disable_only_material_light = 2131558490; - // aapt resource value: 0x7F06000A - public const int abc_primary_text_material_dark = 2131099658; + // aapt resource value: 0x7f0d005b + public const int abc_primary_text_material_dark = 2131558491; - // aapt resource value: 0x7F06000B - public const int abc_primary_text_material_light = 2131099659; + // aapt resource value: 0x7f0d005c + public const int abc_primary_text_material_light = 2131558492; - // aapt resource value: 0x7F06000C - public const int abc_search_url_text = 2131099660; + // aapt resource value: 0x7f0d005d + public const int abc_search_url_text = 2131558493; - // aapt resource value: 0x7F06000D - public const int abc_search_url_text_normal = 2131099661; + // aapt resource value: 0x7f0d0001 + public const int abc_search_url_text_normal = 2131558401; - // aapt resource value: 0x7F06000E - public const int abc_search_url_text_pressed = 2131099662; + // aapt resource value: 0x7f0d0002 + public const int abc_search_url_text_pressed = 2131558402; - // aapt resource value: 0x7F06000F - public const int abc_search_url_text_selected = 2131099663; + // aapt resource value: 0x7f0d0003 + public const int abc_search_url_text_selected = 2131558403; - // aapt resource value: 0x7F060010 - public const int abc_secondary_text_material_dark = 2131099664; + // aapt resource value: 0x7f0d005e + public const int abc_secondary_text_material_dark = 2131558494; - // aapt resource value: 0x7F060011 - public const int abc_secondary_text_material_light = 2131099665; + // aapt resource value: 0x7f0d005f + public const int abc_secondary_text_material_light = 2131558495; - // aapt resource value: 0x7F060012 - public const int abc_tint_btn_checkable = 2131099666; + // aapt resource value: 0x7f0d0060 + public const int abc_tint_btn_checkable = 2131558496; - // aapt resource value: 0x7F060013 - public const int abc_tint_default = 2131099667; + // aapt resource value: 0x7f0d0061 + public const int abc_tint_default = 2131558497; - // aapt resource value: 0x7F060014 - public const int abc_tint_edittext = 2131099668; + // aapt resource value: 0x7f0d0062 + public const int abc_tint_edittext = 2131558498; - // aapt resource value: 0x7F060015 - public const int abc_tint_seek_thumb = 2131099669; + // aapt resource value: 0x7f0d0063 + public const int abc_tint_seek_thumb = 2131558499; - // aapt resource value: 0x7F060016 - public const int abc_tint_spinner = 2131099670; + // aapt resource value: 0x7f0d0064 + public const int abc_tint_spinner = 2131558500; - // aapt resource value: 0x7F060017 - public const int abc_tint_switch_track = 2131099671; + // aapt resource value: 0x7f0d0065 + public const int abc_tint_switch_track = 2131558501; - // aapt resource value: 0x7F060018 - public const int accent_material_dark = 2131099672; + // aapt resource value: 0x7f0d0004 + public const int accent_material_dark = 2131558404; - // aapt resource value: 0x7F060019 - public const int accent_material_light = 2131099673; + // aapt resource value: 0x7f0d0005 + public const int accent_material_light = 2131558405; - // aapt resource value: 0x7F06001A - public const int background_floating_material_dark = 2131099674; + // aapt resource value: 0x7f0d0006 + public const int background_floating_material_dark = 2131558406; - // aapt resource value: 0x7F06001B - public const int background_floating_material_light = 2131099675; + // aapt resource value: 0x7f0d0007 + public const int background_floating_material_light = 2131558407; - // aapt resource value: 0x7F06001C - public const int background_material_dark = 2131099676; + // aapt resource value: 0x7f0d0008 + public const int background_material_dark = 2131558408; - // aapt resource value: 0x7F06001D - public const int background_material_light = 2131099677; + // aapt resource value: 0x7f0d0009 + public const int background_material_light = 2131558409; - // aapt resource value: 0x7F06001E - public const int bright_foreground_disabled_material_dark = 2131099678; + // aapt resource value: 0x7f0d000a + public const int bright_foreground_disabled_material_dark = 2131558410; - // aapt resource value: 0x7F06001F - public const int bright_foreground_disabled_material_light = 2131099679; + // aapt resource value: 0x7f0d000b + public const int bright_foreground_disabled_material_light = 2131558411; - // aapt resource value: 0x7F060020 - public const int bright_foreground_inverse_material_dark = 2131099680; + // aapt resource value: 0x7f0d000c + public const int bright_foreground_inverse_material_dark = 2131558412; - // aapt resource value: 0x7F060021 - public const int bright_foreground_inverse_material_light = 2131099681; + // aapt resource value: 0x7f0d000d + public const int bright_foreground_inverse_material_light = 2131558413; - // aapt resource value: 0x7F060022 - public const int bright_foreground_material_dark = 2131099682; + // aapt resource value: 0x7f0d000e + public const int bright_foreground_material_dark = 2131558414; - // aapt resource value: 0x7F060023 - public const int bright_foreground_material_light = 2131099683; + // aapt resource value: 0x7f0d000f + public const int bright_foreground_material_light = 2131558415; - // aapt resource value: 0x7F060024 - public const int button_material_dark = 2131099684; + // aapt resource value: 0x7f0d0010 + public const int button_material_dark = 2131558416; - // aapt resource value: 0x7F060025 - public const int button_material_light = 2131099685; + // aapt resource value: 0x7f0d0011 + public const int button_material_light = 2131558417; - // aapt resource value: 0x7F060026 - public const int design_bottom_navigation_shadow_color = 2131099686; + // aapt resource value: 0x7f0d003c + public const int design_bottom_navigation_shadow_color = 2131558460; - // aapt resource value: 0x7F060027 - public const int design_error = 2131099687; + // aapt resource value: 0x7f0d0066 + public const int design_error = 2131558502; - // aapt resource value: 0x7F060028 - public const int design_fab_shadow_end_color = 2131099688; + // aapt resource value: 0x7f0d003d + public const int design_fab_shadow_end_color = 2131558461; - // aapt resource value: 0x7F060029 - public const int design_fab_shadow_mid_color = 2131099689; + // aapt resource value: 0x7f0d003e + public const int design_fab_shadow_mid_color = 2131558462; - // aapt resource value: 0x7F06002A - public const int design_fab_shadow_start_color = 2131099690; + // aapt resource value: 0x7f0d003f + public const int design_fab_shadow_start_color = 2131558463; - // aapt resource value: 0x7F06002B - public const int design_fab_stroke_end_inner_color = 2131099691; + // aapt resource value: 0x7f0d0040 + public const int design_fab_stroke_end_inner_color = 2131558464; - // aapt resource value: 0x7F06002C - public const int design_fab_stroke_end_outer_color = 2131099692; + // aapt resource value: 0x7f0d0041 + public const int design_fab_stroke_end_outer_color = 2131558465; - // aapt resource value: 0x7F06002D - public const int design_fab_stroke_top_inner_color = 2131099693; + // aapt resource value: 0x7f0d0042 + public const int design_fab_stroke_top_inner_color = 2131558466; - // aapt resource value: 0x7F06002E - public const int design_fab_stroke_top_outer_color = 2131099694; + // aapt resource value: 0x7f0d0043 + public const int design_fab_stroke_top_outer_color = 2131558467; - // aapt resource value: 0x7F06002F - public const int design_snackbar_background_color = 2131099695; + // aapt resource value: 0x7f0d0044 + public const int design_snackbar_background_color = 2131558468; - // aapt resource value: 0x7F060030 - public const int design_tint_password_toggle = 2131099696; + // aapt resource value: 0x7f0d0067 + public const int design_tint_password_toggle = 2131558503; - // aapt resource value: 0x7F060031 - public const int dim_foreground_disabled_material_dark = 2131099697; + // aapt resource value: 0x7f0d0012 + public const int dim_foreground_disabled_material_dark = 2131558418; - // aapt resource value: 0x7F060032 - public const int dim_foreground_disabled_material_light = 2131099698; + // aapt resource value: 0x7f0d0013 + public const int dim_foreground_disabled_material_light = 2131558419; - // aapt resource value: 0x7F060033 - public const int dim_foreground_material_dark = 2131099699; + // aapt resource value: 0x7f0d0014 + public const int dim_foreground_material_dark = 2131558420; - // aapt resource value: 0x7F060034 - public const int dim_foreground_material_light = 2131099700; + // aapt resource value: 0x7f0d0015 + public const int dim_foreground_material_light = 2131558421; - // aapt resource value: 0x7F060035 - public const int error_color_material = 2131099701; + // aapt resource value: 0x7f0d0016 + public const int error_color_material = 2131558422; - // aapt resource value: 0x7F060036 - public const int foreground_material_dark = 2131099702; + // aapt resource value: 0x7f0d0017 + public const int foreground_material_dark = 2131558423; - // aapt resource value: 0x7F060037 - public const int foreground_material_light = 2131099703; + // aapt resource value: 0x7f0d0018 + public const int foreground_material_light = 2131558424; - // aapt resource value: 0x7F060038 - public const int gd_top_view = 2131099704; + // aapt resource value: 0x7f0d0048 + public const int gd_top_view = 2131558472; - // aapt resource value: 0x7F060039 - public const int highlighted_text_material_dark = 2131099705; + // aapt resource value: 0x7f0d0019 + public const int highlighted_text_material_dark = 2131558425; - // aapt resource value: 0x7F06003A - public const int highlighted_text_material_light = 2131099706; + // aapt resource value: 0x7f0d001a + public const int highlighted_text_material_light = 2131558426; - // aapt resource value: 0x7F06003B - public const int material_blue_grey_800 = 2131099707; + // aapt resource value: 0x7f0d001b + public const int material_blue_grey_800 = 2131558427; - // aapt resource value: 0x7F06003C - public const int material_blue_grey_900 = 2131099708; + // aapt resource value: 0x7f0d001c + public const int material_blue_grey_900 = 2131558428; - // aapt resource value: 0x7F06003D - public const int material_blue_grey_950 = 2131099709; + // aapt resource value: 0x7f0d001d + public const int material_blue_grey_950 = 2131558429; - // aapt resource value: 0x7F06003E - public const int material_deep_teal_200 = 2131099710; + // aapt resource value: 0x7f0d001e + public const int material_deep_teal_200 = 2131558430; - // aapt resource value: 0x7F06003F - public const int material_deep_teal_500 = 2131099711; + // aapt resource value: 0x7f0d001f + public const int material_deep_teal_500 = 2131558431; - // aapt resource value: 0x7F060040 - public const int material_grey_100 = 2131099712; + // aapt resource value: 0x7f0d0020 + public const int material_grey_100 = 2131558432; - // aapt resource value: 0x7F060041 - public const int material_grey_300 = 2131099713; + // aapt resource value: 0x7f0d0021 + public const int material_grey_300 = 2131558433; - // aapt resource value: 0x7F060042 - public const int material_grey_50 = 2131099714; + // aapt resource value: 0x7f0d0022 + public const int material_grey_50 = 2131558434; - // aapt resource value: 0x7F060043 - public const int material_grey_600 = 2131099715; + // aapt resource value: 0x7f0d0023 + public const int material_grey_600 = 2131558435; - // aapt resource value: 0x7F060044 - public const int material_grey_800 = 2131099716; + // aapt resource value: 0x7f0d0024 + public const int material_grey_800 = 2131558436; - // aapt resource value: 0x7F060045 - public const int material_grey_850 = 2131099717; + // aapt resource value: 0x7f0d0025 + public const int material_grey_850 = 2131558437; - // aapt resource value: 0x7F060046 - public const int material_grey_900 = 2131099718; + // aapt resource value: 0x7f0d0026 + public const int material_grey_900 = 2131558438; - // aapt resource value: 0x7F060047 - public const int material_red_500 = 2131099719; + // aapt resource value: 0x7f0d0047 + public const int material_red_500 = 2131558471; - // aapt resource value: 0x7F060048 - public const int notification_action_color_filter = 2131099720; + // aapt resource value: 0x7f0d0045 + public const int notification_action_color_filter = 2131558469; - // aapt resource value: 0x7F060049 - public const int notification_icon_bg_color = 2131099721; + // aapt resource value: 0x7f0d0046 + public const int notification_icon_bg_color = 2131558470; - // aapt resource value: 0x7F06004A - public const int notification_material_background_media_default_color = 2131099722; + // aapt resource value: 0x7f0d003b + public const int notification_material_background_media_default_color = 2131558459; - // aapt resource value: 0x7F06004B - public const int pickerview_bgColor_default = 2131099723; + // aapt resource value: 0x7f0d0049 + public const int pickerview_bgColor_default = 2131558473; - // aapt resource value: 0x7F06004C - public const int pickerview_bgColor_overlay = 2131099724; + // aapt resource value: 0x7f0d004a + public const int pickerview_bgColor_overlay = 2131558474; - // aapt resource value: 0x7F06004D - public const int pickerview_bg_topbar = 2131099725; + // aapt resource value: 0x7f0d004b + public const int pickerview_bg_topbar = 2131558475; - // aapt resource value: 0x7F06004E - public const int pickerview_timebtn_nor = 2131099726; + // aapt resource value: 0x7f0d004c + public const int pickerview_timebtn_nor = 2131558476; - // aapt resource value: 0x7F06004F - public const int pickerview_timebtn_pre = 2131099727; + // aapt resource value: 0x7f0d004d + public const int pickerview_timebtn_pre = 2131558477; - // aapt resource value: 0x7F060050 - public const int pickerview_topbar_title = 2131099728; + // aapt resource value: 0x7f0d004e + public const int pickerview_topbar_title = 2131558478; - // aapt resource value: 0x7F060051 - public const int pickerview_wheelview_textcolor_center = 2131099729; + // aapt resource value: 0x7f0d004f + public const int pickerview_wheelview_textcolor_center = 2131558479; - // aapt resource value: 0x7F060052 - public const int pickerview_wheelview_textcolor_divider = 2131099730; + // aapt resource value: 0x7f0d0050 + public const int pickerview_wheelview_textcolor_divider = 2131558480; - // aapt resource value: 0x7F060053 - public const int pickerview_wheelview_textcolor_out = 2131099731; + // aapt resource value: 0x7f0d0051 + public const int pickerview_wheelview_textcolor_out = 2131558481; - // aapt resource value: 0x7F060054 - public const int primary_dark_material_dark = 2131099732; + // aapt resource value: 0x7f0d0027 + public const int primary_dark_material_dark = 2131558439; - // aapt resource value: 0x7F060055 - public const int primary_dark_material_light = 2131099733; + // aapt resource value: 0x7f0d0028 + public const int primary_dark_material_light = 2131558440; - // aapt resource value: 0x7F060056 - public const int primary_material_dark = 2131099734; + // aapt resource value: 0x7f0d0029 + public const int primary_material_dark = 2131558441; - // aapt resource value: 0x7F060057 - public const int primary_material_light = 2131099735; + // aapt resource value: 0x7f0d002a + public const int primary_material_light = 2131558442; - // aapt resource value: 0x7F060058 - public const int primary_text_default_material_dark = 2131099736; + // aapt resource value: 0x7f0d002b + public const int primary_text_default_material_dark = 2131558443; - // aapt resource value: 0x7F060059 - public const int primary_text_default_material_light = 2131099737; + // aapt resource value: 0x7f0d002c + public const int primary_text_default_material_light = 2131558444; - // aapt resource value: 0x7F06005A - public const int primary_text_disabled_material_dark = 2131099738; + // aapt resource value: 0x7f0d002d + public const int primary_text_disabled_material_dark = 2131558445; - // aapt resource value: 0x7F06005B - public const int primary_text_disabled_material_light = 2131099739; + // aapt resource value: 0x7f0d002e + public const int primary_text_disabled_material_light = 2131558446; - // aapt resource value: 0x7F06005C - public const int ripple_material_dark = 2131099740; + // aapt resource value: 0x7f0d002f + public const int ripple_material_dark = 2131558447; - // aapt resource value: 0x7F06005D - public const int ripple_material_light = 2131099741; + // aapt resource value: 0x7f0d0030 + public const int ripple_material_light = 2131558448; - // aapt resource value: 0x7F06005E - public const int secondary_text_default_material_dark = 2131099742; + // aapt resource value: 0x7f0d0031 + public const int secondary_text_default_material_dark = 2131558449; - // aapt resource value: 0x7F06005F - public const int secondary_text_default_material_light = 2131099743; + // aapt resource value: 0x7f0d0032 + public const int secondary_text_default_material_light = 2131558450; - // aapt resource value: 0x7F060060 - public const int secondary_text_disabled_material_dark = 2131099744; + // aapt resource value: 0x7f0d0033 + public const int secondary_text_disabled_material_dark = 2131558451; - // aapt resource value: 0x7F060061 - public const int secondary_text_disabled_material_light = 2131099745; + // aapt resource value: 0x7f0d0034 + public const int secondary_text_disabled_material_light = 2131558452; - // aapt resource value: 0x7F060062 - public const int switch_thumb_disabled_material_dark = 2131099746; + // aapt resource value: 0x7f0d0035 + public const int switch_thumb_disabled_material_dark = 2131558453; - // aapt resource value: 0x7F060063 - public const int switch_thumb_disabled_material_light = 2131099747; + // aapt resource value: 0x7f0d0036 + public const int switch_thumb_disabled_material_light = 2131558454; - // aapt resource value: 0x7F060064 - public const int switch_thumb_material_dark = 2131099748; + // aapt resource value: 0x7f0d0068 + public const int switch_thumb_material_dark = 2131558504; - // aapt resource value: 0x7F060065 - public const int switch_thumb_material_light = 2131099749; + // aapt resource value: 0x7f0d0069 + public const int switch_thumb_material_light = 2131558505; - // aapt resource value: 0x7F060066 - public const int switch_thumb_normal_material_dark = 2131099750; + // aapt resource value: 0x7f0d0037 + public const int switch_thumb_normal_material_dark = 2131558455; - // aapt resource value: 0x7F060067 - public const int switch_thumb_normal_material_light = 2131099751; + // aapt resource value: 0x7f0d0038 + public const int switch_thumb_normal_material_light = 2131558456; - // aapt resource value: 0x7F060068 - public const int tooltip_background_dark = 2131099752; + // aapt resource value: 0x7f0d0039 + public const int tooltip_background_dark = 2131558457; - // aapt resource value: 0x7F060069 - public const int tooltip_background_light = 2131099753; + // aapt resource value: 0x7f0d003a + public const int tooltip_background_light = 2131558458; static Color() { @@ -2029,491 +2029,491 @@ public partial class Dimension { - // aapt resource value: 0x7F070000 - public const int abc_action_bar_content_inset_material = 2131165184; + // aapt resource value: 0x7f080012 + public const int abc_action_bar_content_inset_material = 2131230738; - // aapt resource value: 0x7F070001 - public const int abc_action_bar_content_inset_with_nav = 2131165185; + // aapt resource value: 0x7f080013 + public const int abc_action_bar_content_inset_with_nav = 2131230739; - // aapt resource value: 0x7F070002 - public const int abc_action_bar_default_height_material = 2131165186; + // aapt resource value: 0x7f080007 + public const int abc_action_bar_default_height_material = 2131230727; - // aapt resource value: 0x7F070003 - public const int abc_action_bar_default_padding_end_material = 2131165187; + // aapt resource value: 0x7f080014 + public const int abc_action_bar_default_padding_end_material = 2131230740; - // aapt resource value: 0x7F070004 - public const int abc_action_bar_default_padding_start_material = 2131165188; + // aapt resource value: 0x7f080015 + public const int abc_action_bar_default_padding_start_material = 2131230741; - // aapt resource value: 0x7F070005 - public const int abc_action_bar_elevation_material = 2131165189; + // aapt resource value: 0x7f080017 + public const int abc_action_bar_elevation_material = 2131230743; - // aapt resource value: 0x7F070006 - public const int abc_action_bar_icon_vertical_padding_material = 2131165190; + // aapt resource value: 0x7f080018 + public const int abc_action_bar_icon_vertical_padding_material = 2131230744; - // aapt resource value: 0x7F070007 - public const int abc_action_bar_overflow_padding_end_material = 2131165191; + // aapt resource value: 0x7f080019 + public const int abc_action_bar_overflow_padding_end_material = 2131230745; - // aapt resource value: 0x7F070008 - public const int abc_action_bar_overflow_padding_start_material = 2131165192; + // aapt resource value: 0x7f08001a + public const int abc_action_bar_overflow_padding_start_material = 2131230746; - // aapt resource value: 0x7F070009 - public const int abc_action_bar_progress_bar_size = 2131165193; + // aapt resource value: 0x7f080008 + public const int abc_action_bar_progress_bar_size = 2131230728; - // aapt resource value: 0x7F07000A - public const int abc_action_bar_stacked_max_height = 2131165194; + // aapt resource value: 0x7f08001b + public const int abc_action_bar_stacked_max_height = 2131230747; - // aapt resource value: 0x7F07000B - public const int abc_action_bar_stacked_tab_max_width = 2131165195; + // aapt resource value: 0x7f08001c + public const int abc_action_bar_stacked_tab_max_width = 2131230748; - // aapt resource value: 0x7F07000C - public const int abc_action_bar_subtitle_bottom_margin_material = 2131165196; + // aapt resource value: 0x7f08001d + public const int abc_action_bar_subtitle_bottom_margin_material = 2131230749; - // aapt resource value: 0x7F07000D - public const int abc_action_bar_subtitle_top_margin_material = 2131165197; + // aapt resource value: 0x7f08001e + public const int abc_action_bar_subtitle_top_margin_material = 2131230750; - // aapt resource value: 0x7F07000E - public const int abc_action_button_min_height_material = 2131165198; + // aapt resource value: 0x7f08001f + public const int abc_action_button_min_height_material = 2131230751; - // aapt resource value: 0x7F07000F - public const int abc_action_button_min_width_material = 2131165199; + // aapt resource value: 0x7f080020 + public const int abc_action_button_min_width_material = 2131230752; - // aapt resource value: 0x7F070010 - public const int abc_action_button_min_width_overflow_material = 2131165200; + // aapt resource value: 0x7f080021 + public const int abc_action_button_min_width_overflow_material = 2131230753; - // aapt resource value: 0x7F070011 - public const int abc_alert_dialog_button_bar_height = 2131165201; + // aapt resource value: 0x7f080006 + public const int abc_alert_dialog_button_bar_height = 2131230726; - // aapt resource value: 0x7F070012 - public const int abc_button_inset_horizontal_material = 2131165202; + // aapt resource value: 0x7f080022 + public const int abc_button_inset_horizontal_material = 2131230754; - // aapt resource value: 0x7F070013 - public const int abc_button_inset_vertical_material = 2131165203; + // aapt resource value: 0x7f080023 + public const int abc_button_inset_vertical_material = 2131230755; - // aapt resource value: 0x7F070014 - public const int abc_button_padding_horizontal_material = 2131165204; + // aapt resource value: 0x7f080024 + public const int abc_button_padding_horizontal_material = 2131230756; - // aapt resource value: 0x7F070015 - public const int abc_button_padding_vertical_material = 2131165205; + // aapt resource value: 0x7f080025 + public const int abc_button_padding_vertical_material = 2131230757; - // aapt resource value: 0x7F070016 - public const int abc_cascading_menus_min_smallest_width = 2131165206; + // aapt resource value: 0x7f080026 + public const int abc_cascading_menus_min_smallest_width = 2131230758; - // aapt resource value: 0x7F070017 - public const int abc_config_prefDialogWidth = 2131165207; + // aapt resource value: 0x7f08000b + public const int abc_config_prefDialogWidth = 2131230731; - // aapt resource value: 0x7F070018 - public const int abc_control_corner_material = 2131165208; + // aapt resource value: 0x7f080027 + public const int abc_control_corner_material = 2131230759; - // aapt resource value: 0x7F070019 - public const int abc_control_inset_material = 2131165209; + // aapt resource value: 0x7f080028 + public const int abc_control_inset_material = 2131230760; - // aapt resource value: 0x7F07001A - public const int abc_control_padding_material = 2131165210; + // aapt resource value: 0x7f080029 + public const int abc_control_padding_material = 2131230761; - // aapt resource value: 0x7F07001B - public const int abc_dialog_fixed_height_major = 2131165211; + // aapt resource value: 0x7f08000c + public const int abc_dialog_fixed_height_major = 2131230732; - // aapt resource value: 0x7F07001C - public const int abc_dialog_fixed_height_minor = 2131165212; + // aapt resource value: 0x7f08000d + public const int abc_dialog_fixed_height_minor = 2131230733; - // aapt resource value: 0x7F07001D - public const int abc_dialog_fixed_width_major = 2131165213; + // aapt resource value: 0x7f08000e + public const int abc_dialog_fixed_width_major = 2131230734; - // aapt resource value: 0x7F07001E - public const int abc_dialog_fixed_width_minor = 2131165214; + // aapt resource value: 0x7f08000f + public const int abc_dialog_fixed_width_minor = 2131230735; - // aapt resource value: 0x7F07001F - public const int abc_dialog_list_padding_bottom_no_buttons = 2131165215; + // aapt resource value: 0x7f08002a + public const int abc_dialog_list_padding_bottom_no_buttons = 2131230762; - // aapt resource value: 0x7F070020 - public const int abc_dialog_list_padding_top_no_title = 2131165216; + // aapt resource value: 0x7f08002b + public const int abc_dialog_list_padding_top_no_title = 2131230763; - // aapt resource value: 0x7F070021 - public const int abc_dialog_min_width_major = 2131165217; + // aapt resource value: 0x7f080010 + public const int abc_dialog_min_width_major = 2131230736; - // aapt resource value: 0x7F070022 - public const int abc_dialog_min_width_minor = 2131165218; + // aapt resource value: 0x7f080011 + public const int abc_dialog_min_width_minor = 2131230737; - // aapt resource value: 0x7F070023 - public const int abc_dialog_padding_material = 2131165219; + // aapt resource value: 0x7f08002c + public const int abc_dialog_padding_material = 2131230764; - // aapt resource value: 0x7F070024 - public const int abc_dialog_padding_top_material = 2131165220; + // aapt resource value: 0x7f08002d + public const int abc_dialog_padding_top_material = 2131230765; - // aapt resource value: 0x7F070025 - public const int abc_dialog_title_divider_material = 2131165221; + // aapt resource value: 0x7f08002e + public const int abc_dialog_title_divider_material = 2131230766; - // aapt resource value: 0x7F070026 - public const int abc_disabled_alpha_material_dark = 2131165222; + // aapt resource value: 0x7f08002f + public const int abc_disabled_alpha_material_dark = 2131230767; - // aapt resource value: 0x7F070027 - public const int abc_disabled_alpha_material_light = 2131165223; + // aapt resource value: 0x7f080030 + public const int abc_disabled_alpha_material_light = 2131230768; - // aapt resource value: 0x7F070028 - public const int abc_dropdownitem_icon_width = 2131165224; + // aapt resource value: 0x7f080031 + public const int abc_dropdownitem_icon_width = 2131230769; - // aapt resource value: 0x7F070029 - public const int abc_dropdownitem_text_padding_left = 2131165225; + // aapt resource value: 0x7f080032 + public const int abc_dropdownitem_text_padding_left = 2131230770; - // aapt resource value: 0x7F07002A - public const int abc_dropdownitem_text_padding_right = 2131165226; + // aapt resource value: 0x7f080033 + public const int abc_dropdownitem_text_padding_right = 2131230771; - // aapt resource value: 0x7F07002B - public const int abc_edit_text_inset_bottom_material = 2131165227; + // aapt resource value: 0x7f080034 + public const int abc_edit_text_inset_bottom_material = 2131230772; - // aapt resource value: 0x7F07002C - public const int abc_edit_text_inset_horizontal_material = 2131165228; + // aapt resource value: 0x7f080035 + public const int abc_edit_text_inset_horizontal_material = 2131230773; - // aapt resource value: 0x7F07002D - public const int abc_edit_text_inset_top_material = 2131165229; + // aapt resource value: 0x7f080036 + public const int abc_edit_text_inset_top_material = 2131230774; - // aapt resource value: 0x7F07002E - public const int abc_floating_window_z = 2131165230; + // aapt resource value: 0x7f080037 + public const int abc_floating_window_z = 2131230775; - // aapt resource value: 0x7F07002F - public const int abc_list_item_padding_horizontal_material = 2131165231; + // aapt resource value: 0x7f080038 + public const int abc_list_item_padding_horizontal_material = 2131230776; - // aapt resource value: 0x7F070030 - public const int abc_panel_menu_list_width = 2131165232; + // aapt resource value: 0x7f080039 + public const int abc_panel_menu_list_width = 2131230777; - // aapt resource value: 0x7F070031 - public const int abc_progress_bar_height_material = 2131165233; + // aapt resource value: 0x7f08003a + public const int abc_progress_bar_height_material = 2131230778; - // aapt resource value: 0x7F070032 - public const int abc_search_view_preferred_height = 2131165234; + // aapt resource value: 0x7f08003b + public const int abc_search_view_preferred_height = 2131230779; - // aapt resource value: 0x7F070033 - public const int abc_search_view_preferred_width = 2131165235; + // aapt resource value: 0x7f08003c + public const int abc_search_view_preferred_width = 2131230780; - // aapt resource value: 0x7F070034 - public const int abc_seekbar_track_background_height_material = 2131165236; + // aapt resource value: 0x7f08003d + public const int abc_seekbar_track_background_height_material = 2131230781; - // aapt resource value: 0x7F070035 - public const int abc_seekbar_track_progress_height_material = 2131165237; + // aapt resource value: 0x7f08003e + public const int abc_seekbar_track_progress_height_material = 2131230782; - // aapt resource value: 0x7F070036 - public const int abc_select_dialog_padding_start_material = 2131165238; + // aapt resource value: 0x7f08003f + public const int abc_select_dialog_padding_start_material = 2131230783; - // aapt resource value: 0x7F070037 - public const int abc_switch_padding = 2131165239; + // aapt resource value: 0x7f080016 + public const int abc_switch_padding = 2131230742; - // aapt resource value: 0x7F070038 - public const int abc_text_size_body_1_material = 2131165240; + // aapt resource value: 0x7f080040 + public const int abc_text_size_body_1_material = 2131230784; - // aapt resource value: 0x7F070039 - public const int abc_text_size_body_2_material = 2131165241; + // aapt resource value: 0x7f080041 + public const int abc_text_size_body_2_material = 2131230785; - // aapt resource value: 0x7F07003A - public const int abc_text_size_button_material = 2131165242; + // aapt resource value: 0x7f080042 + public const int abc_text_size_button_material = 2131230786; - // aapt resource value: 0x7F07003B - public const int abc_text_size_caption_material = 2131165243; + // aapt resource value: 0x7f080043 + public const int abc_text_size_caption_material = 2131230787; - // aapt resource value: 0x7F07003C - public const int abc_text_size_display_1_material = 2131165244; + // aapt resource value: 0x7f080044 + public const int abc_text_size_display_1_material = 2131230788; - // aapt resource value: 0x7F07003D - public const int abc_text_size_display_2_material = 2131165245; + // aapt resource value: 0x7f080045 + public const int abc_text_size_display_2_material = 2131230789; - // aapt resource value: 0x7F07003E - public const int abc_text_size_display_3_material = 2131165246; + // aapt resource value: 0x7f080046 + public const int abc_text_size_display_3_material = 2131230790; - // aapt resource value: 0x7F07003F - public const int abc_text_size_display_4_material = 2131165247; + // aapt resource value: 0x7f080047 + public const int abc_text_size_display_4_material = 2131230791; - // aapt resource value: 0x7F070040 - public const int abc_text_size_headline_material = 2131165248; + // aapt resource value: 0x7f080048 + public const int abc_text_size_headline_material = 2131230792; - // aapt resource value: 0x7F070041 - public const int abc_text_size_large_material = 2131165249; + // aapt resource value: 0x7f080049 + public const int abc_text_size_large_material = 2131230793; - // aapt resource value: 0x7F070042 - public const int abc_text_size_medium_material = 2131165250; + // aapt resource value: 0x7f08004a + public const int abc_text_size_medium_material = 2131230794; - // aapt resource value: 0x7F070043 - public const int abc_text_size_menu_header_material = 2131165251; + // aapt resource value: 0x7f08004b + public const int abc_text_size_menu_header_material = 2131230795; - // aapt resource value: 0x7F070044 - public const int abc_text_size_menu_material = 2131165252; + // aapt resource value: 0x7f08004c + public const int abc_text_size_menu_material = 2131230796; - // aapt resource value: 0x7F070045 - public const int abc_text_size_small_material = 2131165253; + // aapt resource value: 0x7f08004d + public const int abc_text_size_small_material = 2131230797; - // aapt resource value: 0x7F070046 - public const int abc_text_size_subhead_material = 2131165254; + // aapt resource value: 0x7f08004e + public const int abc_text_size_subhead_material = 2131230798; - // aapt resource value: 0x7F070047 - public const int abc_text_size_subtitle_material_toolbar = 2131165255; + // aapt resource value: 0x7f080009 + public const int abc_text_size_subtitle_material_toolbar = 2131230729; - // aapt resource value: 0x7F070048 - public const int abc_text_size_title_material = 2131165256; + // aapt resource value: 0x7f08004f + public const int abc_text_size_title_material = 2131230799; - // aapt resource value: 0x7F070049 - public const int abc_text_size_title_material_toolbar = 2131165257; + // aapt resource value: 0x7f08000a + public const int abc_text_size_title_material_toolbar = 2131230730; - // aapt resource value: 0x7F07004A - public const int compat_button_inset_horizontal_material = 2131165258; + // aapt resource value: 0x7f08008b + public const int compat_button_inset_horizontal_material = 2131230859; - // aapt resource value: 0x7F07004B - public const int compat_button_inset_vertical_material = 2131165259; + // aapt resource value: 0x7f08008c + public const int compat_button_inset_vertical_material = 2131230860; - // aapt resource value: 0x7F07004C - public const int compat_button_padding_horizontal_material = 2131165260; + // aapt resource value: 0x7f08008d + public const int compat_button_padding_horizontal_material = 2131230861; - // aapt resource value: 0x7F07004D - public const int compat_button_padding_vertical_material = 2131165261; + // aapt resource value: 0x7f08008e + public const int compat_button_padding_vertical_material = 2131230862; - // aapt resource value: 0x7F07004E - public const int compat_control_corner_material = 2131165262; + // aapt resource value: 0x7f08008f + public const int compat_control_corner_material = 2131230863; - // aapt resource value: 0x7F07004F - public const int design_appbar_elevation = 2131165263; + // aapt resource value: 0x7f080069 + public const int design_appbar_elevation = 2131230825; - // aapt resource value: 0x7F070050 - public const int design_bottom_navigation_active_item_max_width = 2131165264; + // aapt resource value: 0x7f08006a + public const int design_bottom_navigation_active_item_max_width = 2131230826; - // aapt resource value: 0x7F070051 - public const int design_bottom_navigation_active_text_size = 2131165265; + // aapt resource value: 0x7f08006b + public const int design_bottom_navigation_active_text_size = 2131230827; - // aapt resource value: 0x7F070052 - public const int design_bottom_navigation_elevation = 2131165266; + // aapt resource value: 0x7f08006c + public const int design_bottom_navigation_elevation = 2131230828; - // aapt resource value: 0x7F070053 - public const int design_bottom_navigation_height = 2131165267; + // aapt resource value: 0x7f08006d + public const int design_bottom_navigation_height = 2131230829; - // aapt resource value: 0x7F070054 - public const int design_bottom_navigation_item_max_width = 2131165268; + // aapt resource value: 0x7f08006e + public const int design_bottom_navigation_item_max_width = 2131230830; - // aapt resource value: 0x7F070055 - public const int design_bottom_navigation_item_min_width = 2131165269; + // aapt resource value: 0x7f08006f + public const int design_bottom_navigation_item_min_width = 2131230831; - // aapt resource value: 0x7F070056 - public const int design_bottom_navigation_margin = 2131165270; + // aapt resource value: 0x7f080070 + public const int design_bottom_navigation_margin = 2131230832; - // aapt resource value: 0x7F070057 - public const int design_bottom_navigation_shadow_height = 2131165271; + // aapt resource value: 0x7f080071 + public const int design_bottom_navigation_shadow_height = 2131230833; - // aapt resource value: 0x7F070058 - public const int design_bottom_navigation_text_size = 2131165272; + // aapt resource value: 0x7f080072 + public const int design_bottom_navigation_text_size = 2131230834; - // aapt resource value: 0x7F070059 - public const int design_bottom_sheet_modal_elevation = 2131165273; + // aapt resource value: 0x7f080073 + public const int design_bottom_sheet_modal_elevation = 2131230835; - // aapt resource value: 0x7F07005A - public const int design_bottom_sheet_peek_height_min = 2131165274; + // aapt resource value: 0x7f080074 + public const int design_bottom_sheet_peek_height_min = 2131230836; - // aapt resource value: 0x7F07005B - public const int design_fab_border_width = 2131165275; + // aapt resource value: 0x7f080075 + public const int design_fab_border_width = 2131230837; - // aapt resource value: 0x7F07005C - public const int design_fab_elevation = 2131165276; + // aapt resource value: 0x7f080076 + public const int design_fab_elevation = 2131230838; - // aapt resource value: 0x7F07005D - public const int design_fab_image_size = 2131165277; + // aapt resource value: 0x7f080077 + public const int design_fab_image_size = 2131230839; - // aapt resource value: 0x7F07005E - public const int design_fab_size_mini = 2131165278; + // aapt resource value: 0x7f080078 + public const int design_fab_size_mini = 2131230840; - // aapt resource value: 0x7F07005F - public const int design_fab_size_normal = 2131165279; + // aapt resource value: 0x7f080079 + public const int design_fab_size_normal = 2131230841; - // aapt resource value: 0x7F070060 - public const int design_fab_translation_z_pressed = 2131165280; + // aapt resource value: 0x7f08007a + public const int design_fab_translation_z_pressed = 2131230842; - // aapt resource value: 0x7F070061 - public const int design_navigation_elevation = 2131165281; + // aapt resource value: 0x7f08007b + public const int design_navigation_elevation = 2131230843; - // aapt resource value: 0x7F070062 - public const int design_navigation_icon_padding = 2131165282; + // aapt resource value: 0x7f08007c + public const int design_navigation_icon_padding = 2131230844; - // aapt resource value: 0x7F070063 - public const int design_navigation_icon_size = 2131165283; + // aapt resource value: 0x7f08007d + public const int design_navigation_icon_size = 2131230845; - // aapt resource value: 0x7F070064 - public const int design_navigation_max_width = 2131165284; + // aapt resource value: 0x7f080061 + public const int design_navigation_max_width = 2131230817; - // aapt resource value: 0x7F070065 - public const int design_navigation_padding_bottom = 2131165285; + // aapt resource value: 0x7f08007e + public const int design_navigation_padding_bottom = 2131230846; - // aapt resource value: 0x7F070066 - public const int design_navigation_separator_vertical_padding = 2131165286; + // aapt resource value: 0x7f08007f + public const int design_navigation_separator_vertical_padding = 2131230847; - // aapt resource value: 0x7F070067 - public const int design_snackbar_action_inline_max_width = 2131165287; + // aapt resource value: 0x7f080062 + public const int design_snackbar_action_inline_max_width = 2131230818; - // aapt resource value: 0x7F070068 - public const int design_snackbar_background_corner_radius = 2131165288; + // aapt resource value: 0x7f080063 + public const int design_snackbar_background_corner_radius = 2131230819; - // aapt resource value: 0x7F070069 - public const int design_snackbar_elevation = 2131165289; + // aapt resource value: 0x7f080080 + public const int design_snackbar_elevation = 2131230848; - // aapt resource value: 0x7F07006A - public const int design_snackbar_extra_spacing_horizontal = 2131165290; + // aapt resource value: 0x7f080064 + public const int design_snackbar_extra_spacing_horizontal = 2131230820; - // aapt resource value: 0x7F07006B - public const int design_snackbar_max_width = 2131165291; + // aapt resource value: 0x7f080065 + public const int design_snackbar_max_width = 2131230821; - // aapt resource value: 0x7F07006C - public const int design_snackbar_min_width = 2131165292; + // aapt resource value: 0x7f080066 + public const int design_snackbar_min_width = 2131230822; - // aapt resource value: 0x7F07006D - public const int design_snackbar_padding_horizontal = 2131165293; + // aapt resource value: 0x7f080081 + public const int design_snackbar_padding_horizontal = 2131230849; - // aapt resource value: 0x7F07006E - public const int design_snackbar_padding_vertical = 2131165294; + // aapt resource value: 0x7f080082 + public const int design_snackbar_padding_vertical = 2131230850; - // aapt resource value: 0x7F07006F - public const int design_snackbar_padding_vertical_2lines = 2131165295; + // aapt resource value: 0x7f080067 + public const int design_snackbar_padding_vertical_2lines = 2131230823; - // aapt resource value: 0x7F070070 - public const int design_snackbar_text_size = 2131165296; + // aapt resource value: 0x7f080083 + public const int design_snackbar_text_size = 2131230851; - // aapt resource value: 0x7F070071 - public const int design_tab_max_width = 2131165297; + // aapt resource value: 0x7f080084 + public const int design_tab_max_width = 2131230852; - // aapt resource value: 0x7F070072 - public const int design_tab_scrollable_min_width = 2131165298; + // aapt resource value: 0x7f080068 + public const int design_tab_scrollable_min_width = 2131230824; - // aapt resource value: 0x7F070073 - public const int design_tab_text_size = 2131165299; + // aapt resource value: 0x7f080085 + public const int design_tab_text_size = 2131230853; - // aapt resource value: 0x7F070074 - public const int design_tab_text_size_2line = 2131165300; + // aapt resource value: 0x7f080086 + public const int design_tab_text_size_2line = 2131230854; - // aapt resource value: 0x7F070075 - public const int disabled_alpha_material_dark = 2131165301; + // aapt resource value: 0x7f080050 + public const int disabled_alpha_material_dark = 2131230800; - // aapt resource value: 0x7F070076 - public const int disabled_alpha_material_light = 2131165302; + // aapt resource value: 0x7f080051 + public const int disabled_alpha_material_light = 2131230801; - // aapt resource value: 0x7F070077 - public const int fastscroll_default_thickness = 2131165303; + // aapt resource value: 0x7f080000 + public const int fastscroll_default_thickness = 2131230720; - // aapt resource value: 0x7F070078 - public const int fastscroll_margin = 2131165304; + // aapt resource value: 0x7f080001 + public const int fastscroll_margin = 2131230721; - // aapt resource value: 0x7F070079 - public const int fastscroll_minimum_range = 2131165305; + // aapt resource value: 0x7f080002 + public const int fastscroll_minimum_range = 2131230722; - // aapt resource value: 0x7F07007A - public const int fingerprint_icon_size = 2131165306; + // aapt resource value: 0x7f08009c + public const int fingerprint_icon_size = 2131230876; - // aapt resource value: 0x7F07007B - public const int fingerprint_status_layout_margin_vertical = 2131165307; + // aapt resource value: 0x7f08009b + public const int fingerprint_status_layout_margin_vertical = 2131230875; - // aapt resource value: 0x7F07007C - public const int highlight_alpha_material_colored = 2131165308; + // aapt resource value: 0x7f080052 + public const int highlight_alpha_material_colored = 2131230802; - // aapt resource value: 0x7F07007D - public const int highlight_alpha_material_dark = 2131165309; + // aapt resource value: 0x7f080053 + public const int highlight_alpha_material_dark = 2131230803; - // aapt resource value: 0x7F07007E - public const int highlight_alpha_material_light = 2131165310; + // aapt resource value: 0x7f080054 + public const int highlight_alpha_material_light = 2131230804; - // aapt resource value: 0x7F07007F - public const int hint_alpha_material_dark = 2131165311; + // aapt resource value: 0x7f080055 + public const int hint_alpha_material_dark = 2131230805; - // aapt resource value: 0x7F070080 - public const int hint_alpha_material_light = 2131165312; + // aapt resource value: 0x7f080056 + public const int hint_alpha_material_light = 2131230806; - // aapt resource value: 0x7F070081 - public const int hint_pressed_alpha_material_dark = 2131165313; + // aapt resource value: 0x7f080057 + public const int hint_pressed_alpha_material_dark = 2131230807; - // aapt resource value: 0x7F070082 - public const int hint_pressed_alpha_material_light = 2131165314; + // aapt resource value: 0x7f080058 + public const int hint_pressed_alpha_material_light = 2131230808; - // aapt resource value: 0x7F070083 - public const int item_touch_helper_max_drag_scroll_per_frame = 2131165315; + // aapt resource value: 0x7f080003 + public const int item_touch_helper_max_drag_scroll_per_frame = 2131230723; - // aapt resource value: 0x7F070084 - public const int item_touch_helper_swipe_escape_max_velocity = 2131165316; + // aapt resource value: 0x7f080004 + public const int item_touch_helper_swipe_escape_max_velocity = 2131230724; - // aapt resource value: 0x7F070085 - public const int item_touch_helper_swipe_escape_velocity = 2131165317; + // aapt resource value: 0x7f080005 + public const int item_touch_helper_swipe_escape_velocity = 2131230725; - // aapt resource value: 0x7F070086 - public const int notification_action_icon_size = 2131165318; + // aapt resource value: 0x7f080090 + public const int notification_action_icon_size = 2131230864; - // aapt resource value: 0x7F070087 - public const int notification_action_text_size = 2131165319; + // aapt resource value: 0x7f080091 + public const int notification_action_text_size = 2131230865; - // aapt resource value: 0x7F070088 - public const int notification_big_circle_margin = 2131165320; + // aapt resource value: 0x7f080092 + public const int notification_big_circle_margin = 2131230866; - // aapt resource value: 0x7F070089 - public const int notification_content_margin_start = 2131165321; + // aapt resource value: 0x7f080088 + public const int notification_content_margin_start = 2131230856; - // aapt resource value: 0x7F07008A - public const int notification_large_icon_height = 2131165322; + // aapt resource value: 0x7f080093 + public const int notification_large_icon_height = 2131230867; - // aapt resource value: 0x7F07008B - public const int notification_large_icon_width = 2131165323; + // aapt resource value: 0x7f080094 + public const int notification_large_icon_width = 2131230868; - // aapt resource value: 0x7F07008C - public const int notification_main_column_padding_top = 2131165324; + // aapt resource value: 0x7f080089 + public const int notification_main_column_padding_top = 2131230857; - // aapt resource value: 0x7F07008D - public const int notification_media_narrow_margin = 2131165325; + // aapt resource value: 0x7f08008a + public const int notification_media_narrow_margin = 2131230858; - // aapt resource value: 0x7F07008E - public const int notification_right_icon_size = 2131165326; + // aapt resource value: 0x7f080095 + public const int notification_right_icon_size = 2131230869; - // aapt resource value: 0x7F07008F - public const int notification_right_side_padding_top = 2131165327; + // aapt resource value: 0x7f080087 + public const int notification_right_side_padding_top = 2131230855; - // aapt resource value: 0x7F070090 - public const int notification_small_icon_background_padding = 2131165328; + // aapt resource value: 0x7f080096 + public const int notification_small_icon_background_padding = 2131230870; - // aapt resource value: 0x7F070091 - public const int notification_small_icon_size_as_large = 2131165329; + // aapt resource value: 0x7f080097 + public const int notification_small_icon_size_as_large = 2131230871; - // aapt resource value: 0x7F070092 - public const int notification_subtext_size = 2131165330; + // aapt resource value: 0x7f080098 + public const int notification_subtext_size = 2131230872; - // aapt resource value: 0x7F070093 - public const int notification_top_pad = 2131165331; + // aapt resource value: 0x7f080099 + public const int notification_top_pad = 2131230873; - // aapt resource value: 0x7F070094 - public const int notification_top_pad_large_text = 2131165332; + // aapt resource value: 0x7f08009a + public const int notification_top_pad_large_text = 2131230874; - // aapt resource value: 0x7F070095 - public const int pickerview_textsize = 2131165333; + // aapt resource value: 0x7f08009d + public const int pickerview_textsize = 2131230877; - // aapt resource value: 0x7F070096 - public const int pickerview_topbar_btn_textsize = 2131165334; + // aapt resource value: 0x7f08009e + public const int pickerview_topbar_btn_textsize = 2131230878; - // aapt resource value: 0x7F070097 - public const int pickerview_topbar_height = 2131165335; + // aapt resource value: 0x7f08009f + public const int pickerview_topbar_height = 2131230879; - // aapt resource value: 0x7F070098 - public const int pickerview_topbar_padding = 2131165336; + // aapt resource value: 0x7f0800a0 + public const int pickerview_topbar_padding = 2131230880; - // aapt resource value: 0x7F070099 - public const int pickerview_topbar_title_textsize = 2131165337; + // aapt resource value: 0x7f0800a1 + public const int pickerview_topbar_title_textsize = 2131230881; - // aapt resource value: 0x7F07009A - public const int tooltip_corner_radius = 2131165338; + // aapt resource value: 0x7f080059 + public const int tooltip_corner_radius = 2131230809; - // aapt resource value: 0x7F07009B - public const int tooltip_horizontal_padding = 2131165339; + // aapt resource value: 0x7f08005a + public const int tooltip_horizontal_padding = 2131230810; - // aapt resource value: 0x7F07009C - public const int tooltip_margin = 2131165340; + // aapt resource value: 0x7f08005b + public const int tooltip_margin = 2131230811; - // aapt resource value: 0x7F07009D - public const int tooltip_precise_anchor_extra_offset = 2131165341; + // aapt resource value: 0x7f08005c + public const int tooltip_precise_anchor_extra_offset = 2131230812; - // aapt resource value: 0x7F07009E - public const int tooltip_precise_anchor_threshold = 2131165342; + // aapt resource value: 0x7f08005d + public const int tooltip_precise_anchor_threshold = 2131230813; - // aapt resource value: 0x7F07009F - public const int tooltip_vertical_padding = 2131165343; + // aapt resource value: 0x7f08005e + public const int tooltip_vertical_padding = 2131230814; - // aapt resource value: 0x7F0700A0 - public const int tooltip_y_offset_non_touch = 2131165344; + // aapt resource value: 0x7f08005f + public const int tooltip_y_offset_non_touch = 2131230815; - // aapt resource value: 0x7F0700A1 - public const int tooltip_y_offset_touch = 2131165345; + // aapt resource value: 0x7f080060 + public const int tooltip_y_offset_touch = 2131230816; static Dimension() { @@ -2528,443 +2528,461 @@ public partial class Drawable { - // aapt resource value: 0x7F080006 - public const int abc_ab_share_pack_mtrl_alpha = 2131230726; + // aapt resource value: 0x7f020000 + public const int abc_ab_share_pack_mtrl_alpha = 2130837504; - // aapt resource value: 0x7F080007 - public const int abc_action_bar_item_background_material = 2131230727; + // aapt resource value: 0x7f020001 + public const int abc_action_bar_item_background_material = 2130837505; - // aapt resource value: 0x7F080008 - public const int abc_btn_borderless_material = 2131230728; + // aapt resource value: 0x7f020002 + public const int abc_btn_borderless_material = 2130837506; - // aapt resource value: 0x7F080009 - public const int abc_btn_check_material = 2131230729; + // aapt resource value: 0x7f020003 + public const int abc_btn_check_material = 2130837507; - // aapt resource value: 0x7F08000A - public const int abc_btn_check_to_on_mtrl_000 = 2131230730; + // aapt resource value: 0x7f020004 + public const int abc_btn_check_to_on_mtrl_000 = 2130837508; - // aapt resource value: 0x7F08000B - public const int abc_btn_check_to_on_mtrl_015 = 2131230731; + // aapt resource value: 0x7f020005 + public const int abc_btn_check_to_on_mtrl_015 = 2130837509; - // aapt resource value: 0x7F08000C - public const int abc_btn_colored_material = 2131230732; + // aapt resource value: 0x7f020006 + public const int abc_btn_colored_material = 2130837510; - // aapt resource value: 0x7F08000D - public const int abc_btn_default_mtrl_shape = 2131230733; + // aapt resource value: 0x7f020007 + public const int abc_btn_default_mtrl_shape = 2130837511; - // aapt resource value: 0x7F08000E - public const int abc_btn_radio_material = 2131230734; + // aapt resource value: 0x7f020008 + public const int abc_btn_radio_material = 2130837512; - // aapt resource value: 0x7F08000F - public const int abc_btn_radio_to_on_mtrl_000 = 2131230735; + // aapt resource value: 0x7f020009 + public const int abc_btn_radio_to_on_mtrl_000 = 2130837513; - // aapt resource value: 0x7F080010 - public const int abc_btn_radio_to_on_mtrl_015 = 2131230736; + // aapt resource value: 0x7f02000a + public const int abc_btn_radio_to_on_mtrl_015 = 2130837514; - // aapt resource value: 0x7F080011 - public const int abc_btn_switch_to_on_mtrl_00001 = 2131230737; + // aapt resource value: 0x7f02000b + public const int abc_btn_switch_to_on_mtrl_00001 = 2130837515; - // aapt resource value: 0x7F080012 - public const int abc_btn_switch_to_on_mtrl_00012 = 2131230738; + // aapt resource value: 0x7f02000c + public const int abc_btn_switch_to_on_mtrl_00012 = 2130837516; - // aapt resource value: 0x7F080013 - public const int abc_cab_background_internal_bg = 2131230739; + // aapt resource value: 0x7f02000d + public const int abc_cab_background_internal_bg = 2130837517; - // aapt resource value: 0x7F080014 - public const int abc_cab_background_top_material = 2131230740; + // aapt resource value: 0x7f02000e + public const int abc_cab_background_top_material = 2130837518; - // aapt resource value: 0x7F080015 - public const int abc_cab_background_top_mtrl_alpha = 2131230741; + // aapt resource value: 0x7f02000f + public const int abc_cab_background_top_mtrl_alpha = 2130837519; - // aapt resource value: 0x7F080016 - public const int abc_control_background_material = 2131230742; + // aapt resource value: 0x7f020010 + public const int abc_control_background_material = 2130837520; - // aapt resource value: 0x7F080017 - public const int abc_dialog_material_background = 2131230743; + // aapt resource value: 0x7f020011 + public const int abc_dialog_material_background = 2130837521; - // aapt resource value: 0x7F080018 - public const int abc_edit_text_material = 2131230744; + // aapt resource value: 0x7f020012 + public const int abc_edit_text_material = 2130837522; - // aapt resource value: 0x7F080019 - public const int abc_ic_ab_back_material = 2131230745; + // aapt resource value: 0x7f020013 + public const int abc_ic_ab_back_material = 2130837523; - // aapt resource value: 0x7F08001A - public const int abc_ic_arrow_drop_right_black_24dp = 2131230746; + // aapt resource value: 0x7f020014 + public const int abc_ic_arrow_drop_right_black_24dp = 2130837524; - // aapt resource value: 0x7F08001B - public const int abc_ic_clear_material = 2131230747; + // aapt resource value: 0x7f020015 + public const int abc_ic_clear_material = 2130837525; - // aapt resource value: 0x7F08001C - public const int abc_ic_commit_search_api_mtrl_alpha = 2131230748; + // aapt resource value: 0x7f020016 + public const int abc_ic_commit_search_api_mtrl_alpha = 2130837526; - // aapt resource value: 0x7F08001D - public const int abc_ic_go_search_api_material = 2131230749; + // aapt resource value: 0x7f020017 + public const int abc_ic_go_search_api_material = 2130837527; - // aapt resource value: 0x7F08001E - public const int abc_ic_menu_copy_mtrl_am_alpha = 2131230750; + // aapt resource value: 0x7f020018 + public const int abc_ic_menu_copy_mtrl_am_alpha = 2130837528; - // aapt resource value: 0x7F08001F - public const int abc_ic_menu_cut_mtrl_alpha = 2131230751; + // aapt resource value: 0x7f020019 + public const int abc_ic_menu_cut_mtrl_alpha = 2130837529; - // aapt resource value: 0x7F080020 - public const int abc_ic_menu_overflow_material = 2131230752; + // aapt resource value: 0x7f02001a + public const int abc_ic_menu_overflow_material = 2130837530; - // aapt resource value: 0x7F080021 - public const int abc_ic_menu_paste_mtrl_am_alpha = 2131230753; + // aapt resource value: 0x7f02001b + public const int abc_ic_menu_paste_mtrl_am_alpha = 2130837531; - // aapt resource value: 0x7F080022 - public const int abc_ic_menu_selectall_mtrl_alpha = 2131230754; + // aapt resource value: 0x7f02001c + public const int abc_ic_menu_selectall_mtrl_alpha = 2130837532; - // aapt resource value: 0x7F080023 - public const int abc_ic_menu_share_mtrl_alpha = 2131230755; + // aapt resource value: 0x7f02001d + public const int abc_ic_menu_share_mtrl_alpha = 2130837533; - // aapt resource value: 0x7F080024 - public const int abc_ic_search_api_material = 2131230756; + // aapt resource value: 0x7f02001e + public const int abc_ic_search_api_material = 2130837534; - // aapt resource value: 0x7F080025 - public const int abc_ic_star_black_16dp = 2131230757; + // aapt resource value: 0x7f02001f + public const int abc_ic_star_black_16dp = 2130837535; - // aapt resource value: 0x7F080026 - public const int abc_ic_star_black_36dp = 2131230758; + // aapt resource value: 0x7f020020 + public const int abc_ic_star_black_36dp = 2130837536; - // aapt resource value: 0x7F080027 - public const int abc_ic_star_black_48dp = 2131230759; + // aapt resource value: 0x7f020021 + public const int abc_ic_star_black_48dp = 2130837537; - // aapt resource value: 0x7F080028 - public const int abc_ic_star_half_black_16dp = 2131230760; + // aapt resource value: 0x7f020022 + public const int abc_ic_star_half_black_16dp = 2130837538; - // aapt resource value: 0x7F080029 - public const int abc_ic_star_half_black_36dp = 2131230761; + // aapt resource value: 0x7f020023 + public const int abc_ic_star_half_black_36dp = 2130837539; - // aapt resource value: 0x7F08002A - public const int abc_ic_star_half_black_48dp = 2131230762; + // aapt resource value: 0x7f020024 + public const int abc_ic_star_half_black_48dp = 2130837540; - // aapt resource value: 0x7F08002B - public const int abc_ic_voice_search_api_material = 2131230763; + // aapt resource value: 0x7f020025 + public const int abc_ic_voice_search_api_material = 2130837541; - // aapt resource value: 0x7F08002C - public const int abc_item_background_holo_dark = 2131230764; + // aapt resource value: 0x7f020026 + public const int abc_item_background_holo_dark = 2130837542; - // aapt resource value: 0x7F08002D - public const int abc_item_background_holo_light = 2131230765; + // aapt resource value: 0x7f020027 + public const int abc_item_background_holo_light = 2130837543; - // aapt resource value: 0x7F08002E - public const int abc_list_divider_mtrl_alpha = 2131230766; + // aapt resource value: 0x7f020028 + public const int abc_list_divider_mtrl_alpha = 2130837544; - // aapt resource value: 0x7F08002F - public const int abc_list_focused_holo = 2131230767; + // aapt resource value: 0x7f020029 + public const int abc_list_focused_holo = 2130837545; - // aapt resource value: 0x7F080030 - public const int abc_list_longpressed_holo = 2131230768; + // aapt resource value: 0x7f02002a + public const int abc_list_longpressed_holo = 2130837546; - // aapt resource value: 0x7F080031 - public const int abc_list_pressed_holo_dark = 2131230769; + // aapt resource value: 0x7f02002b + public const int abc_list_pressed_holo_dark = 2130837547; - // aapt resource value: 0x7F080032 - public const int abc_list_pressed_holo_light = 2131230770; + // aapt resource value: 0x7f02002c + public const int abc_list_pressed_holo_light = 2130837548; - // aapt resource value: 0x7F080033 - public const int abc_list_selector_background_transition_holo_dark = 2131230771; + // aapt resource value: 0x7f02002d + public const int abc_list_selector_background_transition_holo_dark = 2130837549; - // aapt resource value: 0x7F080034 - public const int abc_list_selector_background_transition_holo_light = 2131230772; + // aapt resource value: 0x7f02002e + public const int abc_list_selector_background_transition_holo_light = 2130837550; - // aapt resource value: 0x7F080035 - public const int abc_list_selector_disabled_holo_dark = 2131230773; + // aapt resource value: 0x7f02002f + public const int abc_list_selector_disabled_holo_dark = 2130837551; - // aapt resource value: 0x7F080036 - public const int abc_list_selector_disabled_holo_light = 2131230774; + // aapt resource value: 0x7f020030 + public const int abc_list_selector_disabled_holo_light = 2130837552; - // aapt resource value: 0x7F080037 - public const int abc_list_selector_holo_dark = 2131230775; + // aapt resource value: 0x7f020031 + public const int abc_list_selector_holo_dark = 2130837553; - // aapt resource value: 0x7F080038 - public const int abc_list_selector_holo_light = 2131230776; + // aapt resource value: 0x7f020032 + public const int abc_list_selector_holo_light = 2130837554; - // aapt resource value: 0x7F080039 - public const int abc_menu_hardkey_panel_mtrl_mult = 2131230777; + // aapt resource value: 0x7f020033 + public const int abc_menu_hardkey_panel_mtrl_mult = 2130837555; - // aapt resource value: 0x7F08003A - public const int abc_popup_background_mtrl_mult = 2131230778; + // aapt resource value: 0x7f020034 + public const int abc_popup_background_mtrl_mult = 2130837556; - // aapt resource value: 0x7F08003B - public const int abc_ratingbar_indicator_material = 2131230779; + // aapt resource value: 0x7f020035 + public const int abc_ratingbar_indicator_material = 2130837557; - // aapt resource value: 0x7F08003C - public const int abc_ratingbar_material = 2131230780; + // aapt resource value: 0x7f020036 + public const int abc_ratingbar_material = 2130837558; - // aapt resource value: 0x7F08003D - public const int abc_ratingbar_small_material = 2131230781; + // aapt resource value: 0x7f020037 + public const int abc_ratingbar_small_material = 2130837559; - // aapt resource value: 0x7F08003E - public const int abc_scrubber_control_off_mtrl_alpha = 2131230782; + // aapt resource value: 0x7f020038 + public const int abc_scrubber_control_off_mtrl_alpha = 2130837560; - // aapt resource value: 0x7F08003F - public const int abc_scrubber_control_to_pressed_mtrl_000 = 2131230783; + // aapt resource value: 0x7f020039 + public const int abc_scrubber_control_to_pressed_mtrl_000 = 2130837561; - // aapt resource value: 0x7F080040 - public const int abc_scrubber_control_to_pressed_mtrl_005 = 2131230784; + // aapt resource value: 0x7f02003a + public const int abc_scrubber_control_to_pressed_mtrl_005 = 2130837562; - // aapt resource value: 0x7F080041 - public const int abc_scrubber_primary_mtrl_alpha = 2131230785; + // aapt resource value: 0x7f02003b + public const int abc_scrubber_primary_mtrl_alpha = 2130837563; - // aapt resource value: 0x7F080042 - public const int abc_scrubber_track_mtrl_alpha = 2131230786; + // aapt resource value: 0x7f02003c + public const int abc_scrubber_track_mtrl_alpha = 2130837564; - // aapt resource value: 0x7F080043 - public const int abc_seekbar_thumb_material = 2131230787; + // aapt resource value: 0x7f02003d + public const int abc_seekbar_thumb_material = 2130837565; - // aapt resource value: 0x7F080044 - public const int abc_seekbar_tick_mark_material = 2131230788; + // aapt resource value: 0x7f02003e + public const int abc_seekbar_tick_mark_material = 2130837566; - // aapt resource value: 0x7F080045 - public const int abc_seekbar_track_material = 2131230789; + // aapt resource value: 0x7f02003f + public const int abc_seekbar_track_material = 2130837567; - // aapt resource value: 0x7F080046 - public const int abc_spinner_mtrl_am_alpha = 2131230790; + // aapt resource value: 0x7f020040 + public const int abc_spinner_mtrl_am_alpha = 2130837568; - // aapt resource value: 0x7F080047 - public const int abc_spinner_textfield_background_material = 2131230791; + // aapt resource value: 0x7f020041 + public const int abc_spinner_textfield_background_material = 2130837569; - // aapt resource value: 0x7F080048 - public const int abc_switch_thumb_material = 2131230792; + // aapt resource value: 0x7f020042 + public const int abc_switch_thumb_material = 2130837570; - // aapt resource value: 0x7F080049 - public const int abc_switch_track_mtrl_alpha = 2131230793; + // aapt resource value: 0x7f020043 + public const int abc_switch_track_mtrl_alpha = 2130837571; - // aapt resource value: 0x7F08004A - public const int abc_tab_indicator_material = 2131230794; + // aapt resource value: 0x7f020044 + public const int abc_tab_indicator_material = 2130837572; - // aapt resource value: 0x7F08004B - public const int abc_tab_indicator_mtrl_alpha = 2131230795; + // aapt resource value: 0x7f020045 + public const int abc_tab_indicator_mtrl_alpha = 2130837573; - // aapt resource value: 0x7F080053 - public const int abc_textfield_activated_mtrl_alpha = 2131230803; + // aapt resource value: 0x7f020046 + public const int abc_text_cursor_material = 2130837574; + + // aapt resource value: 0x7f020047 + public const int abc_text_select_handle_left_mtrl_dark = 2130837575; + + // aapt resource value: 0x7f020048 + public const int abc_text_select_handle_left_mtrl_light = 2130837576; + + // aapt resource value: 0x7f020049 + public const int abc_text_select_handle_middle_mtrl_dark = 2130837577; + + // aapt resource value: 0x7f02004a + public const int abc_text_select_handle_middle_mtrl_light = 2130837578; + + // aapt resource value: 0x7f02004b + public const int abc_text_select_handle_right_mtrl_dark = 2130837579; + + // aapt resource value: 0x7f02004c + public const int abc_text_select_handle_right_mtrl_light = 2130837580; - // aapt resource value: 0x7F080054 - public const int abc_textfield_default_mtrl_alpha = 2131230804; + // aapt resource value: 0x7f02004d + public const int abc_textfield_activated_mtrl_alpha = 2130837581; - // aapt resource value: 0x7F080055 - public const int abc_textfield_search_activated_mtrl_alpha = 2131230805; + // aapt resource value: 0x7f02004e + public const int abc_textfield_default_mtrl_alpha = 2130837582; - // aapt resource value: 0x7F080056 - public const int abc_textfield_search_default_mtrl_alpha = 2131230806; + // aapt resource value: 0x7f02004f + public const int abc_textfield_search_activated_mtrl_alpha = 2130837583; - // aapt resource value: 0x7F080057 - public const int abc_textfield_search_material = 2131230807; + // aapt resource value: 0x7f020050 + public const int abc_textfield_search_default_mtrl_alpha = 2130837584; - // aapt resource value: 0x7F08004C - public const int abc_text_cursor_material = 2131230796; + // aapt resource value: 0x7f020051 + public const int abc_textfield_search_material = 2130837585; - // aapt resource value: 0x7F08004D - public const int abc_text_select_handle_left_mtrl_dark = 2131230797; + // aapt resource value: 0x7f020052 + public const int abc_vector_test = 2130837586; - // aapt resource value: 0x7F08004E - public const int abc_text_select_handle_left_mtrl_light = 2131230798; + // aapt resource value: 0x7f020053 + public const int avd_hide_password = 2130837587; - // aapt resource value: 0x7F08004F - public const int abc_text_select_handle_middle_mtrl_dark = 2131230799; + // aapt resource value: 0x7f020092 + public const int avd_hide_password_1 = 2130837650; - // aapt resource value: 0x7F080050 - public const int abc_text_select_handle_middle_mtrl_light = 2131230800; + // aapt resource value: 0x7f020093 + public const int avd_hide_password_2 = 2130837651; - // aapt resource value: 0x7F080051 - public const int abc_text_select_handle_right_mtrl_dark = 2131230801; + // aapt resource value: 0x7f020094 + public const int avd_hide_password_3 = 2130837652; - // aapt resource value: 0x7F080052 - public const int abc_text_select_handle_right_mtrl_light = 2131230802; + // aapt resource value: 0x7f020054 + public const int avd_show_password = 2130837588; - // aapt resource value: 0x7F080058 - public const int abc_vector_test = 2131230808; + // aapt resource value: 0x7f020095 + public const int avd_show_password_1 = 2130837653; - // aapt resource value: 0x7F080059 - public const int avd_hide_password = 2131230809; + // aapt resource value: 0x7f020096 + public const int avd_show_password_2 = 2130837654; - // aapt resource value: 0x7F08005A - public const int avd_show_password = 2131230810; + // aapt resource value: 0x7f020097 + public const int avd_show_password_3 = 2130837655; - // aapt resource value: 0x7F08005B - public const int design_bottom_navigation_item_background = 2131230811; + // aapt resource value: 0x7f020055 + public const int design_bottom_navigation_item_background = 2130837589; - // aapt resource value: 0x7F08005C - public const int design_fab_background = 2131230812; + // aapt resource value: 0x7f020056 + public const int design_fab_background = 2130837590; - // aapt resource value: 0x7F08005D - public const int design_ic_visibility = 2131230813; + // aapt resource value: 0x7f020057 + public const int design_ic_visibility = 2130837591; - // aapt resource value: 0x7F08005E - public const int design_ic_visibility_off = 2131230814; + // aapt resource value: 0x7f020058 + public const int design_ic_visibility_off = 2130837592; - // aapt resource value: 0x7F08005F - public const int design_password_eye = 2131230815; + // aapt resource value: 0x7f020059 + public const int design_password_eye = 2130837593; - // aapt resource value: 0x7F080060 - public const int design_snackbar_background = 2131230816; + // aapt resource value: 0x7f02005a + public const int design_snackbar_background = 2130837594; - // aapt resource value: 0x7F080061 - public const int fingerprint_draw_off = 2131230817; + // aapt resource value: 0x7f02005b + public const int fingerprint_draw_off = 2130837595; - // aapt resource value: 0x7F080062 - public const int fingerprint_draw_off_animation = 2131230818; + // aapt resource value: 0x7f02005c + public const int fingerprint_draw_off_animation = 2130837596; - // aapt resource value: 0x7F080063 - public const int fingerprint_draw_on = 2131230819; + // aapt resource value: 0x7f02005d + public const int fingerprint_draw_on = 2130837597; - // aapt resource value: 0x7F080064 - public const int fingerprint_draw_on_animation = 2131230820; + // aapt resource value: 0x7f02005e + public const int fingerprint_draw_on_animation = 2130837598; - // aapt resource value: 0x7F080065 - public const int fingerprint_error = 2131230821; + // aapt resource value: 0x7f02005f + public const int fingerprint_error = 2130837599; - // aapt resource value: 0x7F080066 - public const int fingerprint_error_off = 2131230822; + // aapt resource value: 0x7f020060 + public const int fingerprint_error_off = 2130837600; - // aapt resource value: 0x7F080067 - public const int fingerprint_error_off_animation = 2131230823; + // aapt resource value: 0x7f020061 + public const int fingerprint_error_off_animation = 2130837601; - // aapt resource value: 0x7F080068 - public const int fingerprint_error_on = 2131230824; + // aapt resource value: 0x7f020062 + public const int fingerprint_error_on = 2130837602; - // aapt resource value: 0x7F080069 - public const int fingerprint_error_on_animation = 2131230825; + // aapt resource value: 0x7f020063 + public const int fingerprint_error_on_animation = 2130837603; - // aapt resource value: 0x7F08006A - public const int fingerprint_error_state_to_fp = 2131230826; + // aapt resource value: 0x7f020064 + public const int fingerprint_error_state_to_fp = 2130837604; - // aapt resource value: 0x7F08006B - public const int fingerprint_error_state_to_fp_animation = 2131230827; + // aapt resource value: 0x7f020065 + public const int fingerprint_error_state_to_fp_animation = 2130837605; - // aapt resource value: 0x7F08006C - public const int fingerprint_fingerprint = 2131230828; + // aapt resource value: 0x7f020066 + public const int fingerprint_fingerprint = 2130837606; - // aapt resource value: 0x7F08006D - public const int fingerprint_fp_to_error_state = 2131230829; + // aapt resource value: 0x7f020067 + public const int fingerprint_fp_to_error_state = 2130837607; - // aapt resource value: 0x7F08006E - public const int fingerprint_fp_to_error_state_animation = 2131230830; + // aapt resource value: 0x7f020068 + public const int fingerprint_fp_to_error_state_animation = 2130837608; - // aapt resource value: 0x7F08006F - public const int gd_btn_shape_app_b = 2131230831; + // aapt resource value: 0x7f020069 + public const int gd_btn_shape_app_b = 2130837609; - // aapt resource value: 0x7F080070 - public const int gd_btn_shape_app_g = 2131230832; + // aapt resource value: 0x7f02006a + public const int gd_btn_shape_app_g = 2130837610; - // aapt resource value: 0x7F080071 - public const int gd_btn_shape_app_w = 2131230833; + // aapt resource value: 0x7f02006b + public const int gd_btn_shape_app_w = 2130837611; - // aapt resource value: 0x7F080072 - public const int gd_btn_shape_shadow_w = 2131230834; + // aapt resource value: 0x7f02006c + public const int gd_btn_shape_shadow_w = 2130837612; - // aapt resource value: 0x7F080073 - public const int gd_click_effect_select = 2131230835; + // aapt resource value: 0x7f02006d + public const int gd_click_effect_select = 2130837613; - // aapt resource value: 0x7F080086 - public const int Icon = 2131230854; + // aapt resource value: 0x7f02006e + public const int ic_gdmap_add = 2130837614; - // aapt resource value: 0x7F080074 - public const int ic_gdmap_add = 2131230836; + // aapt resource value: 0x7f02006f + public const int ic_gdmap_back = 2130837615; - // aapt resource value: 0x7F080075 - public const int ic_gdmap_back = 2131230837; + // aapt resource value: 0x7f020070 + public const int ic_gdmap_delete = 2130837616; - // aapt resource value: 0x7F080076 - public const int ic_gdmap_delete = 2131230838; + // aapt resource value: 0x7f020071 + public const int ic_gdmap_home = 2130837617; - // aapt resource value: 0x7F080077 - public const int ic_gdmap_home = 2131230839; + // aapt resource value: 0x7f020072 + public const int ic_gdmap_mylocation = 2130837618; - // aapt resource value: 0x7F080078 - public const int ic_gdmap_mylocation = 2131230840; + // aapt resource value: 0x7f020073 + public const int ic_gdmap_now = 2130837619; - // aapt resource value: 0x7F080079 - public const int ic_gdmap_now = 2131230841; + // aapt resource value: 0x7f020074 + public const int ic_gdmap_search = 2130837620; - // aapt resource value: 0x7F08007A - public const int ic_gdmap_search = 2131230842; + // aapt resource value: 0x7f020075 + public const int ic_gdmap_zoom_out = 2130837621; - // aapt resource value: 0x7F08007B - public const int ic_gdmap_zoom_out = 2131230843; + // aapt resource value: 0x7f020076 + public const int ic_gps_point = 2130837622; - // aapt resource value: 0x7F08007C - public const int ic_gps_point = 2131230844; + // aapt resource value: 0x7f020077 + public const int ic_wd_arc_scale_bg = 2130837623; - // aapt resource value: 0x7F08007D - public const int ic_wd_arc_scale_bg = 2131230845; + // aapt resource value: 0x7f020078 + public const int ic_wd_curtain_bg_top = 2130837624; - // aapt resource value: 0x7F08007E - public const int ic_wd_curtain_bg_top = 2131230846; + // aapt resource value: 0x7f020079 + public const int ic_wd_curtain_h_bg = 2130837625; - // aapt resource value: 0x7F08007F - public const int ic_wd_curtain_h_bg = 2131230847; + // aapt resource value: 0x7f02007a + public const int ic_wd_curtain_h_open = 2130837626; - // aapt resource value: 0x7F080080 - public const int ic_wd_curtain_h_open = 2131230848; + // aapt resource value: 0x7f02007b + public const int ic_wd_curtain_h_progress = 2130837627; - // aapt resource value: 0x7F080081 - public const int ic_wd_curtain_h_progress = 2131230849; + // aapt resource value: 0x7f02007c + public const int ic_wd_curtain_h_top = 2130837628; - // aapt resource value: 0x7F080082 - public const int ic_wd_curtain_h_top = 2131230850; + // aapt resource value: 0x7f02007d + public const int ic_wd_curtain_open = 2130837629; - // aapt resource value: 0x7F080083 - public const int ic_wd_curtain_open = 2131230851; + // aapt resource value: 0x7f02007e + public const int ic_wd_curtain_roll_bg = 2130837630; - // aapt resource value: 0x7F080084 - public const int ic_wd_curtain_roll_bg = 2131230852; + // aapt resource value: 0x7f02007f + public const int ic_wd_curtain_roll_progress = 2130837631; - // aapt resource value: 0x7F080085 - public const int ic_wd_curtain_roll_progress = 2131230853; + // aapt resource value: 0x7f020080 + public const int Icon = 2130837632; - // aapt resource value: 0x7F080087 - public const int Loading = 2131230855; + // aapt resource value: 0x7f020081 + public const int Loading = 2130837633; - // aapt resource value: 0x7F080088 - public const int navigation_empty_icon = 2131230856; + // aapt resource value: 0x7f020082 + public const int navigation_empty_icon = 2130837634; - // aapt resource value: 0x7F080089 - public const int notification_action_background = 2131230857; + // aapt resource value: 0x7f020083 + public const int notification_action_background = 2130837635; - // aapt resource value: 0x7F08008A - public const int notification_bg = 2131230858; + // aapt resource value: 0x7f020084 + public const int notification_bg = 2130837636; - // aapt resource value: 0x7F08008B - public const int notification_bg_low = 2131230859; + // aapt resource value: 0x7f020085 + public const int notification_bg_low = 2130837637; - // aapt resource value: 0x7F08008C - public const int notification_bg_low_normal = 2131230860; + // aapt resource value: 0x7f020086 + public const int notification_bg_low_normal = 2130837638; - // aapt resource value: 0x7F08008D - public const int notification_bg_low_pressed = 2131230861; + // aapt resource value: 0x7f020087 + public const int notification_bg_low_pressed = 2130837639; - // aapt resource value: 0x7F08008E - public const int notification_bg_normal = 2131230862; + // aapt resource value: 0x7f020088 + public const int notification_bg_normal = 2130837640; - // aapt resource value: 0x7F08008F - public const int notification_bg_normal_pressed = 2131230863; + // aapt resource value: 0x7f020089 + public const int notification_bg_normal_pressed = 2130837641; - // aapt resource value: 0x7F080090 - public const int notification_icon_background = 2131230864; + // aapt resource value: 0x7f02008a + public const int notification_icon_background = 2130837642; - // aapt resource value: 0x7F080091 - public const int notification_template_icon_bg = 2131230865; + // aapt resource value: 0x7f020090 + public const int notification_template_icon_bg = 2130837648; - // aapt resource value: 0x7F080092 - public const int notification_template_icon_low_bg = 2131230866; + // aapt resource value: 0x7f020091 + public const int notification_template_icon_low_bg = 2130837649; - // aapt resource value: 0x7F080093 - public const int notification_tile_bg = 2131230867; + // aapt resource value: 0x7f02008b + public const int notification_tile_bg = 2130837643; - // aapt resource value: 0x7F080094 - public const int notify_panel_notification_icon_bg = 2131230868; + // aapt resource value: 0x7f02008c + public const int notify_panel_notification_icon_bg = 2130837644; - // aapt resource value: 0x7F080095 - public const int selector_pickerview_btn = 2131230869; + // aapt resource value: 0x7f02008d + public const int selector_pickerview_btn = 2130837645; - // aapt resource value: 0x7F080096 - public const int tooltip_frame_dark = 2131230870; + // aapt resource value: 0x7f02008e + public const int tooltip_frame_dark = 2130837646; - // aapt resource value: 0x7F080097 - public const int tooltip_frame_light = 2131230871; + // aapt resource value: 0x7f02008f + public const int tooltip_frame_light = 2130837647; static Drawable() { @@ -2979,665 +2997,665 @@ public partial class Id { - // aapt resource value: 0x7F09000E - public const int action0 = 2131296270; + // aapt resource value: 0x7f090027 + public const int ALT = 2131296295; - // aapt resource value: 0x7F090020 - public const int actions = 2131296288; + // aapt resource value: 0x7f090028 + public const int CTRL = 2131296296; - // aapt resource value: 0x7F09000F - public const int action_bar = 2131296271; + // aapt resource value: 0x7f090054 + public const int FILL = 2131296340; - // aapt resource value: 0x7F090010 - public const int action_bar_activity_content = 2131296272; + // aapt resource value: 0x7f090055 + public const int FILL_STROKE = 2131296341; - // aapt resource value: 0x7F090011 - public const int action_bar_container = 2131296273; + // aapt resource value: 0x7f090029 + public const int FUNCTION = 2131296297; - // aapt resource value: 0x7F090012 - public const int action_bar_root = 2131296274; + // aapt resource value: 0x7f09004f + public const int FixedBehind = 2131296335; - // aapt resource value: 0x7F090013 - public const int action_bar_spinner = 2131296275; + // aapt resource value: 0x7f090050 + public const int FixedFront = 2131296336; - // aapt resource value: 0x7F090014 - public const int action_bar_subtitle = 2131296276; + // aapt resource value: 0x7f09002a + public const int META = 2131296298; - // aapt resource value: 0x7F090015 - public const int action_bar_title = 2131296277; + // aapt resource value: 0x7f090051 + public const int MatchLayout = 2131296337; - // aapt resource value: 0x7F090016 - public const int action_container = 2131296278; + // aapt resource value: 0x7f09002b + public const int SHIFT = 2131296299; - // aapt resource value: 0x7F090017 - public const int action_context_bar = 2131296279; + // aapt resource value: 0x7f090056 + public const int STROKE = 2131296342; - // aapt resource value: 0x7F090018 - public const int action_divider = 2131296280; + // aapt resource value: 0x7f09002c + public const int SYM = 2131296300; - // aapt resource value: 0x7F090019 - public const int action_image = 2131296281; + // aapt resource value: 0x7f090052 + public const int Scale = 2131296338; - // aapt resource value: 0x7F09001A - public const int action_menu_divider = 2131296282; + // aapt resource value: 0x7f090053 + public const int Translate = 2131296339; - // aapt resource value: 0x7F09001B - public const int action_menu_presenter = 2131296283; + // aapt resource value: 0x7f0900c0 + public const int action0 = 2131296448; - // aapt resource value: 0x7F09001C - public const int action_mode_bar = 2131296284; + // aapt resource value: 0x7f090079 + public const int action_bar = 2131296377; - // aapt resource value: 0x7F09001D - public const int action_mode_bar_stub = 2131296285; + // aapt resource value: 0x7f090001 + public const int action_bar_activity_content = 2131296257; - // aapt resource value: 0x7F09001E - public const int action_mode_close_button = 2131296286; + // aapt resource value: 0x7f090078 + public const int action_bar_container = 2131296376; - // aapt resource value: 0x7F09001F - public const int action_text = 2131296287; + // aapt resource value: 0x7f090074 + public const int action_bar_root = 2131296372; - // aapt resource value: 0x7F090021 - public const int activity_chooser_view_content = 2131296289; + // aapt resource value: 0x7f090002 + public const int action_bar_spinner = 2131296258; - // aapt resource value: 0x7F090022 - public const int add = 2131296290; + // aapt resource value: 0x7f090058 + public const int action_bar_subtitle = 2131296344; - // aapt resource value: 0x7F090023 - public const int alertTitle = 2131296291; + // aapt resource value: 0x7f090057 + public const int action_bar_title = 2131296343; - // aapt resource value: 0x7F090024 - public const int all = 2131296292; + // aapt resource value: 0x7f0900bd + public const int action_container = 2131296445; - // aapt resource value: 0x7F090000 - public const int ALT = 2131296256; + // aapt resource value: 0x7f09007a + public const int action_context_bar = 2131296378; - // aapt resource value: 0x7F090025 - public const int always = 2131296293; + // aapt resource value: 0x7f0900c4 + public const int action_divider = 2131296452; - // aapt resource value: 0x7F090026 - public const int async = 2131296294; + // aapt resource value: 0x7f0900be + public const int action_image = 2131296446; - // aapt resource value: 0x7F090027 - public const int auto = 2131296295; + // aapt resource value: 0x7f090003 + public const int action_menu_divider = 2131296259; - // aapt resource value: 0x7F090028 - public const int beginning = 2131296296; + // aapt resource value: 0x7f090004 + public const int action_menu_presenter = 2131296260; - // aapt resource value: 0x7F090029 - public const int blocking = 2131296297; + // aapt resource value: 0x7f090076 + public const int action_mode_bar = 2131296374; - // aapt resource value: 0x7F09002A - public const int bottom = 2131296298; + // aapt resource value: 0x7f090075 + public const int action_mode_bar_stub = 2131296373; - // aapt resource value: 0x7F09002B - public const int btnCancel = 2131296299; + // aapt resource value: 0x7f090059 + public const int action_mode_close_button = 2131296345; - // aapt resource value: 0x7F09002C - public const int btnSubmit = 2131296300; + // aapt resource value: 0x7f0900bf + public const int action_text = 2131296447; - // aapt resource value: 0x7F09002D - public const int buttonPanel = 2131296301; + // aapt resource value: 0x7f0900cd + public const int actions = 2131296461; - // aapt resource value: 0x7F09002E - public const int cancel_action = 2131296302; + // aapt resource value: 0x7f09005a + public const int activity_chooser_view_content = 2131296346; - // aapt resource value: 0x7F09002F - public const int center = 2131296303; + // aapt resource value: 0x7f090021 + public const int add = 2131296289; - // aapt resource value: 0x7F090030 - public const int center_horizontal = 2131296304; + // aapt resource value: 0x7f09006d + public const int alertTitle = 2131296365; - // aapt resource value: 0x7F090031 - public const int center_vertical = 2131296305; + // aapt resource value: 0x7f090047 + public const int all = 2131296327; - // aapt resource value: 0x7F090032 - public const int checkbox = 2131296306; + // aapt resource value: 0x7f09002d + public const int always = 2131296301; - // aapt resource value: 0x7F090033 - public const int chronometer = 2131296307; + // aapt resource value: 0x7f09004b + public const int async = 2131296331; - // aapt resource value: 0x7F090034 - public const int clip_horizontal = 2131296308; + // aapt resource value: 0x7f090039 + public const int auto = 2131296313; - // aapt resource value: 0x7F090035 - public const int clip_vertical = 2131296309; + // aapt resource value: 0x7f090024 + public const int beginning = 2131296292; - // aapt resource value: 0x7F090036 - public const int collapseActionView = 2131296310; + // aapt resource value: 0x7f09004c + public const int blocking = 2131296332; - // aapt resource value: 0x7F090037 - public const int container = 2131296311; + // aapt resource value: 0x7f090032 + public const int bottom = 2131296306; - // aapt resource value: 0x7F090038 - public const int contentFrame = 2131296312; + // aapt resource value: 0x7f0900a8 + public const int btnCancel = 2131296424; - // aapt resource value: 0x7F090039 - public const int contentPanel = 2131296313; + // aapt resource value: 0x7f0900aa + public const int btnSubmit = 2131296426; - // aapt resource value: 0x7F09003A - public const int content_container = 2131296314; + // aapt resource value: 0x7f090060 + public const int buttonPanel = 2131296352; - // aapt resource value: 0x7F09003B - public const int coordinator = 2131296315; + // aapt resource value: 0x7f0900c1 + public const int cancel_action = 2131296449; - // aapt resource value: 0x7F090001 - public const int CTRL = 2131296257; + // aapt resource value: 0x7f09003a + public const int center = 2131296314; - // aapt resource value: 0x7F09003C - public const int custom = 2131296316; + // aapt resource value: 0x7f09003b + public const int center_horizontal = 2131296315; - // aapt resource value: 0x7F09003D - public const int customPanel = 2131296317; + // aapt resource value: 0x7f09003c + public const int center_vertical = 2131296316; - // aapt resource value: 0x7F09003E - public const int day = 2131296318; + // aapt resource value: 0x7f090070 + public const int checkbox = 2131296368; - // aapt resource value: 0x7F09003F - public const int decor_content_parent = 2131296319; + // aapt resource value: 0x7f0900c9 + public const int chronometer = 2131296457; - // aapt resource value: 0x7F090040 - public const int default_activity_button = 2131296320; + // aapt resource value: 0x7f090043 + public const int clip_horizontal = 2131296323; - // aapt resource value: 0x7F090041 - public const int description = 2131296321; + // aapt resource value: 0x7f090044 + public const int clip_vertical = 2131296324; - // aapt resource value: 0x7F090042 - public const int design_bottom_sheet = 2131296322; + // aapt resource value: 0x7f09002e + public const int collapseActionView = 2131296302; - // aapt resource value: 0x7F090043 - public const int design_menu_item_action_area = 2131296323; + // aapt resource value: 0x7f09008e + public const int container = 2131296398; - // aapt resource value: 0x7F090044 - public const int design_menu_item_action_area_stub = 2131296324; + // aapt resource value: 0x7f0900d9 + public const int contentFrame = 2131296473; - // aapt resource value: 0x7F090045 - public const int design_menu_item_text = 2131296325; + // aapt resource value: 0x7f090063 + public const int contentPanel = 2131296355; - // aapt resource value: 0x7F090046 - public const int design_navigation_view = 2131296326; + // aapt resource value: 0x7f0900ac + public const int content_container = 2131296428; - // aapt resource value: 0x7F090047 - public const int disableHome = 2131296327; + // aapt resource value: 0x7f09008f + public const int coordinator = 2131296399; - // aapt resource value: 0x7F090048 - public const int edit_query = 2131296328; + // aapt resource value: 0x7f09006a + public const int custom = 2131296362; - // aapt resource value: 0x7F090049 - public const int end = 2131296329; + // aapt resource value: 0x7f090069 + public const int customPanel = 2131296361; - // aapt resource value: 0x7F09004A - public const int end_padder = 2131296330; + // aapt resource value: 0x7f0900b8 + public const int day = 2131296440; - // aapt resource value: 0x7F09004B - public const int enterAlways = 2131296331; + // aapt resource value: 0x7f090077 + public const int decor_content_parent = 2131296375; - // aapt resource value: 0x7F09004C - public const int enterAlwaysCollapsed = 2131296332; + // aapt resource value: 0x7f09005d + public const int default_activity_button = 2131296349; - // aapt resource value: 0x7F09004D - public const int exitUntilCollapsed = 2131296333; + // aapt resource value: 0x7f090089 + public const int description = 2131296393; - // aapt resource value: 0x7F09004F - public const int expanded_menu = 2131296335; + // aapt resource value: 0x7f090091 + public const int design_bottom_sheet = 2131296401; - // aapt resource value: 0x7F09004E - public const int expand_activities_button = 2131296334; + // aapt resource value: 0x7f090098 + public const int design_menu_item_action_area = 2131296408; - // aapt resource value: 0x7F090050 - public const int fill = 2131296336; + // aapt resource value: 0x7f090097 + public const int design_menu_item_action_area_stub = 2131296407; - // aapt resource value: 0x7F090002 - public const int FILL = 2131296258; + // aapt resource value: 0x7f090096 + public const int design_menu_item_text = 2131296406; - // aapt resource value: 0x7F090051 - public const int fill_horizontal = 2131296337; + // aapt resource value: 0x7f090095 + public const int design_navigation_view = 2131296405; - // aapt resource value: 0x7F090003 - public const int FILL_STROKE = 2131296259; + // aapt resource value: 0x7f090015 + public const int disableHome = 2131296277; - // aapt resource value: 0x7F090052 - public const int fill_vertical = 2131296338; + // aapt resource value: 0x7f09007b + public const int edit_query = 2131296379; - // aapt resource value: 0x7F090053 - public const int fingerprint_icon = 2131296339; + // aapt resource value: 0x7f090025 + public const int end = 2131296293; - // aapt resource value: 0x7F090054 - public const int @fixed = 2131296340; + // aapt resource value: 0x7f0900cf + public const int end_padder = 2131296463; - // aapt resource value: 0x7F090005 - public const int FixedBehind = 2131296261; + // aapt resource value: 0x7f090034 + public const int enterAlways = 2131296308; - // aapt resource value: 0x7F090006 - public const int FixedFront = 2131296262; + // aapt resource value: 0x7f090035 + public const int enterAlwaysCollapsed = 2131296309; - // aapt resource value: 0x7F090055 - public const int forever = 2131296341; + // aapt resource value: 0x7f090036 + public const int exitUntilCollapsed = 2131296310; - // aapt resource value: 0x7F090004 - public const int FUNCTION = 2131296260; + // aapt resource value: 0x7f09005b + public const int expand_activities_button = 2131296347; - // aapt resource value: 0x7F090056 - public const int gd_btn_back = 2131296342; + // aapt resource value: 0x7f09006f + public const int expanded_menu = 2131296367; - // aapt resource value: 0x7F090057 - public const int gd_btn_myLocation = 2131296343; + // aapt resource value: 0x7f090045 + public const int fill = 2131296325; - // aapt resource value: 0x7F090058 - public const int gd_btn_save = 2131296344; + // aapt resource value: 0x7f090046 + public const int fill_horizontal = 2131296326; - // aapt resource value: 0x7F090059 - public const int gd_img_search_delete = 2131296345; + // aapt resource value: 0x7f09003d + public const int fill_vertical = 2131296317; - // aapt resource value: 0x7F09005A - public const int gd_ll_myhome = 2131296346; + // aapt resource value: 0x7f09008a + public const int fingerprint_icon = 2131296394; - // aapt resource value: 0x7F09005B - public const int gd_ll_search = 2131296347; + // aapt resource value: 0x7f090049 + public const int @fixed = 2131296329; - // aapt resource value: 0x7F09005C - public const int gd_mapView = 2131296348; + // aapt resource value: 0x7f09004d + public const int forever = 2131296333; - // aapt resource value: 0x7F09005D - public const int gd_rl_topview = 2131296349; + // aapt resource value: 0x7f09009d + public const int gd_btn_back = 2131296413; - // aapt resource value: 0x7F09005E - public const int gd_tv_activity_title = 2131296350; + // aapt resource value: 0x7f0900a6 + public const int gd_btn_myLocation = 2131296422; - // aapt resource value: 0x7F09005F - public const int gd_tv_radius = 2131296351; + // aapt resource value: 0x7f0900a5 + public const int gd_btn_save = 2131296421; - // aapt resource value: 0x7F090060 - public const int gd_tv_search_title = 2131296352; + // aapt resource value: 0x7f0900a2 + public const int gd_img_search_delete = 2131296418; - // aapt resource value: 0x7F090061 - public const int hdl_gallery_rootView = 2131296353; + // aapt resource value: 0x7f0900a4 + public const int gd_ll_myhome = 2131296420; - // aapt resource value: 0x7F090062 - public const int hdl_gallery_viewPager = 2131296354; + // aapt resource value: 0x7f0900a0 + public const int gd_ll_search = 2131296416; - // aapt resource value: 0x7F090063 - public const int hdl_options1 = 2131296355; + // aapt resource value: 0x7f09009f + public const int gd_mapView = 2131296415; - // aapt resource value: 0x7F090064 - public const int hdl_options2 = 2131296356; + // aapt resource value: 0x7f09009c + public const int gd_rl_topview = 2131296412; - // aapt resource value: 0x7F090065 - public const int hdl_options3 = 2131296357; + // aapt resource value: 0x7f09009e + public const int gd_tv_activity_title = 2131296414; - // aapt resource value: 0x7F090066 - public const int hdl_pickerview_ll = 2131296358; + // aapt resource value: 0x7f0900a3 + public const int gd_tv_radius = 2131296419; - // aapt resource value: 0x7F090067 - public const int home = 2131296359; + // aapt resource value: 0x7f0900a1 + public const int gd_tv_search_title = 2131296417; - // aapt resource value: 0x7F090068 - public const int homeAsUp = 2131296360; + // aapt resource value: 0x7f09009a + public const int hdl_gallery_rootView = 2131296410; - // aapt resource value: 0x7F090069 - public const int hour = 2131296361; + // aapt resource value: 0x7f09009b + public const int hdl_gallery_viewPager = 2131296411; - // aapt resource value: 0x7F09006A - public const int icon = 2131296362; + // aapt resource value: 0x7f0900ae + public const int hdl_options1 = 2131296430; + + // aapt resource value: 0x7f0900af + public const int hdl_options2 = 2131296431; - // aapt resource value: 0x7F09006B - public const int icon_group = 2131296363; + // aapt resource value: 0x7f0900b0 + public const int hdl_options3 = 2131296432; - // aapt resource value: 0x7F09006C - public const int ifRoom = 2131296364; + // aapt resource value: 0x7f0900ad + public const int hdl_pickerview_ll = 2131296429; - // aapt resource value: 0x7F09006D - public const int image = 2131296365; + // aapt resource value: 0x7f090005 + public const int home = 2131296261; - // aapt resource value: 0x7F09006E - public const int info = 2131296366; + // aapt resource value: 0x7f090016 + public const int homeAsUp = 2131296278; - // aapt resource value: 0x7F09006F - public const int italic = 2131296367; + // aapt resource value: 0x7f0900b9 + public const int hour = 2131296441; - // aapt resource value: 0x7F090070 - public const int item_touch_helper_previous_elevation = 2131296368; + // aapt resource value: 0x7f09005f + public const int icon = 2131296351; - // aapt resource value: 0x7F090071 - public const int largeLabel = 2131296369; + // aapt resource value: 0x7f0900ce + public const int icon_group = 2131296462; - // aapt resource value: 0x7F090072 - public const int left = 2131296370; + // aapt resource value: 0x7f09002f + public const int ifRoom = 2131296303; - // aapt resource value: 0x7F090073 - public const int line1 = 2131296371; + // aapt resource value: 0x7f09005c + public const int image = 2131296348; - // aapt resource value: 0x7F090074 - public const int line3 = 2131296372; + // aapt resource value: 0x7f0900ca + public const int info = 2131296458; - // aapt resource value: 0x7F090075 - public const int listMode = 2131296373; + // aapt resource value: 0x7f09004e + public const int italic = 2131296334; - // aapt resource value: 0x7F090076 - public const int list_item = 2131296374; + // aapt resource value: 0x7f090000 + public const int item_touch_helper_previous_elevation = 2131296256; - // aapt resource value: 0x7F090077 - public const int masked = 2131296375; + // aapt resource value: 0x7f09008d + public const int largeLabel = 2131296397; - // aapt resource value: 0x7F090008 - public const int MatchLayout = 2131296264; + // aapt resource value: 0x7f09003e + public const int left = 2131296318; - // aapt resource value: 0x7F090078 - public const int media_actions = 2131296376; + // aapt resource value: 0x7f09000d + public const int line1 = 2131296269; - // aapt resource value: 0x7F090079 - public const int message = 2131296377; + // aapt resource value: 0x7f09000e + public const int line3 = 2131296270; - // aapt resource value: 0x7F090007 - public const int META = 2131296263; + // aapt resource value: 0x7f090012 + public const int listMode = 2131296274; - // aapt resource value: 0x7F09007A - public const int middle = 2131296378; + // aapt resource value: 0x7f09005e + public const int list_item = 2131296350; - // aapt resource value: 0x7F09007B - public const int min = 2131296379; + // aapt resource value: 0x7f0900db + public const int masked = 2131296475; - // aapt resource value: 0x7F09007C - public const int mini = 2131296380; + // aapt resource value: 0x7f0900c3 + public const int media_actions = 2131296451; - // aapt resource value: 0x7F09007D - public const int month = 2131296381; + // aapt resource value: 0x7f0900d5 + public const int message = 2131296469; - // aapt resource value: 0x7F09007E - public const int multiply = 2131296382; + // aapt resource value: 0x7f090026 + public const int middle = 2131296294; - // aapt resource value: 0x7F09007F - public const int myButton = 2131296383; + // aapt resource value: 0x7f0900ba + public const int min = 2131296442; - // aapt resource value: 0x7F090080 - public const int navigation_header_container = 2131296384; + // aapt resource value: 0x7f090048 + public const int mini = 2131296328; - // aapt resource value: 0x7F090081 - public const int never = 2131296385; + // aapt resource value: 0x7f0900b7 + public const int month = 2131296439; - // aapt resource value: 0x7F090082 - public const int none = 2131296386; + // aapt resource value: 0x7f09001c + public const int multiply = 2131296284; - // aapt resource value: 0x7F090083 - public const int normal = 2131296387; + // aapt resource value: 0x7f0900bc + public const int myButton = 2131296444; - // aapt resource value: 0x7F090084 - public const int notification_background = 2131296388; + // aapt resource value: 0x7f090094 + public const int navigation_header_container = 2131296404; - // aapt resource value: 0x7F090085 - public const int notification_main_column = 2131296389; + // aapt resource value: 0x7f090030 + public const int never = 2131296304; - // aapt resource value: 0x7F090086 - public const int notification_main_column_container = 2131296390; + // aapt resource value: 0x7f090017 + public const int none = 2131296279; - // aapt resource value: 0x7F090087 - public const int options1 = 2131296391; + // aapt resource value: 0x7f090013 + public const int normal = 2131296275; - // aapt resource value: 0x7F090088 - public const int options2 = 2131296392; + // aapt resource value: 0x7f0900cc + public const int notification_background = 2131296460; - // aapt resource value: 0x7F090089 - public const int options3 = 2131296393; + // aapt resource value: 0x7f0900c6 + public const int notification_main_column = 2131296454; - // aapt resource value: 0x7F09008A - public const int optionspicker = 2131296394; + // aapt resource value: 0x7f0900c5 + public const int notification_main_column_container = 2131296453; - // aapt resource value: 0x7F09008B - public const int outmost_container = 2131296395; + // aapt resource value: 0x7f0900b2 + public const int options1 = 2131296434; - // aapt resource value: 0x7F09008C - public const int parallax = 2131296396; + // aapt resource value: 0x7f0900b3 + public const int options2 = 2131296435; - // aapt resource value: 0x7F09008D - public const int parentPanel = 2131296397; + // aapt resource value: 0x7f0900b4 + public const int options3 = 2131296436; - // aapt resource value: 0x7F09008E - public const int pin = 2131296398; + // aapt resource value: 0x7f0900b1 + public const int optionspicker = 2131296433; - // aapt resource value: 0x7F09008F - public const int progress_circular = 2131296399; + // aapt resource value: 0x7f0900ab + public const int outmost_container = 2131296427; - // aapt resource value: 0x7F090090 - public const int progress_horizontal = 2131296400; + // aapt resource value: 0x7f090041 + public const int parallax = 2131296321; - // aapt resource value: 0x7F090091 - public const int radio = 2131296401; + // aapt resource value: 0x7f090062 + public const int parentPanel = 2131296354; - // aapt resource value: 0x7F090092 - public const int right = 2131296402; + // aapt resource value: 0x7f090042 + public const int pin = 2131296322; - // aapt resource value: 0x7F090093 - public const int right_icon = 2131296403; + // aapt resource value: 0x7f090006 + public const int progress_circular = 2131296262; - // aapt resource value: 0x7F090094 - public const int right_side = 2131296404; + // aapt resource value: 0x7f090007 + public const int progress_horizontal = 2131296263; - // aapt resource value: 0x7F090095 - public const int rv_topbar = 2131296405; + // aapt resource value: 0x7f090072 + public const int radio = 2131296370; - // aapt resource value: 0x7F09000C - public const int Scale = 2131296268; + // aapt resource value: 0x7f09003f + public const int right = 2131296319; - // aapt resource value: 0x7F090096 - public const int screen = 2131296406; + // aapt resource value: 0x7f0900cb + public const int right_icon = 2131296459; - // aapt resource value: 0x7F090097 - public const int scroll = 2131296407; + // aapt resource value: 0x7f0900c7 + public const int right_side = 2131296455; - // aapt resource value: 0x7F09009B - public const int scrollable = 2131296411; + // aapt resource value: 0x7f0900a7 + public const int rv_topbar = 2131296423; - // aapt resource value: 0x7F090098 - public const int scrollIndicatorDown = 2131296408; + // aapt resource value: 0x7f09001d + public const int screen = 2131296285; - // aapt resource value: 0x7F090099 - public const int scrollIndicatorUp = 2131296409; + // aapt resource value: 0x7f090037 + public const int scroll = 2131296311; - // aapt resource value: 0x7F09009A - public const int scrollView = 2131296410; + // aapt resource value: 0x7f090068 + public const int scrollIndicatorDown = 2131296360; - // aapt resource value: 0x7F09009C - public const int search_badge = 2131296412; + // aapt resource value: 0x7f090064 + public const int scrollIndicatorUp = 2131296356; - // aapt resource value: 0x7F09009D - public const int search_bar = 2131296413; + // aapt resource value: 0x7f090065 + public const int scrollView = 2131296357; - // aapt resource value: 0x7F09009E - public const int search_button = 2131296414; + // aapt resource value: 0x7f09004a + public const int scrollable = 2131296330; - // aapt resource value: 0x7F09009F - public const int search_close_btn = 2131296415; + // aapt resource value: 0x7f09007d + public const int search_badge = 2131296381; - // aapt resource value: 0x7F0900A0 - public const int search_edit_frame = 2131296416; + // aapt resource value: 0x7f09007c + public const int search_bar = 2131296380; - // aapt resource value: 0x7F0900A1 - public const int search_go_btn = 2131296417; + // aapt resource value: 0x7f09007e + public const int search_button = 2131296382; - // aapt resource value: 0x7F0900A2 - public const int search_mag_icon = 2131296418; + // aapt resource value: 0x7f090083 + public const int search_close_btn = 2131296387; - // aapt resource value: 0x7F0900A3 - public const int search_plate = 2131296419; + // aapt resource value: 0x7f09007f + public const int search_edit_frame = 2131296383; - // aapt resource value: 0x7F0900A4 - public const int search_src_text = 2131296420; + // aapt resource value: 0x7f090085 + public const int search_go_btn = 2131296389; - // aapt resource value: 0x7F0900A5 - public const int search_voice_btn = 2131296421; + // aapt resource value: 0x7f090080 + public const int search_mag_icon = 2131296384; - // aapt resource value: 0x7F0900A6 - public const int second = 2131296422; + // aapt resource value: 0x7f090081 + public const int search_plate = 2131296385; - // aapt resource value: 0x7F0900A7 - public const int select_dialog_listview = 2131296423; + // aapt resource value: 0x7f090082 + public const int search_src_text = 2131296386; - // aapt resource value: 0x7F090009 - public const int SHIFT = 2131296265; + // aapt resource value: 0x7f090086 + public const int search_voice_btn = 2131296390; - // aapt resource value: 0x7F0900A8 - public const int shortcut = 2131296424; + // aapt resource value: 0x7f0900bb + public const int second = 2131296443; - // aapt resource value: 0x7F0900A9 - public const int showCustom = 2131296425; + // aapt resource value: 0x7f090087 + public const int select_dialog_listview = 2131296391; - // aapt resource value: 0x7F0900AA - public const int showHome = 2131296426; + // aapt resource value: 0x7f090071 + public const int shortcut = 2131296369; - // aapt resource value: 0x7F0900AB - public const int showTitle = 2131296427; + // aapt resource value: 0x7f090018 + public const int showCustom = 2131296280; - // aapt resource value: 0x7F0900AC - public const int smallLabel = 2131296428; + // aapt resource value: 0x7f090019 + public const int showHome = 2131296281; - // aapt resource value: 0x7F0900AD - public const int snackbar_action = 2131296429; + // aapt resource value: 0x7f09001a + public const int showTitle = 2131296282; - // aapt resource value: 0x7F0900AE - public const int snackbar_text = 2131296430; + // aapt resource value: 0x7f09008c + public const int smallLabel = 2131296396; - // aapt resource value: 0x7F0900AF - public const int snap = 2131296431; + // aapt resource value: 0x7f090093 + public const int snackbar_action = 2131296403; - // aapt resource value: 0x7F0900B0 - public const int spacer = 2131296432; + // aapt resource value: 0x7f090092 + public const int snackbar_text = 2131296402; - // aapt resource value: 0x7F0900B1 - public const int split_action_bar = 2131296433; + // aapt resource value: 0x7f090038 + public const int snap = 2131296312; - // aapt resource value: 0x7F0900B2 - public const int src_atop = 2131296434; + // aapt resource value: 0x7f090061 + public const int spacer = 2131296353; - // aapt resource value: 0x7F0900B3 - public const int src_in = 2131296435; + // aapt resource value: 0x7f090008 + public const int split_action_bar = 2131296264; - // aapt resource value: 0x7F0900B4 - public const int src_over = 2131296436; + // aapt resource value: 0x7f09001e + public const int src_atop = 2131296286; - // aapt resource value: 0x7F0900B5 - public const int srl_classics_arrow = 2131296437; + // aapt resource value: 0x7f09001f + public const int src_in = 2131296287; - // aapt resource value: 0x7F0900B6 - public const int srl_classics_center = 2131296438; + // aapt resource value: 0x7f090020 + public const int src_over = 2131296288; - // aapt resource value: 0x7F0900B7 - public const int srl_classics_progress = 2131296439; + // aapt resource value: 0x7f0900d0 + public const int srl_classics_arrow = 2131296464; - // aapt resource value: 0x7F0900B8 - public const int srl_classics_title = 2131296440; + // aapt resource value: 0x7f0900d3 + public const int srl_classics_center = 2131296467; - // aapt resource value: 0x7F0900B9 - public const int srl_classics_update = 2131296441; + // aapt resource value: 0x7f0900d2 + public const int srl_classics_progress = 2131296466; - // aapt resource value: 0x7F0900BA - public const int start = 2131296442; + // aapt resource value: 0x7f0900d1 + public const int srl_classics_title = 2131296465; - // aapt resource value: 0x7F0900BB - public const int status = 2131296443; + // aapt resource value: 0x7f0900d4 + public const int srl_classics_update = 2131296468; - // aapt resource value: 0x7F0900BC - public const int status_bar_latest_event_content = 2131296444; + // aapt resource value: 0x7f090040 + public const int start = 2131296320; - // aapt resource value: 0x7F09000A - public const int STROKE = 2131296266; + // aapt resource value: 0x7f09008b + public const int status = 2131296395; - // aapt resource value: 0x7F0900BD - public const int submenuarrow = 2131296445; + // aapt resource value: 0x7f0900c2 + public const int status_bar_latest_event_content = 2131296450; - // aapt resource value: 0x7F0900BE - public const int submit_area = 2131296446; + // aapt resource value: 0x7f090073 + public const int submenuarrow = 2131296371; - // aapt resource value: 0x7F0900BF - public const int subtitle = 2131296447; + // aapt resource value: 0x7f090084 + public const int submit_area = 2131296388; - // aapt resource value: 0x7F09000B - public const int SYM = 2131296267; + // aapt resource value: 0x7f090088 + public const int subtitle = 2131296392; - // aapt resource value: 0x7F0900C0 - public const int tabMode = 2131296448; + // aapt resource value: 0x7f090014 + public const int tabMode = 2131296276; - // aapt resource value: 0x7F0900C1 - public const int text = 2131296449; + // aapt resource value: 0x7f09000f + public const int text = 2131296271; - // aapt resource value: 0x7F0900C2 - public const int text2 = 2131296450; + // aapt resource value: 0x7f090010 + public const int text2 = 2131296272; - // aapt resource value: 0x7F0900C6 - public const int textinput_counter = 2131296454; + // aapt resource value: 0x7f090067 + public const int textSpacerNoButtons = 2131296359; - // aapt resource value: 0x7F0900C7 - public const int textinput_error = 2131296455; + // aapt resource value: 0x7f090066 + public const int textSpacerNoTitle = 2131296358; - // aapt resource value: 0x7F0900C3 - public const int textSpacerNoButtons = 2131296451; + // aapt resource value: 0x7f090099 + public const int text_input_password_toggle = 2131296409; - // aapt resource value: 0x7F0900C4 - public const int textSpacerNoTitle = 2131296452; + // aapt resource value: 0x7f09000a + public const int textinput_counter = 2131296266; - // aapt resource value: 0x7F0900C5 - public const int text_input_password_toggle = 2131296453; + // aapt resource value: 0x7f09000b + public const int textinput_error = 2131296267; - // aapt resource value: 0x7F0900C8 + // aapt resource value: 0x7f0900c8 public const int time = 2131296456; - // aapt resource value: 0x7F0900C9 - public const int timepicker = 2131296457; + // aapt resource value: 0x7f0900b5 + public const int timepicker = 2131296437; - // aapt resource value: 0x7F0900CA - public const int title = 2131296458; + // aapt resource value: 0x7f090011 + public const int title = 2131296273; - // aapt resource value: 0x7F0900CB - public const int titleDividerNoCustom = 2131296459; + // aapt resource value: 0x7f09006e + public const int titleDividerNoCustom = 2131296366; - // aapt resource value: 0x7F0900CC - public const int title_template = 2131296460; + // aapt resource value: 0x7f09006c + public const int title_template = 2131296364; - // aapt resource value: 0x7F0900CD - public const int top = 2131296461; + // aapt resource value: 0x7f090033 + public const int top = 2131296307; - // aapt resource value: 0x7F0900CE - public const int topPanel = 2131296462; + // aapt resource value: 0x7f09006b + public const int topPanel = 2131296363; - // aapt resource value: 0x7F0900CF - public const int touch_outside = 2131296463; + // aapt resource value: 0x7f090090 + public const int touch_outside = 2131296400; - // aapt resource value: 0x7F09000D - public const int Translate = 2131296269; + // aapt resource value: 0x7f0900a9 + public const int tvTitle = 2131296425; - // aapt resource value: 0x7F0900D0 - public const int tvTitle = 2131296464; + // aapt resource value: 0x7f0900d7 + public const int tv_zxing_back = 2131296471; - // aapt resource value: 0x7F0900D1 - public const int tv_zxing_back = 2131296465; + // aapt resource value: 0x7f0900d8 + public const int tv_zxing_flash = 2131296472; - // aapt resource value: 0x7F0900D2 - public const int tv_zxing_flash = 2131296466; + // aapt resource value: 0x7f0900d6 + public const int tv_zxing_scan = 2131296470; - // aapt resource value: 0x7F0900D3 - public const int tv_zxing_scan = 2131296467; + // aapt resource value: 0x7f090022 + public const int uniform = 2131296290; - // aapt resource value: 0x7F0900D4 - public const int uniform = 2131296468; + // aapt resource value: 0x7f090009 + public const int up = 2131296265; - // aapt resource value: 0x7F0900D5 - public const int up = 2131296469; + // aapt resource value: 0x7f09001b + public const int useLogo = 2131296283; - // aapt resource value: 0x7F0900D6 - public const int useLogo = 2131296470; + // aapt resource value: 0x7f09000c + public const int view_offset_helper = 2131296268; - // aapt resource value: 0x7F0900D7 - public const int view_offset_helper = 2131296471; + // aapt resource value: 0x7f0900da + public const int visible = 2131296474; - // aapt resource value: 0x7F0900D8 - public const int visible = 2131296472; + // aapt resource value: 0x7f090031 + public const int withText = 2131296305; - // aapt resource value: 0x7F0900D9 - public const int withText = 2131296473; + // aapt resource value: 0x7f090023 + public const int wrap_content = 2131296291; - // aapt resource value: 0x7F0900DA - public const int wrap_content = 2131296474; - - // aapt resource value: 0x7F0900DB - public const int year = 2131296475; + // aapt resource value: 0x7f0900b6 + public const int year = 2131296438; static Id() { @@ -3652,38 +3670,38 @@ public partial class Integer { - // aapt resource value: 0x7F0A0000 - public const int abc_config_activityDefaultDur = 2131361792; + // aapt resource value: 0x7f0e0000 + public const int abc_config_activityDefaultDur = 2131623936; - // aapt resource value: 0x7F0A0001 - public const int abc_config_activityShortDur = 2131361793; + // aapt resource value: 0x7f0e0001 + public const int abc_config_activityShortDur = 2131623937; - // aapt resource value: 0x7F0A0002 - public const int animation_default_duration = 2131361794; + // aapt resource value: 0x7f0e000a + public const int animation_default_duration = 2131623946; - // aapt resource value: 0x7F0A0003 - public const int app_bar_elevation_anim_duration = 2131361795; + // aapt resource value: 0x7f0e0005 + public const int app_bar_elevation_anim_duration = 2131623941; - // aapt resource value: 0x7F0A0004 - public const int bottom_sheet_slide_duration = 2131361796; + // aapt resource value: 0x7f0e0006 + public const int bottom_sheet_slide_duration = 2131623942; - // aapt resource value: 0x7F0A0005 - public const int cancel_button_image_alpha = 2131361797; + // aapt resource value: 0x7f0e0002 + public const int cancel_button_image_alpha = 2131623938; - // aapt resource value: 0x7F0A0006 - public const int config_tooltipAnimTime = 2131361798; + // aapt resource value: 0x7f0e0003 + public const int config_tooltipAnimTime = 2131623939; - // aapt resource value: 0x7F0A0007 - public const int design_snackbar_text_max_lines = 2131361799; + // aapt resource value: 0x7f0e0004 + public const int design_snackbar_text_max_lines = 2131623940; - // aapt resource value: 0x7F0A0008 - public const int hide_password_duration = 2131361800; + // aapt resource value: 0x7f0e0007 + public const int hide_password_duration = 2131623943; - // aapt resource value: 0x7F0A0009 - public const int show_password_duration = 2131361801; + // aapt resource value: 0x7f0e0008 + public const int show_password_duration = 2131623944; - // aapt resource value: 0x7F0A000A - public const int status_bar_notification_info_maxnum = 2131361802; + // aapt resource value: 0x7f0e0009 + public const int status_bar_notification_info_maxnum = 2131623945; static Integer() { @@ -3698,236 +3716,236 @@ public partial class Layout { - // aapt resource value: 0x7F0B0000 - public const int abc_action_bar_title_item = 2131427328; + // aapt resource value: 0x7f040000 + public const int abc_action_bar_title_item = 2130968576; - // aapt resource value: 0x7F0B0001 - public const int abc_action_bar_up_container = 2131427329; + // aapt resource value: 0x7f040001 + public const int abc_action_bar_up_container = 2130968577; - // aapt resource value: 0x7F0B0002 - public const int abc_action_bar_view_list_nav_layout = 2131427330; + // aapt resource value: 0x7f040002 + public const int abc_action_bar_view_list_nav_layout = 2130968578; - // aapt resource value: 0x7F0B0003 - public const int abc_action_menu_item_layout = 2131427331; + // aapt resource value: 0x7f040003 + public const int abc_action_menu_item_layout = 2130968579; - // aapt resource value: 0x7F0B0004 - public const int abc_action_menu_layout = 2131427332; + // aapt resource value: 0x7f040004 + public const int abc_action_menu_layout = 2130968580; - // aapt resource value: 0x7F0B0005 - public const int abc_action_mode_bar = 2131427333; + // aapt resource value: 0x7f040005 + public const int abc_action_mode_bar = 2130968581; - // aapt resource value: 0x7F0B0006 - public const int abc_action_mode_close_item_material = 2131427334; + // aapt resource value: 0x7f040006 + public const int abc_action_mode_close_item_material = 2130968582; - // aapt resource value: 0x7F0B0007 - public const int abc_activity_chooser_view = 2131427335; + // aapt resource value: 0x7f040007 + public const int abc_activity_chooser_view = 2130968583; - // aapt resource value: 0x7F0B0008 - public const int abc_activity_chooser_view_list_item = 2131427336; + // aapt resource value: 0x7f040008 + public const int abc_activity_chooser_view_list_item = 2130968584; - // aapt resource value: 0x7F0B0009 - public const int abc_alert_dialog_button_bar_material = 2131427337; + // aapt resource value: 0x7f040009 + public const int abc_alert_dialog_button_bar_material = 2130968585; - // aapt resource value: 0x7F0B000A - public const int abc_alert_dialog_material = 2131427338; + // aapt resource value: 0x7f04000a + public const int abc_alert_dialog_material = 2130968586; - // aapt resource value: 0x7F0B000B - public const int abc_alert_dialog_title_material = 2131427339; + // aapt resource value: 0x7f04000b + public const int abc_alert_dialog_title_material = 2130968587; - // aapt resource value: 0x7F0B000C - public const int abc_dialog_title_material = 2131427340; + // aapt resource value: 0x7f04000c + public const int abc_dialog_title_material = 2130968588; - // aapt resource value: 0x7F0B000D - public const int abc_expanded_menu_layout = 2131427341; + // aapt resource value: 0x7f04000d + public const int abc_expanded_menu_layout = 2130968589; - // aapt resource value: 0x7F0B000E - public const int abc_list_menu_item_checkbox = 2131427342; + // aapt resource value: 0x7f04000e + public const int abc_list_menu_item_checkbox = 2130968590; - // aapt resource value: 0x7F0B000F - public const int abc_list_menu_item_icon = 2131427343; + // aapt resource value: 0x7f04000f + public const int abc_list_menu_item_icon = 2130968591; - // aapt resource value: 0x7F0B0010 - public const int abc_list_menu_item_layout = 2131427344; + // aapt resource value: 0x7f040010 + public const int abc_list_menu_item_layout = 2130968592; - // aapt resource value: 0x7F0B0011 - public const int abc_list_menu_item_radio = 2131427345; + // aapt resource value: 0x7f040011 + public const int abc_list_menu_item_radio = 2130968593; - // aapt resource value: 0x7F0B0012 - public const int abc_popup_menu_header_item_layout = 2131427346; + // aapt resource value: 0x7f040012 + public const int abc_popup_menu_header_item_layout = 2130968594; - // aapt resource value: 0x7F0B0013 - public const int abc_popup_menu_item_layout = 2131427347; + // aapt resource value: 0x7f040013 + public const int abc_popup_menu_item_layout = 2130968595; - // aapt resource value: 0x7F0B0014 - public const int abc_screen_content_include = 2131427348; + // aapt resource value: 0x7f040014 + public const int abc_screen_content_include = 2130968596; - // aapt resource value: 0x7F0B0015 - public const int abc_screen_simple = 2131427349; + // aapt resource value: 0x7f040015 + public const int abc_screen_simple = 2130968597; - // aapt resource value: 0x7F0B0016 - public const int abc_screen_simple_overlay_action_mode = 2131427350; + // aapt resource value: 0x7f040016 + public const int abc_screen_simple_overlay_action_mode = 2130968598; - // aapt resource value: 0x7F0B0017 - public const int abc_screen_toolbar = 2131427351; + // aapt resource value: 0x7f040017 + public const int abc_screen_toolbar = 2130968599; - // aapt resource value: 0x7F0B0018 - public const int abc_search_dropdown_item_icons_2line = 2131427352; + // aapt resource value: 0x7f040018 + public const int abc_search_dropdown_item_icons_2line = 2130968600; - // aapt resource value: 0x7F0B0019 - public const int abc_search_view = 2131427353; + // aapt resource value: 0x7f040019 + public const int abc_search_view = 2130968601; - // aapt resource value: 0x7F0B001A - public const int abc_select_dialog_material = 2131427354; + // aapt resource value: 0x7f04001a + public const int abc_select_dialog_material = 2130968602; - // aapt resource value: 0x7F0B001B - public const int biometric_prompt_dialog_content = 2131427355; + // aapt resource value: 0x7f04001b + public const int biometric_prompt_dialog_content = 2130968603; - // aapt resource value: 0x7F0B001C - public const int design_bottom_navigation_item = 2131427356; + // aapt resource value: 0x7f04001c + public const int design_bottom_navigation_item = 2130968604; - // aapt resource value: 0x7F0B001D - public const int design_bottom_sheet_dialog = 2131427357; + // aapt resource value: 0x7f04001d + public const int design_bottom_sheet_dialog = 2130968605; - // aapt resource value: 0x7F0B001E - public const int design_layout_snackbar = 2131427358; + // aapt resource value: 0x7f04001e + public const int design_layout_snackbar = 2130968606; - // aapt resource value: 0x7F0B001F - public const int design_layout_snackbar_include = 2131427359; + // aapt resource value: 0x7f04001f + public const int design_layout_snackbar_include = 2130968607; - // aapt resource value: 0x7F0B0020 - public const int design_layout_tab_icon = 2131427360; + // aapt resource value: 0x7f040020 + public const int design_layout_tab_icon = 2130968608; - // aapt resource value: 0x7F0B0021 - public const int design_layout_tab_text = 2131427361; + // aapt resource value: 0x7f040021 + public const int design_layout_tab_text = 2130968609; - // aapt resource value: 0x7F0B0022 - public const int design_menu_item_action_area = 2131427362; + // aapt resource value: 0x7f040022 + public const int design_menu_item_action_area = 2130968610; - // aapt resource value: 0x7F0B0023 - public const int design_navigation_item = 2131427363; + // aapt resource value: 0x7f040023 + public const int design_navigation_item = 2130968611; - // aapt resource value: 0x7F0B0024 - public const int design_navigation_item_header = 2131427364; + // aapt resource value: 0x7f040024 + public const int design_navigation_item_header = 2130968612; - // aapt resource value: 0x7F0B0025 - public const int design_navigation_item_separator = 2131427365; + // aapt resource value: 0x7f040025 + public const int design_navigation_item_separator = 2130968613; - // aapt resource value: 0x7F0B0026 - public const int design_navigation_item_subheader = 2131427366; + // aapt resource value: 0x7f040026 + public const int design_navigation_item_subheader = 2130968614; - // aapt resource value: 0x7F0B0027 - public const int design_navigation_menu = 2131427367; + // aapt resource value: 0x7f040027 + public const int design_navigation_menu = 2130968615; - // aapt resource value: 0x7F0B0028 - public const int design_navigation_menu_item = 2131427368; + // aapt resource value: 0x7f040028 + public const int design_navigation_menu_item = 2130968616; - // aapt resource value: 0x7F0B0029 - public const int design_text_input_password_icon = 2131427369; + // aapt resource value: 0x7f040029 + public const int design_text_input_password_icon = 2130968617; - // aapt resource value: 0x7F0B002A - public const int hdl_gallery_banner_view_layout = 2131427370; + // aapt resource value: 0x7f04002a + public const int hdl_gallery_banner_view_layout = 2130968618; - // aapt resource value: 0x7F0B002B - public const int hdl_widget_activity_crop_image = 2131427371; + // aapt resource value: 0x7f04002b + public const int hdl_widget_activity_crop_image = 2130968619; - // aapt resource value: 0x7F0B002C - public const int hdl_widget_activity_geofence_round = 2131427372; + // aapt resource value: 0x7f04002c + public const int hdl_widget_activity_geofence_round = 2130968620; - // aapt resource value: 0x7F0B002D - public const int hdl_widget_air_button = 2131427373; + // aapt resource value: 0x7f04002d + public const int hdl_widget_air_button = 2130968621; - // aapt resource value: 0x7F0B002E - public const int hdl_widget_include_pickerview_topbar = 2131427374; + // aapt resource value: 0x7f04002e + public const int hdl_widget_include_pickerview_topbar = 2130968622; - // aapt resource value: 0x7F0B002F - public const int hdl_widget_layout_basepickerview = 2131427375; + // aapt resource value: 0x7f04002f + public const int hdl_widget_layout_basepickerview = 2130968623; - // aapt resource value: 0x7F0B0030 - public const int hdl_widget_pickerview = 2131427376; + // aapt resource value: 0x7f040030 + public const int hdl_widget_pickerview = 2130968624; - // aapt resource value: 0x7F0B0031 - public const int hdl_widget_pickerview_options = 2131427377; + // aapt resource value: 0x7f040031 + public const int hdl_widget_pickerview_options = 2130968625; - // aapt resource value: 0x7F0B0032 - public const int hdl_widget_pickerview_time = 2131427378; + // aapt resource value: 0x7f040032 + public const int hdl_widget_pickerview_time = 2130968626; - // aapt resource value: 0x7F0B0033 - public const int Main = 2131427379; + // aapt resource value: 0x7f040033 + public const int Main = 2130968627; - // aapt resource value: 0x7F0B0034 - public const int notification_action = 2131427380; + // aapt resource value: 0x7f040034 + public const int notification_action = 2130968628; - // aapt resource value: 0x7F0B0035 - public const int notification_action_tombstone = 2131427381; + // aapt resource value: 0x7f040035 + public const int notification_action_tombstone = 2130968629; - // aapt resource value: 0x7F0B0036 - public const int notification_media_action = 2131427382; + // aapt resource value: 0x7f040036 + public const int notification_media_action = 2130968630; - // aapt resource value: 0x7F0B0037 - public const int notification_media_cancel_action = 2131427383; + // aapt resource value: 0x7f040037 + public const int notification_media_cancel_action = 2130968631; - // aapt resource value: 0x7F0B0038 - public const int notification_template_big_media = 2131427384; + // aapt resource value: 0x7f040038 + public const int notification_template_big_media = 2130968632; - // aapt resource value: 0x7F0B0039 - public const int notification_template_big_media_custom = 2131427385; + // aapt resource value: 0x7f040039 + public const int notification_template_big_media_custom = 2130968633; - // aapt resource value: 0x7F0B003A - public const int notification_template_big_media_narrow = 2131427386; + // aapt resource value: 0x7f04003a + public const int notification_template_big_media_narrow = 2130968634; - // aapt resource value: 0x7F0B003B - public const int notification_template_big_media_narrow_custom = 2131427387; + // aapt resource value: 0x7f04003b + public const int notification_template_big_media_narrow_custom = 2130968635; - // aapt resource value: 0x7F0B003C - public const int notification_template_custom_big = 2131427388; + // aapt resource value: 0x7f04003c + public const int notification_template_custom_big = 2130968636; - // aapt resource value: 0x7F0B003D - public const int notification_template_icon_group = 2131427389; + // aapt resource value: 0x7f04003d + public const int notification_template_icon_group = 2130968637; - // aapt resource value: 0x7F0B003E - public const int notification_template_lines_media = 2131427390; + // aapt resource value: 0x7f04003e + public const int notification_template_lines_media = 2130968638; - // aapt resource value: 0x7F0B003F - public const int notification_template_media = 2131427391; + // aapt resource value: 0x7f04003f + public const int notification_template_media = 2130968639; - // aapt resource value: 0x7F0B0040 - public const int notification_template_media_custom = 2131427392; + // aapt resource value: 0x7f040040 + public const int notification_template_media_custom = 2130968640; - // aapt resource value: 0x7F0B0041 - public const int notification_template_part_chronometer = 2131427393; + // aapt resource value: 0x7f040041 + public const int notification_template_part_chronometer = 2130968641; - // aapt resource value: 0x7F0B0042 - public const int notification_template_part_time = 2131427394; + // aapt resource value: 0x7f040042 + public const int notification_template_part_time = 2130968642; - // aapt resource value: 0x7F0B0043 - public const int select_dialog_item_material = 2131427395; + // aapt resource value: 0x7f040043 + public const int select_dialog_item_material = 2130968643; - // aapt resource value: 0x7F0B0044 - public const int select_dialog_multichoice_material = 2131427396; + // aapt resource value: 0x7f040044 + public const int select_dialog_multichoice_material = 2130968644; - // aapt resource value: 0x7F0B0045 - public const int select_dialog_singlechoice_material = 2131427397; + // aapt resource value: 0x7f040045 + public const int select_dialog_singlechoice_material = 2130968645; - // aapt resource value: 0x7F0B0046 - public const int srl_classics_footer = 2131427398; + // aapt resource value: 0x7f040046 + public const int srl_classics_footer = 2130968646; - // aapt resource value: 0x7F0B0047 - public const int srl_classics_header = 2131427399; + // aapt resource value: 0x7f040047 + public const int srl_classics_header = 2130968647; - // aapt resource value: 0x7F0B0048 - public const int support_simple_spinner_dropdown_item = 2131427400; + // aapt resource value: 0x7f040048 + public const int support_simple_spinner_dropdown_item = 2130968648; - // aapt resource value: 0x7F0B0049 - public const int tooltip = 2131427401; + // aapt resource value: 0x7f040049 + public const int tooltip = 2130968649; - // aapt resource value: 0x7F0B004B - public const int zxingscanneractivitylayout = 2131427403; + // aapt resource value: 0x7f04004a + public const int zxing_layout = 2130968650; - // aapt resource value: 0x7F0B004C - public const int zxingscannerfragmentlayout = 2131427404; + // aapt resource value: 0x7f04004b + public const int zxingscanneractivitylayout = 2130968651; - // aapt resource value: 0x7F0B004A - public const int zxing_layout = 2131427402; + // aapt resource value: 0x7f04004c + public const int zxingscannerfragmentlayout = 2130968652; static Layout() { @@ -3942,8 +3960,8 @@ public partial class Mipmap { - // aapt resource value: 0x7F0C0000 - public const int Icon = 2131492864; + // aapt resource value: 0x7f030000 + public const int Icon = 2130903040; static Mipmap() { @@ -3958,242 +3976,242 @@ public partial class String { - // aapt resource value: 0x7F0D0000 - public const int abc_action_bar_home_description = 2131558400; + // aapt resource value: 0x7f0a0000 + public const int abc_action_bar_home_description = 2131361792; - // aapt resource value: 0x7F0D0001 - public const int abc_action_bar_home_description_format = 2131558401; + // aapt resource value: 0x7f0a0001 + public const int abc_action_bar_home_description_format = 2131361793; - // aapt resource value: 0x7F0D0002 - public const int abc_action_bar_home_subtitle_description_format = 2131558402; + // aapt resource value: 0x7f0a0002 + public const int abc_action_bar_home_subtitle_description_format = 2131361794; - // aapt resource value: 0x7F0D0003 - public const int abc_action_bar_up_description = 2131558403; + // aapt resource value: 0x7f0a0003 + public const int abc_action_bar_up_description = 2131361795; - // aapt resource value: 0x7F0D0004 - public const int abc_action_menu_overflow_description = 2131558404; + // aapt resource value: 0x7f0a0004 + public const int abc_action_menu_overflow_description = 2131361796; - // aapt resource value: 0x7F0D0005 - public const int abc_action_mode_done = 2131558405; + // aapt resource value: 0x7f0a0005 + public const int abc_action_mode_done = 2131361797; - // aapt resource value: 0x7F0D0007 - public const int abc_activitychooserview_choose_application = 2131558407; + // aapt resource value: 0x7f0a0006 + public const int abc_activity_chooser_view_see_all = 2131361798; - // aapt resource value: 0x7F0D0006 - public const int abc_activity_chooser_view_see_all = 2131558406; + // aapt resource value: 0x7f0a0007 + public const int abc_activitychooserview_choose_application = 2131361799; - // aapt resource value: 0x7F0D0008 - public const int abc_capital_off = 2131558408; + // aapt resource value: 0x7f0a0008 + public const int abc_capital_off = 2131361800; - // aapt resource value: 0x7F0D0009 - public const int abc_capital_on = 2131558409; + // aapt resource value: 0x7f0a0009 + public const int abc_capital_on = 2131361801; - // aapt resource value: 0x7F0D000A - public const int abc_font_family_body_1_material = 2131558410; + // aapt resource value: 0x7f0a0015 + public const int abc_font_family_body_1_material = 2131361813; - // aapt resource value: 0x7F0D000B - public const int abc_font_family_body_2_material = 2131558411; + // aapt resource value: 0x7f0a0016 + public const int abc_font_family_body_2_material = 2131361814; - // aapt resource value: 0x7F0D000C - public const int abc_font_family_button_material = 2131558412; + // aapt resource value: 0x7f0a0017 + public const int abc_font_family_button_material = 2131361815; - // aapt resource value: 0x7F0D000D - public const int abc_font_family_caption_material = 2131558413; + // aapt resource value: 0x7f0a0018 + public const int abc_font_family_caption_material = 2131361816; - // aapt resource value: 0x7F0D000E - public const int abc_font_family_display_1_material = 2131558414; + // aapt resource value: 0x7f0a0019 + public const int abc_font_family_display_1_material = 2131361817; - // aapt resource value: 0x7F0D000F - public const int abc_font_family_display_2_material = 2131558415; + // aapt resource value: 0x7f0a001a + public const int abc_font_family_display_2_material = 2131361818; - // aapt resource value: 0x7F0D0010 - public const int abc_font_family_display_3_material = 2131558416; + // aapt resource value: 0x7f0a001b + public const int abc_font_family_display_3_material = 2131361819; - // aapt resource value: 0x7F0D0011 - public const int abc_font_family_display_4_material = 2131558417; + // aapt resource value: 0x7f0a001c + public const int abc_font_family_display_4_material = 2131361820; - // aapt resource value: 0x7F0D0012 - public const int abc_font_family_headline_material = 2131558418; + // aapt resource value: 0x7f0a001d + public const int abc_font_family_headline_material = 2131361821; - // aapt resource value: 0x7F0D0013 - public const int abc_font_family_menu_material = 2131558419; + // aapt resource value: 0x7f0a001e + public const int abc_font_family_menu_material = 2131361822; - // aapt resource value: 0x7F0D0014 - public const int abc_font_family_subhead_material = 2131558420; + // aapt resource value: 0x7f0a001f + public const int abc_font_family_subhead_material = 2131361823; - // aapt resource value: 0x7F0D0015 - public const int abc_font_family_title_material = 2131558421; + // aapt resource value: 0x7f0a0020 + public const int abc_font_family_title_material = 2131361824; - // aapt resource value: 0x7F0D0017 - public const int abc_searchview_description_clear = 2131558423; + // aapt resource value: 0x7f0a000a + public const int abc_search_hint = 2131361802; - // aapt resource value: 0x7F0D0018 - public const int abc_searchview_description_query = 2131558424; + // aapt resource value: 0x7f0a000b + public const int abc_searchview_description_clear = 2131361803; - // aapt resource value: 0x7F0D0019 - public const int abc_searchview_description_search = 2131558425; + // aapt resource value: 0x7f0a000c + public const int abc_searchview_description_query = 2131361804; - // aapt resource value: 0x7F0D001A - public const int abc_searchview_description_submit = 2131558426; + // aapt resource value: 0x7f0a000d + public const int abc_searchview_description_search = 2131361805; - // aapt resource value: 0x7F0D001B - public const int abc_searchview_description_voice = 2131558427; + // aapt resource value: 0x7f0a000e + public const int abc_searchview_description_submit = 2131361806; - // aapt resource value: 0x7F0D0016 - public const int abc_search_hint = 2131558422; + // aapt resource value: 0x7f0a000f + public const int abc_searchview_description_voice = 2131361807; - // aapt resource value: 0x7F0D001C - public const int abc_shareactionprovider_share_with = 2131558428; + // aapt resource value: 0x7f0a0010 + public const int abc_shareactionprovider_share_with = 2131361808; - // aapt resource value: 0x7F0D001D - public const int abc_shareactionprovider_share_with_application = 2131558429; + // aapt resource value: 0x7f0a0011 + public const int abc_shareactionprovider_share_with_application = 2131361809; - // aapt resource value: 0x7F0D001E - public const int abc_toolbar_collapse_description = 2131558430; + // aapt resource value: 0x7f0a0012 + public const int abc_toolbar_collapse_description = 2131361810; - // aapt resource value: 0x7F0D0020 - public const int appbar_scrolling_view_behavior = 2131558432; + // aapt resource value: 0x7f0a003c + public const int app_name = 2131361852; - // aapt resource value: 0x7F0D001F - public const int app_name = 2131558431; + // aapt resource value: 0x7f0a0021 + public const int appbar_scrolling_view_behavior = 2131361825; - // aapt resource value: 0x7F0D0021 - public const int bottom_sheet_behavior = 2131558433; + // aapt resource value: 0x7f0a0022 + public const int bottom_sheet_behavior = 2131361826; - // aapt resource value: 0x7F0D0022 - public const int character_counter_pattern = 2131558434; + // aapt resource value: 0x7f0a0023 + public const int character_counter_pattern = 2131361827; - // aapt resource value: 0x7F0D0023 - public const int gd_activity_title = 2131558435; + // aapt resource value: 0x7f0a003d + public const int gd_activity_title = 2131361853; - // aapt resource value: 0x7F0D0024 - public const int gd_cancel = 2131558436; + // aapt resource value: 0x7f0a003e + public const int gd_cancel = 2131361854; - // aapt resource value: 0x7F0D0025 - public const int gd_myhome = 2131558437; + // aapt resource value: 0x7f0a003f + public const int gd_myhome = 2131361855; - // aapt resource value: 0x7F0D0026 - public const int gd_notifyMsg = 2131558438; + // aapt resource value: 0x7f0a0040 + public const int gd_notifyMsg = 2131361856; - // aapt resource value: 0x7F0D0027 - public const int gd_notifyTitle = 2131558439; + // aapt resource value: 0x7f0a0041 + public const int gd_notifyTitle = 2131361857; - // aapt resource value: 0x7F0D0028 - public const int gd_save = 2131558440; + // aapt resource value: 0x7f0a0042 + public const int gd_save = 2131361858; - // aapt resource value: 0x7F0D0029 - public const int gd_search_tip = 2131558441; + // aapt resource value: 0x7f0a0043 + public const int gd_search_tip = 2131361859; - // aapt resource value: 0x7F0D002A - public const int gd_select_distance = 2131558442; + // aapt resource value: 0x7f0a0044 + public const int gd_select_distance = 2131361860; - // aapt resource value: 0x7F0D002B - public const int gd_setting = 2131558443; + // aapt resource value: 0x7f0a0045 + public const int gd_setting = 2131361861; - // aapt resource value: 0x7F0D002C - public const int hello = 2131558444; + // aapt resource value: 0x7f0a004e + public const int hello = 2131361870; - // aapt resource value: 0x7F0D002D - public const int not_recognized_fingerprint_hint = 2131558445; + // aapt resource value: 0x7f0a0029 + public const int not_recognized_fingerprint_hint = 2131361833; - // aapt resource value: 0x7F0D002E - public const int password_toggle_content_description = 2131558446; + // aapt resource value: 0x7f0a0024 + public const int password_toggle_content_description = 2131361828; - // aapt resource value: 0x7F0D002F - public const int path_password_eye = 2131558447; + // aapt resource value: 0x7f0a0025 + public const int path_password_eye = 2131361829; - // aapt resource value: 0x7F0D0030 - public const int path_password_eye_mask_strike_through = 2131558448; + // aapt resource value: 0x7f0a0026 + public const int path_password_eye_mask_strike_through = 2131361830; - // aapt resource value: 0x7F0D0031 - public const int path_password_eye_mask_visible = 2131558449; + // aapt resource value: 0x7f0a0027 + public const int path_password_eye_mask_visible = 2131361831; - // aapt resource value: 0x7F0D0032 - public const int path_password_strike_through = 2131558450; + // aapt resource value: 0x7f0a0028 + public const int path_password_strike_through = 2131361832; - // aapt resource value: 0x7F0D0033 - public const int pickerview_cancel = 2131558451; + // aapt resource value: 0x7f0a0046 + public const int pickerview_cancel = 2131361862; - // aapt resource value: 0x7F0D0034 - public const int pickerview_day = 2131558452; + // aapt resource value: 0x7f0a0047 + public const int pickerview_day = 2131361863; - // aapt resource value: 0x7F0D0035 - public const int pickerview_hours = 2131558453; + // aapt resource value: 0x7f0a0048 + public const int pickerview_hours = 2131361864; - // aapt resource value: 0x7F0D0036 - public const int pickerview_minutes = 2131558454; + // aapt resource value: 0x7f0a0049 + public const int pickerview_minutes = 2131361865; - // aapt resource value: 0x7F0D0037 - public const int pickerview_month = 2131558455; + // aapt resource value: 0x7f0a004a + public const int pickerview_month = 2131361866; - // aapt resource value: 0x7F0D0038 - public const int pickerview_seconds = 2131558456; + // aapt resource value: 0x7f0a004b + public const int pickerview_seconds = 2131361867; - // aapt resource value: 0x7F0D0039 - public const int pickerview_submit = 2131558457; + // aapt resource value: 0x7f0a004c + public const int pickerview_submit = 2131361868; - // aapt resource value: 0x7F0D003A - public const int pickerview_year = 2131558458; + // aapt resource value: 0x7f0a004d + public const int pickerview_year = 2131361869; - // aapt resource value: 0x7F0D003B - public const int search_menu_title = 2131558459; + // aapt resource value: 0x7f0a0013 + public const int search_menu_title = 2131361811; - // aapt resource value: 0x7F0D003C - public const int srl_component_falsify = 2131558460; + // aapt resource value: 0x7f0a002b + public const int srl_component_falsify = 2131361835; - // aapt resource value: 0x7F0D003D - public const int srl_content_empty = 2131558461; + // aapt resource value: 0x7f0a002c + public const int srl_content_empty = 2131361836; - // aapt resource value: 0x7F0D003E - public const int srl_footer_failed = 2131558462; + // aapt resource value: 0x7f0a002d + public const int srl_footer_failed = 2131361837; - // aapt resource value: 0x7F0D003F - public const int srl_footer_finish = 2131558463; + // aapt resource value: 0x7f0a002e + public const int srl_footer_finish = 2131361838; - // aapt resource value: 0x7F0D0040 - public const int srl_footer_loading = 2131558464; + // aapt resource value: 0x7f0a002f + public const int srl_footer_loading = 2131361839; - // aapt resource value: 0x7F0D0041 - public const int srl_footer_nothing = 2131558465; + // aapt resource value: 0x7f0a0030 + public const int srl_footer_nothing = 2131361840; - // aapt resource value: 0x7F0D0042 - public const int srl_footer_pulling = 2131558466; + // aapt resource value: 0x7f0a0031 + public const int srl_footer_pulling = 2131361841; - // aapt resource value: 0x7F0D0043 - public const int srl_footer_refreshing = 2131558467; + // aapt resource value: 0x7f0a0032 + public const int srl_footer_refreshing = 2131361842; - // aapt resource value: 0x7F0D0044 - public const int srl_footer_release = 2131558468; + // aapt resource value: 0x7f0a0033 + public const int srl_footer_release = 2131361843; - // aapt resource value: 0x7F0D0045 - public const int srl_header_failed = 2131558469; + // aapt resource value: 0x7f0a0034 + public const int srl_header_failed = 2131361844; - // aapt resource value: 0x7F0D0046 - public const int srl_header_finish = 2131558470; + // aapt resource value: 0x7f0a0035 + public const int srl_header_finish = 2131361845; - // aapt resource value: 0x7F0D0047 - public const int srl_header_loading = 2131558471; + // aapt resource value: 0x7f0a0036 + public const int srl_header_loading = 2131361846; - // aapt resource value: 0x7F0D0048 - public const int srl_header_pulling = 2131558472; + // aapt resource value: 0x7f0a0037 + public const int srl_header_pulling = 2131361847; - // aapt resource value: 0x7F0D0049 - public const int srl_header_refreshing = 2131558473; + // aapt resource value: 0x7f0a0038 + public const int srl_header_refreshing = 2131361848; - // aapt resource value: 0x7F0D004A - public const int srl_header_release = 2131558474; + // aapt resource value: 0x7f0a0039 + public const int srl_header_release = 2131361849; - // aapt resource value: 0x7F0D004B - public const int srl_header_secondary = 2131558475; + // aapt resource value: 0x7f0a003a + public const int srl_header_secondary = 2131361850; - // aapt resource value: 0x7F0D004C - public const int srl_header_update = 2131558476; + // aapt resource value: 0x7f0a003b + public const int srl_header_update = 2131361851; - // aapt resource value: 0x7F0D004D - public const int status_bar_notification_info_overflow = 2131558477; + // aapt resource value: 0x7f0a0014 + public const int status_bar_notification_info_overflow = 2131361812; - // aapt resource value: 0x7F0D004E - public const int touch_fingerprint_sensor_hint = 2131558478; + // aapt resource value: 0x7f0a002a + public const int touch_fingerprint_sensor_hint = 2131361834; static String() { @@ -4208,1205 +4226,1205 @@ public partial class Style { - // aapt resource value: 0x7F0E0000 - public const int AlertDialog_AppCompat = 2131623936; + // aapt resource value: 0x7f0b009d + public const int AlertDialog_AppCompat = 2131427485; - // aapt resource value: 0x7F0E0001 - public const int AlertDialog_AppCompat_Light = 2131623937; + // aapt resource value: 0x7f0b009e + public const int AlertDialog_AppCompat_Light = 2131427486; - // aapt resource value: 0x7F0E0002 - public const int Animation_AppCompat_Dialog = 2131623938; + // aapt resource value: 0x7f0b009f + public const int Animation_AppCompat_Dialog = 2131427487; - // aapt resource value: 0x7F0E0003 - public const int Animation_AppCompat_DropDownUp = 2131623939; + // aapt resource value: 0x7f0b00a0 + public const int Animation_AppCompat_DropDownUp = 2131427488; - // aapt resource value: 0x7F0E0004 - public const int Animation_AppCompat_Tooltip = 2131623940; + // aapt resource value: 0x7f0b00a1 + public const int Animation_AppCompat_Tooltip = 2131427489; - // aapt resource value: 0x7F0E0005 - public const int Animation_Design_BottomSheetDialog = 2131623941; + // aapt resource value: 0x7f0b0169 + public const int Animation_Design_BottomSheetDialog = 2131427689; - // aapt resource value: 0x7F0E0006 - public const int Base_AlertDialog_AppCompat = 2131623942; + // aapt resource value: 0x7f0b00a2 + public const int Base_AlertDialog_AppCompat = 2131427490; - // aapt resource value: 0x7F0E0007 - public const int Base_AlertDialog_AppCompat_Light = 2131623943; + // aapt resource value: 0x7f0b00a3 + public const int Base_AlertDialog_AppCompat_Light = 2131427491; - // aapt resource value: 0x7F0E0008 - public const int Base_Animation_AppCompat_Dialog = 2131623944; + // aapt resource value: 0x7f0b00a4 + public const int Base_Animation_AppCompat_Dialog = 2131427492; - // aapt resource value: 0x7F0E0009 - public const int Base_Animation_AppCompat_DropDownUp = 2131623945; + // aapt resource value: 0x7f0b00a5 + public const int Base_Animation_AppCompat_DropDownUp = 2131427493; - // aapt resource value: 0x7F0E000A - public const int Base_Animation_AppCompat_Tooltip = 2131623946; + // aapt resource value: 0x7f0b00a6 + public const int Base_Animation_AppCompat_Tooltip = 2131427494; - // aapt resource value: 0x7F0E000C - public const int Base_DialogWindowTitleBackground_AppCompat = 2131623948; + // aapt resource value: 0x7f0b00a7 + public const int Base_DialogWindowTitle_AppCompat = 2131427495; - // aapt resource value: 0x7F0E000B - public const int Base_DialogWindowTitle_AppCompat = 2131623947; + // aapt resource value: 0x7f0b00a8 + public const int Base_DialogWindowTitleBackground_AppCompat = 2131427496; - // aapt resource value: 0x7F0E000D - public const int Base_TextAppearance_AppCompat = 2131623949; + // aapt resource value: 0x7f0b0039 + public const int Base_TextAppearance_AppCompat = 2131427385; - // aapt resource value: 0x7F0E000E - public const int Base_TextAppearance_AppCompat_Body1 = 2131623950; + // aapt resource value: 0x7f0b003a + public const int Base_TextAppearance_AppCompat_Body1 = 2131427386; - // aapt resource value: 0x7F0E000F - public const int Base_TextAppearance_AppCompat_Body2 = 2131623951; + // aapt resource value: 0x7f0b003b + public const int Base_TextAppearance_AppCompat_Body2 = 2131427387; - // aapt resource value: 0x7F0E0010 - public const int Base_TextAppearance_AppCompat_Button = 2131623952; + // aapt resource value: 0x7f0b0027 + public const int Base_TextAppearance_AppCompat_Button = 2131427367; - // aapt resource value: 0x7F0E0011 - public const int Base_TextAppearance_AppCompat_Caption = 2131623953; + // aapt resource value: 0x7f0b003c + public const int Base_TextAppearance_AppCompat_Caption = 2131427388; - // aapt resource value: 0x7F0E0012 - public const int Base_TextAppearance_AppCompat_Display1 = 2131623954; + // aapt resource value: 0x7f0b003d + public const int Base_TextAppearance_AppCompat_Display1 = 2131427389; - // aapt resource value: 0x7F0E0013 - public const int Base_TextAppearance_AppCompat_Display2 = 2131623955; + // aapt resource value: 0x7f0b003e + public const int Base_TextAppearance_AppCompat_Display2 = 2131427390; - // aapt resource value: 0x7F0E0014 - public const int Base_TextAppearance_AppCompat_Display3 = 2131623956; + // aapt resource value: 0x7f0b003f + public const int Base_TextAppearance_AppCompat_Display3 = 2131427391; - // aapt resource value: 0x7F0E0015 - public const int Base_TextAppearance_AppCompat_Display4 = 2131623957; + // aapt resource value: 0x7f0b0040 + public const int Base_TextAppearance_AppCompat_Display4 = 2131427392; - // aapt resource value: 0x7F0E0016 - public const int Base_TextAppearance_AppCompat_Headline = 2131623958; + // aapt resource value: 0x7f0b0041 + public const int Base_TextAppearance_AppCompat_Headline = 2131427393; - // aapt resource value: 0x7F0E0017 - public const int Base_TextAppearance_AppCompat_Inverse = 2131623959; + // aapt resource value: 0x7f0b000b + public const int Base_TextAppearance_AppCompat_Inverse = 2131427339; - // aapt resource value: 0x7F0E0018 - public const int Base_TextAppearance_AppCompat_Large = 2131623960; + // aapt resource value: 0x7f0b0042 + public const int Base_TextAppearance_AppCompat_Large = 2131427394; - // aapt resource value: 0x7F0E0019 - public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131623961; + // aapt resource value: 0x7f0b000c + public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131427340; - // aapt resource value: 0x7F0E001A - public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131623962; + // aapt resource value: 0x7f0b0043 + public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131427395; - // aapt resource value: 0x7F0E001B - public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131623963; + // aapt resource value: 0x7f0b0044 + public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131427396; - // aapt resource value: 0x7F0E001C - public const int Base_TextAppearance_AppCompat_Medium = 2131623964; + // aapt resource value: 0x7f0b0045 + public const int Base_TextAppearance_AppCompat_Medium = 2131427397; - // aapt resource value: 0x7F0E001D - public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131623965; + // aapt resource value: 0x7f0b000d + public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131427341; - // aapt resource value: 0x7F0E001E - public const int Base_TextAppearance_AppCompat_Menu = 2131623966; + // aapt resource value: 0x7f0b0046 + public const int Base_TextAppearance_AppCompat_Menu = 2131427398; - // aapt resource value: 0x7F0E001F - public const int Base_TextAppearance_AppCompat_SearchResult = 2131623967; + // aapt resource value: 0x7f0b00a9 + public const int Base_TextAppearance_AppCompat_SearchResult = 2131427497; - // aapt resource value: 0x7F0E0020 - public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131623968; + // aapt resource value: 0x7f0b0047 + public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131427399; - // aapt resource value: 0x7F0E0021 - public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131623969; + // aapt resource value: 0x7f0b0048 + public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131427400; - // aapt resource value: 0x7F0E0022 - public const int Base_TextAppearance_AppCompat_Small = 2131623970; + // aapt resource value: 0x7f0b0049 + public const int Base_TextAppearance_AppCompat_Small = 2131427401; - // aapt resource value: 0x7F0E0023 - public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131623971; + // aapt resource value: 0x7f0b000e + public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131427342; - // aapt resource value: 0x7F0E0024 - public const int Base_TextAppearance_AppCompat_Subhead = 2131623972; + // aapt resource value: 0x7f0b004a + public const int Base_TextAppearance_AppCompat_Subhead = 2131427402; - // aapt resource value: 0x7F0E0025 - public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131623973; + // aapt resource value: 0x7f0b000f + public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131427343; - // aapt resource value: 0x7F0E0026 - public const int Base_TextAppearance_AppCompat_Title = 2131623974; + // aapt resource value: 0x7f0b004b + public const int Base_TextAppearance_AppCompat_Title = 2131427403; - // aapt resource value: 0x7F0E0027 - public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131623975; + // aapt resource value: 0x7f0b0010 + public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131427344; - // aapt resource value: 0x7F0E0028 - public const int Base_TextAppearance_AppCompat_Tooltip = 2131623976; + // aapt resource value: 0x7f0b00aa + public const int Base_TextAppearance_AppCompat_Tooltip = 2131427498; - // aapt resource value: 0x7F0E0029 - public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131623977; + // aapt resource value: 0x7f0b008e + public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131427470; - // aapt resource value: 0x7F0E002A - public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131623978; + // aapt resource value: 0x7f0b004c + public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131427404; - // aapt resource value: 0x7F0E002B - public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131623979; + // aapt resource value: 0x7f0b004d + public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131427405; - // aapt resource value: 0x7F0E002C - public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131623980; + // aapt resource value: 0x7f0b004e + public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131427406; - // aapt resource value: 0x7F0E002D - public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131623981; + // aapt resource value: 0x7f0b004f + public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131427407; - // aapt resource value: 0x7F0E002E - public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131623982; + // aapt resource value: 0x7f0b0050 + public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131427408; - // aapt resource value: 0x7F0E002F - public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131623983; + // aapt resource value: 0x7f0b0051 + public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131427409; - // aapt resource value: 0x7F0E0030 - public const int Base_TextAppearance_AppCompat_Widget_Button = 2131623984; + // aapt resource value: 0x7f0b0052 + public const int Base_TextAppearance_AppCompat_Widget_Button = 2131427410; - // aapt resource value: 0x7F0E0031 - public const int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131623985; + // aapt resource value: 0x7f0b0095 + public const int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131427477; - // aapt resource value: 0x7F0E0032 - public const int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131623986; + // aapt resource value: 0x7f0b0096 + public const int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131427478; - // aapt resource value: 0x7F0E0033 - public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131623987; + // aapt resource value: 0x7f0b008f + public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131427471; - // aapt resource value: 0x7F0E0034 - public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131623988; + // aapt resource value: 0x7f0b00ab + public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131427499; - // aapt resource value: 0x7F0E0035 - public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131623989; + // aapt resource value: 0x7f0b0053 + public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131427411; - // aapt resource value: 0x7F0E0036 - public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131623990; + // aapt resource value: 0x7f0b0054 + public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131427412; - // aapt resource value: 0x7F0E0037 - public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131623991; + // aapt resource value: 0x7f0b0055 + public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131427413; - // aapt resource value: 0x7F0E0038 - public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131623992; + // aapt resource value: 0x7f0b0056 + public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131427414; - // aapt resource value: 0x7F0E0039 - public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131623993; + // aapt resource value: 0x7f0b0057 + public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131427415; - // aapt resource value: 0x7F0E003A - public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131623994; + // aapt resource value: 0x7f0b00ac + public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131427500; - // aapt resource value: 0x7F0E003B - public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131623995; + // aapt resource value: 0x7f0b0058 + public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131427416; - // aapt resource value: 0x7F0E003C - public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131623996; + // aapt resource value: 0x7f0b0059 + public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131427417; - // aapt resource value: 0x7F0E004B - public const int Base_ThemeOverlay_AppCompat = 2131624011; + // aapt resource value: 0x7f0b005a + public const int Base_Theme_AppCompat = 2131427418; - // aapt resource value: 0x7F0E004C - public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131624012; + // aapt resource value: 0x7f0b00ad + public const int Base_Theme_AppCompat_CompactMenu = 2131427501; - // aapt resource value: 0x7F0E004D - public const int Base_ThemeOverlay_AppCompat_Dark = 2131624013; + // aapt resource value: 0x7f0b0011 + public const int Base_Theme_AppCompat_Dialog = 2131427345; - // aapt resource value: 0x7F0E004E - public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131624014; + // aapt resource value: 0x7f0b0012 + public const int Base_Theme_AppCompat_Dialog_Alert = 2131427346; - // aapt resource value: 0x7F0E004F - public const int Base_ThemeOverlay_AppCompat_Dialog = 2131624015; + // aapt resource value: 0x7f0b00ae + public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131427502; - // aapt resource value: 0x7F0E0050 - public const int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131624016; + // aapt resource value: 0x7f0b0013 + public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131427347; - // aapt resource value: 0x7F0E0051 - public const int Base_ThemeOverlay_AppCompat_Light = 2131624017; + // aapt resource value: 0x7f0b0001 + public const int Base_Theme_AppCompat_DialogWhenLarge = 2131427329; - // aapt resource value: 0x7F0E003D - public const int Base_Theme_AppCompat = 2131623997; + // aapt resource value: 0x7f0b005b + public const int Base_Theme_AppCompat_Light = 2131427419; - // aapt resource value: 0x7F0E003E - public const int Base_Theme_AppCompat_CompactMenu = 2131623998; + // aapt resource value: 0x7f0b00af + public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131427503; - // aapt resource value: 0x7F0E003F - public const int Base_Theme_AppCompat_Dialog = 2131623999; + // aapt resource value: 0x7f0b0014 + public const int Base_Theme_AppCompat_Light_Dialog = 2131427348; - // aapt resource value: 0x7F0E0043 - public const int Base_Theme_AppCompat_DialogWhenLarge = 2131624003; + // aapt resource value: 0x7f0b0015 + public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131427349; - // aapt resource value: 0x7F0E0040 - public const int Base_Theme_AppCompat_Dialog_Alert = 2131624000; + // aapt resource value: 0x7f0b00b0 + public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131427504; - // aapt resource value: 0x7F0E0041 - public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131624001; + // aapt resource value: 0x7f0b0016 + public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131427350; - // aapt resource value: 0x7F0E0042 - public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131624002; + // aapt resource value: 0x7f0b0002 + public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131427330; - // aapt resource value: 0x7F0E0044 - public const int Base_Theme_AppCompat_Light = 2131624004; + // aapt resource value: 0x7f0b00b1 + public const int Base_ThemeOverlay_AppCompat = 2131427505; - // aapt resource value: 0x7F0E0045 - public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131624005; + // aapt resource value: 0x7f0b00b2 + public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131427506; - // aapt resource value: 0x7F0E0046 - public const int Base_Theme_AppCompat_Light_Dialog = 2131624006; + // aapt resource value: 0x7f0b00b3 + public const int Base_ThemeOverlay_AppCompat_Dark = 2131427507; - // aapt resource value: 0x7F0E004A - public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131624010; + // aapt resource value: 0x7f0b00b4 + public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131427508; - // aapt resource value: 0x7F0E0047 - public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131624007; + // aapt resource value: 0x7f0b0017 + public const int Base_ThemeOverlay_AppCompat_Dialog = 2131427351; - // aapt resource value: 0x7F0E0048 - public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131624008; + // aapt resource value: 0x7f0b0018 + public const int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131427352; - // aapt resource value: 0x7F0E0049 - public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131624009; + // aapt resource value: 0x7f0b00b5 + public const int Base_ThemeOverlay_AppCompat_Light = 2131427509; - // aapt resource value: 0x7F0E0054 - public const int Base_V11_ThemeOverlay_AppCompat_Dialog = 2131624020; + // aapt resource value: 0x7f0b0019 + public const int Base_V11_Theme_AppCompat_Dialog = 2131427353; - // aapt resource value: 0x7F0E0052 - public const int Base_V11_Theme_AppCompat_Dialog = 2131624018; + // aapt resource value: 0x7f0b001a + public const int Base_V11_Theme_AppCompat_Light_Dialog = 2131427354; - // aapt resource value: 0x7F0E0053 - public const int Base_V11_Theme_AppCompat_Light_Dialog = 2131624019; + // aapt resource value: 0x7f0b001b + public const int Base_V11_ThemeOverlay_AppCompat_Dialog = 2131427355; - // aapt resource value: 0x7F0E0055 - public const int Base_V12_Widget_AppCompat_AutoCompleteTextView = 2131624021; + // aapt resource value: 0x7f0b0023 + public const int Base_V12_Widget_AppCompat_AutoCompleteTextView = 2131427363; - // aapt resource value: 0x7F0E0056 - public const int Base_V12_Widget_AppCompat_EditText = 2131624022; + // aapt resource value: 0x7f0b0024 + public const int Base_V12_Widget_AppCompat_EditText = 2131427364; - // aapt resource value: 0x7F0E0057 - public const int Base_V14_Widget_Design_AppBarLayout = 2131624023; + // aapt resource value: 0x7f0b016a + public const int Base_V14_Widget_Design_AppBarLayout = 2131427690; - // aapt resource value: 0x7F0E005C - public const int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131624028; + // aapt resource value: 0x7f0b005c + public const int Base_V21_Theme_AppCompat = 2131427420; - // aapt resource value: 0x7F0E0058 - public const int Base_V21_Theme_AppCompat = 2131624024; + // aapt resource value: 0x7f0b005d + public const int Base_V21_Theme_AppCompat_Dialog = 2131427421; - // aapt resource value: 0x7F0E0059 - public const int Base_V21_Theme_AppCompat_Dialog = 2131624025; + // aapt resource value: 0x7f0b005e + public const int Base_V21_Theme_AppCompat_Light = 2131427422; - // aapt resource value: 0x7F0E005A - public const int Base_V21_Theme_AppCompat_Light = 2131624026; + // aapt resource value: 0x7f0b005f + public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131427423; - // aapt resource value: 0x7F0E005B - public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131624027; + // aapt resource value: 0x7f0b0060 + public const int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131427424; - // aapt resource value: 0x7F0E005D - public const int Base_V21_Widget_Design_AppBarLayout = 2131624029; + // aapt resource value: 0x7f0b0166 + public const int Base_V21_Widget_Design_AppBarLayout = 2131427686; - // aapt resource value: 0x7F0E005E - public const int Base_V22_Theme_AppCompat = 2131624030; + // aapt resource value: 0x7f0b008c + public const int Base_V22_Theme_AppCompat = 2131427468; - // aapt resource value: 0x7F0E005F - public const int Base_V22_Theme_AppCompat_Light = 2131624031; + // aapt resource value: 0x7f0b008d + public const int Base_V22_Theme_AppCompat_Light = 2131427469; - // aapt resource value: 0x7F0E0060 - public const int Base_V23_Theme_AppCompat = 2131624032; + // aapt resource value: 0x7f0b0090 + public const int Base_V23_Theme_AppCompat = 2131427472; - // aapt resource value: 0x7F0E0061 - public const int Base_V23_Theme_AppCompat_Light = 2131624033; + // aapt resource value: 0x7f0b0091 + public const int Base_V23_Theme_AppCompat_Light = 2131427473; - // aapt resource value: 0x7F0E0062 - public const int Base_V26_Theme_AppCompat = 2131624034; + // aapt resource value: 0x7f0b0099 + public const int Base_V26_Theme_AppCompat = 2131427481; - // aapt resource value: 0x7F0E0063 - public const int Base_V26_Theme_AppCompat_Light = 2131624035; + // aapt resource value: 0x7f0b009a + public const int Base_V26_Theme_AppCompat_Light = 2131427482; - // aapt resource value: 0x7F0E0064 - public const int Base_V26_Widget_AppCompat_Toolbar = 2131624036; + // aapt resource value: 0x7f0b009b + public const int Base_V26_Widget_AppCompat_Toolbar = 2131427483; - // aapt resource value: 0x7F0E0065 - public const int Base_V26_Widget_Design_AppBarLayout = 2131624037; + // aapt resource value: 0x7f0b0168 + public const int Base_V26_Widget_Design_AppBarLayout = 2131427688; - // aapt resource value: 0x7F0E006A - public const int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131624042; + // aapt resource value: 0x7f0b00b6 + public const int Base_V7_Theme_AppCompat = 2131427510; - // aapt resource value: 0x7F0E0066 - public const int Base_V7_Theme_AppCompat = 2131624038; + // aapt resource value: 0x7f0b00b7 + public const int Base_V7_Theme_AppCompat_Dialog = 2131427511; - // aapt resource value: 0x7F0E0067 - public const int Base_V7_Theme_AppCompat_Dialog = 2131624039; + // aapt resource value: 0x7f0b00b8 + public const int Base_V7_Theme_AppCompat_Light = 2131427512; - // aapt resource value: 0x7F0E0068 - public const int Base_V7_Theme_AppCompat_Light = 2131624040; + // aapt resource value: 0x7f0b00b9 + public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131427513; - // aapt resource value: 0x7F0E0069 - public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131624041; + // aapt resource value: 0x7f0b00ba + public const int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131427514; - // aapt resource value: 0x7F0E006B - public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131624043; + // aapt resource value: 0x7f0b00bb + public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131427515; - // aapt resource value: 0x7F0E006C - public const int Base_V7_Widget_AppCompat_EditText = 2131624044; + // aapt resource value: 0x7f0b00bc + public const int Base_V7_Widget_AppCompat_EditText = 2131427516; - // aapt resource value: 0x7F0E006D - public const int Base_V7_Widget_AppCompat_Toolbar = 2131624045; + // aapt resource value: 0x7f0b00bd + public const int Base_V7_Widget_AppCompat_Toolbar = 2131427517; - // aapt resource value: 0x7F0E006E - public const int Base_Widget_AppCompat_ActionBar = 2131624046; + // aapt resource value: 0x7f0b00be + public const int Base_Widget_AppCompat_ActionBar = 2131427518; - // aapt resource value: 0x7F0E006F - public const int Base_Widget_AppCompat_ActionBar_Solid = 2131624047; + // aapt resource value: 0x7f0b00bf + public const int Base_Widget_AppCompat_ActionBar_Solid = 2131427519; - // aapt resource value: 0x7F0E0070 - public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131624048; + // aapt resource value: 0x7f0b00c0 + public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131427520; - // aapt resource value: 0x7F0E0071 - public const int Base_Widget_AppCompat_ActionBar_TabText = 2131624049; + // aapt resource value: 0x7f0b0061 + public const int Base_Widget_AppCompat_ActionBar_TabText = 2131427425; - // aapt resource value: 0x7F0E0072 - public const int Base_Widget_AppCompat_ActionBar_TabView = 2131624050; + // aapt resource value: 0x7f0b0062 + public const int Base_Widget_AppCompat_ActionBar_TabView = 2131427426; - // aapt resource value: 0x7F0E0073 - public const int Base_Widget_AppCompat_ActionButton = 2131624051; + // aapt resource value: 0x7f0b0063 + public const int Base_Widget_AppCompat_ActionButton = 2131427427; - // aapt resource value: 0x7F0E0074 - public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131624052; + // aapt resource value: 0x7f0b0064 + public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131427428; - // aapt resource value: 0x7F0E0075 - public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131624053; + // aapt resource value: 0x7f0b0065 + public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131427429; - // aapt resource value: 0x7F0E0076 - public const int Base_Widget_AppCompat_ActionMode = 2131624054; + // aapt resource value: 0x7f0b00c1 + public const int Base_Widget_AppCompat_ActionMode = 2131427521; - // aapt resource value: 0x7F0E0077 - public const int Base_Widget_AppCompat_ActivityChooserView = 2131624055; + // aapt resource value: 0x7f0b00c2 + public const int Base_Widget_AppCompat_ActivityChooserView = 2131427522; - // aapt resource value: 0x7F0E0078 - public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131624056; + // aapt resource value: 0x7f0b0025 + public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131427365; - // aapt resource value: 0x7F0E0079 - public const int Base_Widget_AppCompat_Button = 2131624057; + // aapt resource value: 0x7f0b0066 + public const int Base_Widget_AppCompat_Button = 2131427430; - // aapt resource value: 0x7F0E007F - public const int Base_Widget_AppCompat_ButtonBar = 2131624063; + // aapt resource value: 0x7f0b0067 + public const int Base_Widget_AppCompat_Button_Borderless = 2131427431; - // aapt resource value: 0x7F0E0080 - public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131624064; + // aapt resource value: 0x7f0b0068 + public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131427432; - // aapt resource value: 0x7F0E007A - public const int Base_Widget_AppCompat_Button_Borderless = 2131624058; + // aapt resource value: 0x7f0b00c3 + public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131427523; - // aapt resource value: 0x7F0E007B - public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131624059; + // aapt resource value: 0x7f0b0092 + public const int Base_Widget_AppCompat_Button_Colored = 2131427474; - // aapt resource value: 0x7F0E007C - public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131624060; + // aapt resource value: 0x7f0b0069 + public const int Base_Widget_AppCompat_Button_Small = 2131427433; - // aapt resource value: 0x7F0E007D - public const int Base_Widget_AppCompat_Button_Colored = 2131624061; + // aapt resource value: 0x7f0b006a + public const int Base_Widget_AppCompat_ButtonBar = 2131427434; - // aapt resource value: 0x7F0E007E - public const int Base_Widget_AppCompat_Button_Small = 2131624062; + // aapt resource value: 0x7f0b00c4 + public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131427524; - // aapt resource value: 0x7F0E0081 - public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131624065; + // aapt resource value: 0x7f0b006b + public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131427435; - // aapt resource value: 0x7F0E0082 - public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131624066; + // aapt resource value: 0x7f0b006c + public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131427436; - // aapt resource value: 0x7F0E0083 - public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131624067; + // aapt resource value: 0x7f0b00c5 + public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131427525; - // aapt resource value: 0x7F0E0084 - public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131624068; + // aapt resource value: 0x7f0b0000 + public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131427328; - // aapt resource value: 0x7F0E0085 - public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131624069; + // aapt resource value: 0x7f0b00c6 + public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131427526; - // aapt resource value: 0x7F0E0086 - public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131624070; + // aapt resource value: 0x7f0b006d + public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131427437; - // aapt resource value: 0x7F0E0087 - public const int Base_Widget_AppCompat_EditText = 2131624071; + // aapt resource value: 0x7f0b0026 + public const int Base_Widget_AppCompat_EditText = 2131427366; - // aapt resource value: 0x7F0E0088 - public const int Base_Widget_AppCompat_ImageButton = 2131624072; + // aapt resource value: 0x7f0b006e + public const int Base_Widget_AppCompat_ImageButton = 2131427438; - // aapt resource value: 0x7F0E0089 - public const int Base_Widget_AppCompat_Light_ActionBar = 2131624073; + // aapt resource value: 0x7f0b00c7 + public const int Base_Widget_AppCompat_Light_ActionBar = 2131427527; - // aapt resource value: 0x7F0E008A - public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131624074; + // aapt resource value: 0x7f0b00c8 + public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131427528; - // aapt resource value: 0x7F0E008B - public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131624075; + // aapt resource value: 0x7f0b00c9 + public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131427529; - // aapt resource value: 0x7F0E008C - public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131624076; + // aapt resource value: 0x7f0b006f + public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131427439; - // aapt resource value: 0x7F0E008D - public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131624077; + // aapt resource value: 0x7f0b0070 + public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131427440; - // aapt resource value: 0x7F0E008E - public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131624078; + // aapt resource value: 0x7f0b0071 + public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131427441; - // aapt resource value: 0x7F0E008F - public const int Base_Widget_AppCompat_Light_PopupMenu = 2131624079; + // aapt resource value: 0x7f0b0072 + public const int Base_Widget_AppCompat_Light_PopupMenu = 2131427442; - // aapt resource value: 0x7F0E0090 - public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131624080; + // aapt resource value: 0x7f0b0073 + public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131427443; - // aapt resource value: 0x7F0E0091 - public const int Base_Widget_AppCompat_ListMenuView = 2131624081; + // aapt resource value: 0x7f0b00ca + public const int Base_Widget_AppCompat_ListMenuView = 2131427530; - // aapt resource value: 0x7F0E0092 - public const int Base_Widget_AppCompat_ListPopupWindow = 2131624082; + // aapt resource value: 0x7f0b0074 + public const int Base_Widget_AppCompat_ListPopupWindow = 2131427444; - // aapt resource value: 0x7F0E0093 - public const int Base_Widget_AppCompat_ListView = 2131624083; + // aapt resource value: 0x7f0b0075 + public const int Base_Widget_AppCompat_ListView = 2131427445; - // aapt resource value: 0x7F0E0094 - public const int Base_Widget_AppCompat_ListView_DropDown = 2131624084; + // aapt resource value: 0x7f0b0076 + public const int Base_Widget_AppCompat_ListView_DropDown = 2131427446; - // aapt resource value: 0x7F0E0095 - public const int Base_Widget_AppCompat_ListView_Menu = 2131624085; + // aapt resource value: 0x7f0b0077 + public const int Base_Widget_AppCompat_ListView_Menu = 2131427447; - // aapt resource value: 0x7F0E0096 - public const int Base_Widget_AppCompat_PopupMenu = 2131624086; + // aapt resource value: 0x7f0b0078 + public const int Base_Widget_AppCompat_PopupMenu = 2131427448; - // aapt resource value: 0x7F0E0097 - public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131624087; + // aapt resource value: 0x7f0b0079 + public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131427449; - // aapt resource value: 0x7F0E0098 - public const int Base_Widget_AppCompat_PopupWindow = 2131624088; + // aapt resource value: 0x7f0b00cb + public const int Base_Widget_AppCompat_PopupWindow = 2131427531; - // aapt resource value: 0x7F0E0099 - public const int Base_Widget_AppCompat_ProgressBar = 2131624089; + // aapt resource value: 0x7f0b001c + public const int Base_Widget_AppCompat_ProgressBar = 2131427356; - // aapt resource value: 0x7F0E009A - public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131624090; + // aapt resource value: 0x7f0b001d + public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131427357; - // aapt resource value: 0x7F0E009B - public const int Base_Widget_AppCompat_RatingBar = 2131624091; + // aapt resource value: 0x7f0b007a + public const int Base_Widget_AppCompat_RatingBar = 2131427450; - // aapt resource value: 0x7F0E009C - public const int Base_Widget_AppCompat_RatingBar_Indicator = 2131624092; + // aapt resource value: 0x7f0b0093 + public const int Base_Widget_AppCompat_RatingBar_Indicator = 2131427475; - // aapt resource value: 0x7F0E009D - public const int Base_Widget_AppCompat_RatingBar_Small = 2131624093; + // aapt resource value: 0x7f0b0094 + public const int Base_Widget_AppCompat_RatingBar_Small = 2131427476; - // aapt resource value: 0x7F0E009E - public const int Base_Widget_AppCompat_SearchView = 2131624094; + // aapt resource value: 0x7f0b00cc + public const int Base_Widget_AppCompat_SearchView = 2131427532; - // aapt resource value: 0x7F0E009F - public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131624095; + // aapt resource value: 0x7f0b00cd + public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131427533; - // aapt resource value: 0x7F0E00A0 - public const int Base_Widget_AppCompat_SeekBar = 2131624096; + // aapt resource value: 0x7f0b007b + public const int Base_Widget_AppCompat_SeekBar = 2131427451; - // aapt resource value: 0x7F0E00A1 - public const int Base_Widget_AppCompat_SeekBar_Discrete = 2131624097; + // aapt resource value: 0x7f0b00ce + public const int Base_Widget_AppCompat_SeekBar_Discrete = 2131427534; - // aapt resource value: 0x7F0E00A2 - public const int Base_Widget_AppCompat_Spinner = 2131624098; + // aapt resource value: 0x7f0b007c + public const int Base_Widget_AppCompat_Spinner = 2131427452; - // aapt resource value: 0x7F0E00A3 - public const int Base_Widget_AppCompat_Spinner_Underlined = 2131624099; + // aapt resource value: 0x7f0b0003 + public const int Base_Widget_AppCompat_Spinner_Underlined = 2131427331; - // aapt resource value: 0x7F0E00A4 - public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131624100; + // aapt resource value: 0x7f0b007d + public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131427453; - // aapt resource value: 0x7F0E00A5 - public const int Base_Widget_AppCompat_Toolbar = 2131624101; + // aapt resource value: 0x7f0b009c + public const int Base_Widget_AppCompat_Toolbar = 2131427484; - // aapt resource value: 0x7F0E00A6 - public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131624102; + // aapt resource value: 0x7f0b007e + public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131427454; - // aapt resource value: 0x7F0E00A7 - public const int Base_Widget_Design_AppBarLayout = 2131624103; + // aapt resource value: 0x7f0b0167 + public const int Base_Widget_Design_AppBarLayout = 2131427687; - // aapt resource value: 0x7F0E00A8 - public const int Base_Widget_Design_TabLayout = 2131624104; + // aapt resource value: 0x7f0b016b + public const int Base_Widget_Design_TabLayout = 2131427691; - // aapt resource value: 0x7F0E00A9 - public const int BottomSheetDialogAnimation = 2131624105; + // aapt resource value: 0x7f0b018a + public const int BottomSheetDialogAnimation = 2131427722; - // aapt resource value: 0x7F0E018D - public const int custom_dialog2 = 2131624333; + // aapt resource value: 0x7f0b018f + public const int MyTheme = 2131427727; - // aapt resource value: 0x7F0E00AA - public const int MyTheme = 2131624106; + // aapt resource value: 0x7f0b001e + public const int Platform_AppCompat = 2131427358; - // aapt resource value: 0x7F0E018E - public const int picker_view_scale_anim = 2131624334; + // aapt resource value: 0x7f0b001f + public const int Platform_AppCompat_Light = 2131427359; - // aapt resource value: 0x7F0E018F - public const int picker_view_slide_anim = 2131624335; + // aapt resource value: 0x7f0b007f + public const int Platform_ThemeOverlay_AppCompat = 2131427455; - // aapt resource value: 0x7F0E00AB - public const int Platform_AppCompat = 2131624107; + // aapt resource value: 0x7f0b0080 + public const int Platform_ThemeOverlay_AppCompat_Dark = 2131427456; - // aapt resource value: 0x7F0E00AC - public const int Platform_AppCompat_Light = 2131624108; + // aapt resource value: 0x7f0b0081 + public const int Platform_ThemeOverlay_AppCompat_Light = 2131427457; - // aapt resource value: 0x7F0E00AD - public const int Platform_ThemeOverlay_AppCompat = 2131624109; + // aapt resource value: 0x7f0b0020 + public const int Platform_V11_AppCompat = 2131427360; - // aapt resource value: 0x7F0E00AE - public const int Platform_ThemeOverlay_AppCompat_Dark = 2131624110; + // aapt resource value: 0x7f0b0021 + public const int Platform_V11_AppCompat_Light = 2131427361; - // aapt resource value: 0x7F0E00AF - public const int Platform_ThemeOverlay_AppCompat_Light = 2131624111; + // aapt resource value: 0x7f0b0028 + public const int Platform_V14_AppCompat = 2131427368; - // aapt resource value: 0x7F0E00B0 - public const int Platform_V11_AppCompat = 2131624112; + // aapt resource value: 0x7f0b0029 + public const int Platform_V14_AppCompat_Light = 2131427369; - // aapt resource value: 0x7F0E00B1 - public const int Platform_V11_AppCompat_Light = 2131624113; + // aapt resource value: 0x7f0b0082 + public const int Platform_V21_AppCompat = 2131427458; - // aapt resource value: 0x7F0E00B2 - public const int Platform_V14_AppCompat = 2131624114; + // aapt resource value: 0x7f0b0083 + public const int Platform_V21_AppCompat_Light = 2131427459; - // aapt resource value: 0x7F0E00B3 - public const int Platform_V14_AppCompat_Light = 2131624115; + // aapt resource value: 0x7f0b0097 + public const int Platform_V25_AppCompat = 2131427479; - // aapt resource value: 0x7F0E00B4 - public const int Platform_V21_AppCompat = 2131624116; + // aapt resource value: 0x7f0b0098 + public const int Platform_V25_AppCompat_Light = 2131427480; - // aapt resource value: 0x7F0E00B5 - public const int Platform_V21_AppCompat_Light = 2131624117; + // aapt resource value: 0x7f0b0022 + public const int Platform_Widget_AppCompat_Spinner = 2131427362; - // aapt resource value: 0x7F0E00B6 - public const int Platform_V25_AppCompat = 2131624118; + // aapt resource value: 0x7f0b002b + public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131427371; - // aapt resource value: 0x7F0E00B7 - public const int Platform_V25_AppCompat_Light = 2131624119; + // aapt resource value: 0x7f0b002c + public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131427372; - // aapt resource value: 0x7F0E00B8 - public const int Platform_Widget_AppCompat_Spinner = 2131624120; + // aapt resource value: 0x7f0b002d + public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131427373; - // aapt resource value: 0x7F0E00B9 - public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131624121; + // aapt resource value: 0x7f0b002e + public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131427374; - // aapt resource value: 0x7F0E00BA - public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131624122; + // aapt resource value: 0x7f0b002f + public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131427375; - // aapt resource value: 0x7F0E00BB - public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131624123; + // aapt resource value: 0x7f0b0030 + public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131427376; - // aapt resource value: 0x7F0E00BC - public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131624124; + // aapt resource value: 0x7f0b0031 + public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131427377; - // aapt resource value: 0x7F0E00BD - public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131624125; + // aapt resource value: 0x7f0b0032 + public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131427378; - // aapt resource value: 0x7F0E00BE - public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131624126; + // aapt resource value: 0x7f0b0033 + public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131427379; - // aapt resource value: 0x7F0E00C4 - public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131624132; + // aapt resource value: 0x7f0b0034 + public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131427380; - // aapt resource value: 0x7F0E00BF - public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131624127; + // aapt resource value: 0x7f0b0035 + public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131427381; - // aapt resource value: 0x7F0E00C0 - public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131624128; + // aapt resource value: 0x7f0b0036 + public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131427382; - // aapt resource value: 0x7F0E00C1 - public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131624129; + // aapt resource value: 0x7f0b0037 + public const int RtlUnderlay_Widget_AppCompat_ActionButton = 2131427383; - // aapt resource value: 0x7F0E00C2 - public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131624130; + // aapt resource value: 0x7f0b0038 + public const int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131427384; - // aapt resource value: 0x7F0E00C3 - public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131624131; + // aapt resource value: 0x7f0b00cf + public const int TextAppearance_AppCompat = 2131427535; - // aapt resource value: 0x7F0E00C5 - public const int RtlUnderlay_Widget_AppCompat_ActionButton = 2131624133; + // aapt resource value: 0x7f0b00d0 + public const int TextAppearance_AppCompat_Body1 = 2131427536; - // aapt resource value: 0x7F0E00C6 - public const int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131624134; + // aapt resource value: 0x7f0b00d1 + public const int TextAppearance_AppCompat_Body2 = 2131427537; - // aapt resource value: 0x7F0E00C7 - public const int TextAppearance_AppCompat = 2131624135; + // aapt resource value: 0x7f0b00d2 + public const int TextAppearance_AppCompat_Button = 2131427538; - // aapt resource value: 0x7F0E00C8 - public const int TextAppearance_AppCompat_Body1 = 2131624136; + // aapt resource value: 0x7f0b00d3 + public const int TextAppearance_AppCompat_Caption = 2131427539; - // aapt resource value: 0x7F0E00C9 - public const int TextAppearance_AppCompat_Body2 = 2131624137; + // aapt resource value: 0x7f0b00d4 + public const int TextAppearance_AppCompat_Display1 = 2131427540; - // aapt resource value: 0x7F0E00CA - public const int TextAppearance_AppCompat_Button = 2131624138; + // aapt resource value: 0x7f0b00d5 + public const int TextAppearance_AppCompat_Display2 = 2131427541; - // aapt resource value: 0x7F0E00CB - public const int TextAppearance_AppCompat_Caption = 2131624139; + // aapt resource value: 0x7f0b00d6 + public const int TextAppearance_AppCompat_Display3 = 2131427542; - // aapt resource value: 0x7F0E00CC - public const int TextAppearance_AppCompat_Display1 = 2131624140; + // aapt resource value: 0x7f0b00d7 + public const int TextAppearance_AppCompat_Display4 = 2131427543; - // aapt resource value: 0x7F0E00CD - public const int TextAppearance_AppCompat_Display2 = 2131624141; + // aapt resource value: 0x7f0b00d8 + public const int TextAppearance_AppCompat_Headline = 2131427544; - // aapt resource value: 0x7F0E00CE - public const int TextAppearance_AppCompat_Display3 = 2131624142; + // aapt resource value: 0x7f0b00d9 + public const int TextAppearance_AppCompat_Inverse = 2131427545; - // aapt resource value: 0x7F0E00CF - public const int TextAppearance_AppCompat_Display4 = 2131624143; + // aapt resource value: 0x7f0b00da + public const int TextAppearance_AppCompat_Large = 2131427546; - // aapt resource value: 0x7F0E00D0 - public const int TextAppearance_AppCompat_Headline = 2131624144; + // aapt resource value: 0x7f0b00db + public const int TextAppearance_AppCompat_Large_Inverse = 2131427547; - // aapt resource value: 0x7F0E00D1 - public const int TextAppearance_AppCompat_Inverse = 2131624145; + // aapt resource value: 0x7f0b00dc + public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131427548; - // aapt resource value: 0x7F0E00D2 - public const int TextAppearance_AppCompat_Large = 2131624146; + // aapt resource value: 0x7f0b00dd + public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131427549; - // aapt resource value: 0x7F0E00D3 - public const int TextAppearance_AppCompat_Large_Inverse = 2131624147; + // aapt resource value: 0x7f0b00de + public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131427550; - // aapt resource value: 0x7F0E00D4 - public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131624148; + // aapt resource value: 0x7f0b00df + public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131427551; - // aapt resource value: 0x7F0E00D5 - public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131624149; + // aapt resource value: 0x7f0b00e0 + public const int TextAppearance_AppCompat_Medium = 2131427552; - // aapt resource value: 0x7F0E00D6 - public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131624150; + // aapt resource value: 0x7f0b00e1 + public const int TextAppearance_AppCompat_Medium_Inverse = 2131427553; - // aapt resource value: 0x7F0E00D7 - public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131624151; + // aapt resource value: 0x7f0b00e2 + public const int TextAppearance_AppCompat_Menu = 2131427554; - // aapt resource value: 0x7F0E00D8 - public const int TextAppearance_AppCompat_Medium = 2131624152; + // aapt resource value: 0x7f0b0084 + public const int TextAppearance_AppCompat_Notification = 2131427460; - // aapt resource value: 0x7F0E00D9 - public const int TextAppearance_AppCompat_Medium_Inverse = 2131624153; + // aapt resource value: 0x7f0b0085 + public const int TextAppearance_AppCompat_Notification_Info = 2131427461; - // aapt resource value: 0x7F0E00DA - public const int TextAppearance_AppCompat_Menu = 2131624154; + // aapt resource value: 0x7f0b0086 + public const int TextAppearance_AppCompat_Notification_Info_Media = 2131427462; - // aapt resource value: 0x7F0E00DB - public const int TextAppearance_AppCompat_Notification = 2131624155; + // aapt resource value: 0x7f0b00e3 + public const int TextAppearance_AppCompat_Notification_Line2 = 2131427555; - // aapt resource value: 0x7F0E00DC - public const int TextAppearance_AppCompat_Notification_Info = 2131624156; + // aapt resource value: 0x7f0b00e4 + public const int TextAppearance_AppCompat_Notification_Line2_Media = 2131427556; - // aapt resource value: 0x7F0E00DD - public const int TextAppearance_AppCompat_Notification_Info_Media = 2131624157; + // aapt resource value: 0x7f0b0087 + public const int TextAppearance_AppCompat_Notification_Media = 2131427463; - // aapt resource value: 0x7F0E00DE - public const int TextAppearance_AppCompat_Notification_Line2 = 2131624158; + // aapt resource value: 0x7f0b0088 + public const int TextAppearance_AppCompat_Notification_Time = 2131427464; - // aapt resource value: 0x7F0E00DF - public const int TextAppearance_AppCompat_Notification_Line2_Media = 2131624159; + // aapt resource value: 0x7f0b0089 + public const int TextAppearance_AppCompat_Notification_Time_Media = 2131427465; - // aapt resource value: 0x7F0E00E0 - public const int TextAppearance_AppCompat_Notification_Media = 2131624160; + // aapt resource value: 0x7f0b008a + public const int TextAppearance_AppCompat_Notification_Title = 2131427466; - // aapt resource value: 0x7F0E00E1 - public const int TextAppearance_AppCompat_Notification_Time = 2131624161; + // aapt resource value: 0x7f0b008b + public const int TextAppearance_AppCompat_Notification_Title_Media = 2131427467; - // aapt resource value: 0x7F0E00E2 - public const int TextAppearance_AppCompat_Notification_Time_Media = 2131624162; + // aapt resource value: 0x7f0b00e5 + public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131427557; - // aapt resource value: 0x7F0E00E3 - public const int TextAppearance_AppCompat_Notification_Title = 2131624163; + // aapt resource value: 0x7f0b00e6 + public const int TextAppearance_AppCompat_SearchResult_Title = 2131427558; - // aapt resource value: 0x7F0E00E4 - public const int TextAppearance_AppCompat_Notification_Title_Media = 2131624164; + // aapt resource value: 0x7f0b00e7 + public const int TextAppearance_AppCompat_Small = 2131427559; - // aapt resource value: 0x7F0E00E5 - public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131624165; + // aapt resource value: 0x7f0b00e8 + public const int TextAppearance_AppCompat_Small_Inverse = 2131427560; - // aapt resource value: 0x7F0E00E6 - public const int TextAppearance_AppCompat_SearchResult_Title = 2131624166; + // aapt resource value: 0x7f0b00e9 + public const int TextAppearance_AppCompat_Subhead = 2131427561; - // aapt resource value: 0x7F0E00E7 - public const int TextAppearance_AppCompat_Small = 2131624167; + // aapt resource value: 0x7f0b00ea + public const int TextAppearance_AppCompat_Subhead_Inverse = 2131427562; - // aapt resource value: 0x7F0E00E8 - public const int TextAppearance_AppCompat_Small_Inverse = 2131624168; + // aapt resource value: 0x7f0b00eb + public const int TextAppearance_AppCompat_Title = 2131427563; - // aapt resource value: 0x7F0E00E9 - public const int TextAppearance_AppCompat_Subhead = 2131624169; + // aapt resource value: 0x7f0b00ec + public const int TextAppearance_AppCompat_Title_Inverse = 2131427564; - // aapt resource value: 0x7F0E00EA - public const int TextAppearance_AppCompat_Subhead_Inverse = 2131624170; + // aapt resource value: 0x7f0b002a + public const int TextAppearance_AppCompat_Tooltip = 2131427370; - // aapt resource value: 0x7F0E00EB - public const int TextAppearance_AppCompat_Title = 2131624171; + // aapt resource value: 0x7f0b00ed + public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131427565; - // aapt resource value: 0x7F0E00EC - public const int TextAppearance_AppCompat_Title_Inverse = 2131624172; + // aapt resource value: 0x7f0b00ee + public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131427566; - // aapt resource value: 0x7F0E00ED - public const int TextAppearance_AppCompat_Tooltip = 2131624173; + // aapt resource value: 0x7f0b00ef + public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131427567; - // aapt resource value: 0x7F0E00EE - public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131624174; + // aapt resource value: 0x7f0b00f0 + public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131427568; - // aapt resource value: 0x7F0E00EF - public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131624175; + // aapt resource value: 0x7f0b00f1 + public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131427569; - // aapt resource value: 0x7F0E00F0 - public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131624176; + // aapt resource value: 0x7f0b00f2 + public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131427570; - // aapt resource value: 0x7F0E00F1 - public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131624177; + // aapt resource value: 0x7f0b00f3 + public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131427571; - // aapt resource value: 0x7F0E00F2 - public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131624178; + // aapt resource value: 0x7f0b00f4 + public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131427572; - // aapt resource value: 0x7F0E00F3 - public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131624179; + // aapt resource value: 0x7f0b00f5 + public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131427573; - // aapt resource value: 0x7F0E00F4 - public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131624180; + // aapt resource value: 0x7f0b00f6 + public const int TextAppearance_AppCompat_Widget_Button = 2131427574; - // aapt resource value: 0x7F0E00F5 - public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131624181; + // aapt resource value: 0x7f0b00f7 + public const int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131427575; - // aapt resource value: 0x7F0E00F6 - public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131624182; + // aapt resource value: 0x7f0b00f8 + public const int TextAppearance_AppCompat_Widget_Button_Colored = 2131427576; - // aapt resource value: 0x7F0E00F7 - public const int TextAppearance_AppCompat_Widget_Button = 2131624183; + // aapt resource value: 0x7f0b00f9 + public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131427577; - // aapt resource value: 0x7F0E00F8 - public const int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131624184; + // aapt resource value: 0x7f0b00fa + public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131427578; - // aapt resource value: 0x7F0E00F9 - public const int TextAppearance_AppCompat_Widget_Button_Colored = 2131624185; + // aapt resource value: 0x7f0b00fb + public const int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131427579; - // aapt resource value: 0x7F0E00FA - public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131624186; + // aapt resource value: 0x7f0b00fc + public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131427580; - // aapt resource value: 0x7F0E00FB - public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131624187; + // aapt resource value: 0x7f0b00fd + public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131427581; - // aapt resource value: 0x7F0E00FC - public const int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131624188; + // aapt resource value: 0x7f0b00fe + public const int TextAppearance_AppCompat_Widget_Switch = 2131427582; - // aapt resource value: 0x7F0E00FD - public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131624189; + // aapt resource value: 0x7f0b00ff + public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131427583; - // aapt resource value: 0x7F0E00FE - public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131624190; + // aapt resource value: 0x7f0b0183 + public const int TextAppearance_Compat_Notification = 2131427715; - // aapt resource value: 0x7F0E00FF - public const int TextAppearance_AppCompat_Widget_Switch = 2131624191; + // aapt resource value: 0x7f0b0184 + public const int TextAppearance_Compat_Notification_Info = 2131427716; - // aapt resource value: 0x7F0E0100 - public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131624192; + // aapt resource value: 0x7f0b0160 + public const int TextAppearance_Compat_Notification_Info_Media = 2131427680; - // aapt resource value: 0x7F0E0101 - public const int TextAppearance_Compat_Notification = 2131624193; + // aapt resource value: 0x7f0b0189 + public const int TextAppearance_Compat_Notification_Line2 = 2131427721; - // aapt resource value: 0x7F0E0102 - public const int TextAppearance_Compat_Notification_Info = 2131624194; + // aapt resource value: 0x7f0b0164 + public const int TextAppearance_Compat_Notification_Line2_Media = 2131427684; - // aapt resource value: 0x7F0E0103 - public const int TextAppearance_Compat_Notification_Info_Media = 2131624195; + // aapt resource value: 0x7f0b0161 + public const int TextAppearance_Compat_Notification_Media = 2131427681; - // aapt resource value: 0x7F0E0104 - public const int TextAppearance_Compat_Notification_Line2 = 2131624196; + // aapt resource value: 0x7f0b0185 + public const int TextAppearance_Compat_Notification_Time = 2131427717; - // aapt resource value: 0x7F0E0105 - public const int TextAppearance_Compat_Notification_Line2_Media = 2131624197; + // aapt resource value: 0x7f0b0162 + public const int TextAppearance_Compat_Notification_Time_Media = 2131427682; - // aapt resource value: 0x7F0E0106 - public const int TextAppearance_Compat_Notification_Media = 2131624198; + // aapt resource value: 0x7f0b0186 + public const int TextAppearance_Compat_Notification_Title = 2131427718; - // aapt resource value: 0x7F0E0107 - public const int TextAppearance_Compat_Notification_Time = 2131624199; + // aapt resource value: 0x7f0b0163 + public const int TextAppearance_Compat_Notification_Title_Media = 2131427683; - // aapt resource value: 0x7F0E0108 - public const int TextAppearance_Compat_Notification_Time_Media = 2131624200; + // aapt resource value: 0x7f0b016c + public const int TextAppearance_Design_CollapsingToolbar_Expanded = 2131427692; - // aapt resource value: 0x7F0E0109 - public const int TextAppearance_Compat_Notification_Title = 2131624201; + // aapt resource value: 0x7f0b016d + public const int TextAppearance_Design_Counter = 2131427693; - // aapt resource value: 0x7F0E010A - public const int TextAppearance_Compat_Notification_Title_Media = 2131624202; + // aapt resource value: 0x7f0b016e + public const int TextAppearance_Design_Counter_Overflow = 2131427694; - // aapt resource value: 0x7F0E010B - public const int TextAppearance_Design_CollapsingToolbar_Expanded = 2131624203; + // aapt resource value: 0x7f0b016f + public const int TextAppearance_Design_Error = 2131427695; - // aapt resource value: 0x7F0E010C - public const int TextAppearance_Design_Counter = 2131624204; + // aapt resource value: 0x7f0b0170 + public const int TextAppearance_Design_Hint = 2131427696; - // aapt resource value: 0x7F0E010D - public const int TextAppearance_Design_Counter_Overflow = 2131624205; + // aapt resource value: 0x7f0b0171 + public const int TextAppearance_Design_Snackbar_Message = 2131427697; - // aapt resource value: 0x7F0E010E - public const int TextAppearance_Design_Error = 2131624206; + // aapt resource value: 0x7f0b0172 + public const int TextAppearance_Design_Tab = 2131427698; - // aapt resource value: 0x7F0E010F - public const int TextAppearance_Design_Hint = 2131624207; + // aapt resource value: 0x7f0b0100 + public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131427584; - // aapt resource value: 0x7F0E0110 - public const int TextAppearance_Design_Snackbar_Message = 2131624208; + // aapt resource value: 0x7f0b0101 + public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131427585; - // aapt resource value: 0x7F0E0111 - public const int TextAppearance_Design_Tab = 2131624209; + // aapt resource value: 0x7f0b0102 + public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131427586; - // aapt resource value: 0x7F0E0112 - public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131624210; + // aapt resource value: 0x7f0b0103 + public const int Theme_AppCompat = 2131427587; - // aapt resource value: 0x7F0E0113 - public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131624211; + // aapt resource value: 0x7f0b0104 + public const int Theme_AppCompat_CompactMenu = 2131427588; - // aapt resource value: 0x7F0E0114 - public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131624212; + // aapt resource value: 0x7f0b0004 + public const int Theme_AppCompat_DayNight = 2131427332; - // aapt resource value: 0x7F0E0131 - public const int ThemeOverlay_AppCompat = 2131624241; + // aapt resource value: 0x7f0b0005 + public const int Theme_AppCompat_DayNight_DarkActionBar = 2131427333; - // aapt resource value: 0x7F0E0132 - public const int ThemeOverlay_AppCompat_ActionBar = 2131624242; + // aapt resource value: 0x7f0b0006 + public const int Theme_AppCompat_DayNight_Dialog = 2131427334; - // aapt resource value: 0x7F0E0133 - public const int ThemeOverlay_AppCompat_Dark = 2131624243; + // aapt resource value: 0x7f0b0007 + public const int Theme_AppCompat_DayNight_Dialog_Alert = 2131427335; - // aapt resource value: 0x7F0E0134 - public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131624244; + // aapt resource value: 0x7f0b0008 + public const int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131427336; - // aapt resource value: 0x7F0E0135 - public const int ThemeOverlay_AppCompat_Dialog = 2131624245; + // aapt resource value: 0x7f0b0009 + public const int Theme_AppCompat_DayNight_DialogWhenLarge = 2131427337; - // aapt resource value: 0x7F0E0136 - public const int ThemeOverlay_AppCompat_Dialog_Alert = 2131624246; + // aapt resource value: 0x7f0b000a + public const int Theme_AppCompat_DayNight_NoActionBar = 2131427338; - // aapt resource value: 0x7F0E0137 - public const int ThemeOverlay_AppCompat_Light = 2131624247; + // aapt resource value: 0x7f0b0105 + public const int Theme_AppCompat_Dialog = 2131427589; - // aapt resource value: 0x7F0E0115 - public const int Theme_AppCompat = 2131624213; + // aapt resource value: 0x7f0b0106 + public const int Theme_AppCompat_Dialog_Alert = 2131427590; - // aapt resource value: 0x7F0E0116 - public const int Theme_AppCompat_CompactMenu = 2131624214; + // aapt resource value: 0x7f0b0107 + public const int Theme_AppCompat_Dialog_MinWidth = 2131427591; - // aapt resource value: 0x7F0E0117 - public const int Theme_AppCompat_DayNight = 2131624215; + // aapt resource value: 0x7f0b0108 + public const int Theme_AppCompat_DialogWhenLarge = 2131427592; - // aapt resource value: 0x7F0E0118 - public const int Theme_AppCompat_DayNight_DarkActionBar = 2131624216; + // aapt resource value: 0x7f0b0109 + public const int Theme_AppCompat_Light = 2131427593; - // aapt resource value: 0x7F0E0119 - public const int Theme_AppCompat_DayNight_Dialog = 2131624217; + // aapt resource value: 0x7f0b010a + public const int Theme_AppCompat_Light_DarkActionBar = 2131427594; - // aapt resource value: 0x7F0E011C - public const int Theme_AppCompat_DayNight_DialogWhenLarge = 2131624220; + // aapt resource value: 0x7f0b010b + public const int Theme_AppCompat_Light_Dialog = 2131427595; - // aapt resource value: 0x7F0E011A - public const int Theme_AppCompat_DayNight_Dialog_Alert = 2131624218; + // aapt resource value: 0x7f0b010c + public const int Theme_AppCompat_Light_Dialog_Alert = 2131427596; - // aapt resource value: 0x7F0E011B - public const int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131624219; + // aapt resource value: 0x7f0b010d + public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131427597; - // aapt resource value: 0x7F0E011D - public const int Theme_AppCompat_DayNight_NoActionBar = 2131624221; + // aapt resource value: 0x7f0b010e + public const int Theme_AppCompat_Light_DialogWhenLarge = 2131427598; - // aapt resource value: 0x7F0E011E - public const int Theme_AppCompat_Dialog = 2131624222; + // aapt resource value: 0x7f0b010f + public const int Theme_AppCompat_Light_NoActionBar = 2131427599; - // aapt resource value: 0x7F0E0121 - public const int Theme_AppCompat_DialogWhenLarge = 2131624225; + // aapt resource value: 0x7f0b0110 + public const int Theme_AppCompat_NoActionBar = 2131427600; - // aapt resource value: 0x7F0E011F - public const int Theme_AppCompat_Dialog_Alert = 2131624223; + // aapt resource value: 0x7f0b018b + public const int Theme_BiometricPromptDialog = 2131427723; - // aapt resource value: 0x7F0E0120 - public const int Theme_AppCompat_Dialog_MinWidth = 2131624224; + // aapt resource value: 0x7f0b0173 + public const int Theme_Design = 2131427699; - // aapt resource value: 0x7F0E0122 - public const int Theme_AppCompat_Light = 2131624226; + // aapt resource value: 0x7f0b0174 + public const int Theme_Design_BottomSheetDialog = 2131427700; - // aapt resource value: 0x7F0E0123 - public const int Theme_AppCompat_Light_DarkActionBar = 2131624227; + // aapt resource value: 0x7f0b0175 + public const int Theme_Design_Light = 2131427701; - // aapt resource value: 0x7F0E0124 - public const int Theme_AppCompat_Light_Dialog = 2131624228; + // aapt resource value: 0x7f0b0176 + public const int Theme_Design_Light_BottomSheetDialog = 2131427702; - // aapt resource value: 0x7F0E0127 - public const int Theme_AppCompat_Light_DialogWhenLarge = 2131624231; + // aapt resource value: 0x7f0b0177 + public const int Theme_Design_Light_NoActionBar = 2131427703; - // aapt resource value: 0x7F0E0125 - public const int Theme_AppCompat_Light_Dialog_Alert = 2131624229; + // aapt resource value: 0x7f0b0178 + public const int Theme_Design_NoActionBar = 2131427704; - // aapt resource value: 0x7F0E0126 - public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131624230; + // aapt resource value: 0x7f0b0111 + public const int ThemeOverlay_AppCompat = 2131427601; - // aapt resource value: 0x7F0E0128 - public const int Theme_AppCompat_Light_NoActionBar = 2131624232; + // aapt resource value: 0x7f0b0112 + public const int ThemeOverlay_AppCompat_ActionBar = 2131427602; - // aapt resource value: 0x7F0E0129 - public const int Theme_AppCompat_NoActionBar = 2131624233; + // aapt resource value: 0x7f0b0113 + public const int ThemeOverlay_AppCompat_Dark = 2131427603; - // aapt resource value: 0x7F0E012A - public const int Theme_BiometricPromptDialog = 2131624234; + // aapt resource value: 0x7f0b0114 + public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131427604; - // aapt resource value: 0x7F0E012B - public const int Theme_Design = 2131624235; + // aapt resource value: 0x7f0b0115 + public const int ThemeOverlay_AppCompat_Dialog = 2131427605; - // aapt resource value: 0x7F0E012C - public const int Theme_Design_BottomSheetDialog = 2131624236; + // aapt resource value: 0x7f0b0116 + public const int ThemeOverlay_AppCompat_Dialog_Alert = 2131427606; - // aapt resource value: 0x7F0E012D - public const int Theme_Design_Light = 2131624237; + // aapt resource value: 0x7f0b0117 + public const int ThemeOverlay_AppCompat_Light = 2131427607; - // aapt resource value: 0x7F0E012E - public const int Theme_Design_Light_BottomSheetDialog = 2131624238; + // aapt resource value: 0x7f0b0118 + public const int Widget_AppCompat_ActionBar = 2131427608; - // aapt resource value: 0x7F0E012F - public const int Theme_Design_Light_NoActionBar = 2131624239; + // aapt resource value: 0x7f0b0119 + public const int Widget_AppCompat_ActionBar_Solid = 2131427609; - // aapt resource value: 0x7F0E0130 - public const int Theme_Design_NoActionBar = 2131624240; + // aapt resource value: 0x7f0b011a + public const int Widget_AppCompat_ActionBar_TabBar = 2131427610; - // aapt resource value: 0x7F0E0138 - public const int Widget_AppCompat_ActionBar = 2131624248; + // aapt resource value: 0x7f0b011b + public const int Widget_AppCompat_ActionBar_TabText = 2131427611; - // aapt resource value: 0x7F0E0139 - public const int Widget_AppCompat_ActionBar_Solid = 2131624249; + // aapt resource value: 0x7f0b011c + public const int Widget_AppCompat_ActionBar_TabView = 2131427612; - // aapt resource value: 0x7F0E013A - public const int Widget_AppCompat_ActionBar_TabBar = 2131624250; + // aapt resource value: 0x7f0b011d + public const int Widget_AppCompat_ActionButton = 2131427613; - // aapt resource value: 0x7F0E013B - public const int Widget_AppCompat_ActionBar_TabText = 2131624251; + // aapt resource value: 0x7f0b011e + public const int Widget_AppCompat_ActionButton_CloseMode = 2131427614; - // aapt resource value: 0x7F0E013C - public const int Widget_AppCompat_ActionBar_TabView = 2131624252; + // aapt resource value: 0x7f0b011f + public const int Widget_AppCompat_ActionButton_Overflow = 2131427615; - // aapt resource value: 0x7F0E013D - public const int Widget_AppCompat_ActionButton = 2131624253; + // aapt resource value: 0x7f0b0120 + public const int Widget_AppCompat_ActionMode = 2131427616; - // aapt resource value: 0x7F0E013E - public const int Widget_AppCompat_ActionButton_CloseMode = 2131624254; + // aapt resource value: 0x7f0b0121 + public const int Widget_AppCompat_ActivityChooserView = 2131427617; - // aapt resource value: 0x7F0E013F - public const int Widget_AppCompat_ActionButton_Overflow = 2131624255; + // aapt resource value: 0x7f0b0122 + public const int Widget_AppCompat_AutoCompleteTextView = 2131427618; - // aapt resource value: 0x7F0E0140 - public const int Widget_AppCompat_ActionMode = 2131624256; + // aapt resource value: 0x7f0b0123 + public const int Widget_AppCompat_Button = 2131427619; - // aapt resource value: 0x7F0E0141 - public const int Widget_AppCompat_ActivityChooserView = 2131624257; + // aapt resource value: 0x7f0b0124 + public const int Widget_AppCompat_Button_Borderless = 2131427620; - // aapt resource value: 0x7F0E0142 - public const int Widget_AppCompat_AutoCompleteTextView = 2131624258; + // aapt resource value: 0x7f0b0125 + public const int Widget_AppCompat_Button_Borderless_Colored = 2131427621; - // aapt resource value: 0x7F0E0143 - public const int Widget_AppCompat_Button = 2131624259; + // aapt resource value: 0x7f0b0126 + public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131427622; - // aapt resource value: 0x7F0E0149 - public const int Widget_AppCompat_ButtonBar = 2131624265; + // aapt resource value: 0x7f0b0127 + public const int Widget_AppCompat_Button_Colored = 2131427623; - // aapt resource value: 0x7F0E014A - public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131624266; + // aapt resource value: 0x7f0b0128 + public const int Widget_AppCompat_Button_Small = 2131427624; - // aapt resource value: 0x7F0E0144 - public const int Widget_AppCompat_Button_Borderless = 2131624260; + // aapt resource value: 0x7f0b0129 + public const int Widget_AppCompat_ButtonBar = 2131427625; - // aapt resource value: 0x7F0E0145 - public const int Widget_AppCompat_Button_Borderless_Colored = 2131624261; + // aapt resource value: 0x7f0b012a + public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131427626; - // aapt resource value: 0x7F0E0146 - public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131624262; + // aapt resource value: 0x7f0b012b + public const int Widget_AppCompat_CompoundButton_CheckBox = 2131427627; - // aapt resource value: 0x7F0E0147 - public const int Widget_AppCompat_Button_Colored = 2131624263; + // aapt resource value: 0x7f0b012c + public const int Widget_AppCompat_CompoundButton_RadioButton = 2131427628; - // aapt resource value: 0x7F0E0148 - public const int Widget_AppCompat_Button_Small = 2131624264; + // aapt resource value: 0x7f0b012d + public const int Widget_AppCompat_CompoundButton_Switch = 2131427629; - // aapt resource value: 0x7F0E014B - public const int Widget_AppCompat_CompoundButton_CheckBox = 2131624267; + // aapt resource value: 0x7f0b012e + public const int Widget_AppCompat_DrawerArrowToggle = 2131427630; - // aapt resource value: 0x7F0E014C - public const int Widget_AppCompat_CompoundButton_RadioButton = 2131624268; + // aapt resource value: 0x7f0b012f + public const int Widget_AppCompat_DropDownItem_Spinner = 2131427631; - // aapt resource value: 0x7F0E014D - public const int Widget_AppCompat_CompoundButton_Switch = 2131624269; + // aapt resource value: 0x7f0b0130 + public const int Widget_AppCompat_EditText = 2131427632; - // aapt resource value: 0x7F0E014E - public const int Widget_AppCompat_DrawerArrowToggle = 2131624270; + // aapt resource value: 0x7f0b0131 + public const int Widget_AppCompat_ImageButton = 2131427633; - // aapt resource value: 0x7F0E014F - public const int Widget_AppCompat_DropDownItem_Spinner = 2131624271; + // aapt resource value: 0x7f0b0132 + public const int Widget_AppCompat_Light_ActionBar = 2131427634; - // aapt resource value: 0x7F0E0150 - public const int Widget_AppCompat_EditText = 2131624272; + // aapt resource value: 0x7f0b0133 + public const int Widget_AppCompat_Light_ActionBar_Solid = 2131427635; - // aapt resource value: 0x7F0E0151 - public const int Widget_AppCompat_ImageButton = 2131624273; + // aapt resource value: 0x7f0b0134 + public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131427636; - // aapt resource value: 0x7F0E0152 - public const int Widget_AppCompat_Light_ActionBar = 2131624274; + // aapt resource value: 0x7f0b0135 + public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131427637; - // aapt resource value: 0x7F0E0153 - public const int Widget_AppCompat_Light_ActionBar_Solid = 2131624275; + // aapt resource value: 0x7f0b0136 + public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131427638; - // aapt resource value: 0x7F0E0154 - public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131624276; + // aapt resource value: 0x7f0b0137 + public const int Widget_AppCompat_Light_ActionBar_TabText = 2131427639; - // aapt resource value: 0x7F0E0155 - public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131624277; + // aapt resource value: 0x7f0b0138 + public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131427640; - // aapt resource value: 0x7F0E0156 - public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131624278; + // aapt resource value: 0x7f0b0139 + public const int Widget_AppCompat_Light_ActionBar_TabView = 2131427641; - // aapt resource value: 0x7F0E0157 - public const int Widget_AppCompat_Light_ActionBar_TabText = 2131624279; + // aapt resource value: 0x7f0b013a + public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131427642; - // aapt resource value: 0x7F0E0158 - public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131624280; + // aapt resource value: 0x7f0b013b + public const int Widget_AppCompat_Light_ActionButton = 2131427643; - // aapt resource value: 0x7F0E0159 - public const int Widget_AppCompat_Light_ActionBar_TabView = 2131624281; + // aapt resource value: 0x7f0b013c + public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131427644; - // aapt resource value: 0x7F0E015A - public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131624282; + // aapt resource value: 0x7f0b013d + public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131427645; - // aapt resource value: 0x7F0E015B - public const int Widget_AppCompat_Light_ActionButton = 2131624283; + // aapt resource value: 0x7f0b013e + public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131427646; - // aapt resource value: 0x7F0E015C - public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131624284; + // aapt resource value: 0x7f0b013f + public const int Widget_AppCompat_Light_ActivityChooserView = 2131427647; - // aapt resource value: 0x7F0E015D - public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131624285; + // aapt resource value: 0x7f0b0140 + public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131427648; - // aapt resource value: 0x7F0E015E - public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131624286; + // aapt resource value: 0x7f0b0141 + public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131427649; - // aapt resource value: 0x7F0E015F - public const int Widget_AppCompat_Light_ActivityChooserView = 2131624287; + // aapt resource value: 0x7f0b0142 + public const int Widget_AppCompat_Light_ListPopupWindow = 2131427650; - // aapt resource value: 0x7F0E0160 - public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131624288; + // aapt resource value: 0x7f0b0143 + public const int Widget_AppCompat_Light_ListView_DropDown = 2131427651; - // aapt resource value: 0x7F0E0161 - public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131624289; + // aapt resource value: 0x7f0b0144 + public const int Widget_AppCompat_Light_PopupMenu = 2131427652; - // aapt resource value: 0x7F0E0162 - public const int Widget_AppCompat_Light_ListPopupWindow = 2131624290; + // aapt resource value: 0x7f0b0145 + public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131427653; - // aapt resource value: 0x7F0E0163 - public const int Widget_AppCompat_Light_ListView_DropDown = 2131624291; + // aapt resource value: 0x7f0b0146 + public const int Widget_AppCompat_Light_SearchView = 2131427654; - // aapt resource value: 0x7F0E0164 - public const int Widget_AppCompat_Light_PopupMenu = 2131624292; + // aapt resource value: 0x7f0b0147 + public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131427655; - // aapt resource value: 0x7F0E0165 - public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131624293; + // aapt resource value: 0x7f0b0148 + public const int Widget_AppCompat_ListMenuView = 2131427656; - // aapt resource value: 0x7F0E0166 - public const int Widget_AppCompat_Light_SearchView = 2131624294; + // aapt resource value: 0x7f0b0149 + public const int Widget_AppCompat_ListPopupWindow = 2131427657; - // aapt resource value: 0x7F0E0167 - public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131624295; + // aapt resource value: 0x7f0b014a + public const int Widget_AppCompat_ListView = 2131427658; - // aapt resource value: 0x7F0E0168 - public const int Widget_AppCompat_ListMenuView = 2131624296; + // aapt resource value: 0x7f0b014b + public const int Widget_AppCompat_ListView_DropDown = 2131427659; - // aapt resource value: 0x7F0E0169 - public const int Widget_AppCompat_ListPopupWindow = 2131624297; + // aapt resource value: 0x7f0b014c + public const int Widget_AppCompat_ListView_Menu = 2131427660; - // aapt resource value: 0x7F0E016A - public const int Widget_AppCompat_ListView = 2131624298; + // aapt resource value: 0x7f0b014d + public const int Widget_AppCompat_PopupMenu = 2131427661; - // aapt resource value: 0x7F0E016B - public const int Widget_AppCompat_ListView_DropDown = 2131624299; + // aapt resource value: 0x7f0b014e + public const int Widget_AppCompat_PopupMenu_Overflow = 2131427662; - // aapt resource value: 0x7F0E016C - public const int Widget_AppCompat_ListView_Menu = 2131624300; + // aapt resource value: 0x7f0b014f + public const int Widget_AppCompat_PopupWindow = 2131427663; - // aapt resource value: 0x7F0E016D - public const int Widget_AppCompat_PopupMenu = 2131624301; + // aapt resource value: 0x7f0b0150 + public const int Widget_AppCompat_ProgressBar = 2131427664; - // aapt resource value: 0x7F0E016E - public const int Widget_AppCompat_PopupMenu_Overflow = 2131624302; + // aapt resource value: 0x7f0b0151 + public const int Widget_AppCompat_ProgressBar_Horizontal = 2131427665; - // aapt resource value: 0x7F0E016F - public const int Widget_AppCompat_PopupWindow = 2131624303; + // aapt resource value: 0x7f0b0152 + public const int Widget_AppCompat_RatingBar = 2131427666; - // aapt resource value: 0x7F0E0170 - public const int Widget_AppCompat_ProgressBar = 2131624304; + // aapt resource value: 0x7f0b0153 + public const int Widget_AppCompat_RatingBar_Indicator = 2131427667; - // aapt resource value: 0x7F0E0171 - public const int Widget_AppCompat_ProgressBar_Horizontal = 2131624305; + // aapt resource value: 0x7f0b0154 + public const int Widget_AppCompat_RatingBar_Small = 2131427668; - // aapt resource value: 0x7F0E0172 - public const int Widget_AppCompat_RatingBar = 2131624306; + // aapt resource value: 0x7f0b0155 + public const int Widget_AppCompat_SearchView = 2131427669; - // aapt resource value: 0x7F0E0173 - public const int Widget_AppCompat_RatingBar_Indicator = 2131624307; + // aapt resource value: 0x7f0b0156 + public const int Widget_AppCompat_SearchView_ActionBar = 2131427670; - // aapt resource value: 0x7F0E0174 - public const int Widget_AppCompat_RatingBar_Small = 2131624308; + // aapt resource value: 0x7f0b0157 + public const int Widget_AppCompat_SeekBar = 2131427671; - // aapt resource value: 0x7F0E0175 - public const int Widget_AppCompat_SearchView = 2131624309; + // aapt resource value: 0x7f0b0158 + public const int Widget_AppCompat_SeekBar_Discrete = 2131427672; - // aapt resource value: 0x7F0E0176 - public const int Widget_AppCompat_SearchView_ActionBar = 2131624310; + // aapt resource value: 0x7f0b0159 + public const int Widget_AppCompat_Spinner = 2131427673; - // aapt resource value: 0x7F0E0177 - public const int Widget_AppCompat_SeekBar = 2131624311; + // aapt resource value: 0x7f0b015a + public const int Widget_AppCompat_Spinner_DropDown = 2131427674; - // aapt resource value: 0x7F0E0178 - public const int Widget_AppCompat_SeekBar_Discrete = 2131624312; + // aapt resource value: 0x7f0b015b + public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131427675; - // aapt resource value: 0x7F0E0179 - public const int Widget_AppCompat_Spinner = 2131624313; + // aapt resource value: 0x7f0b015c + public const int Widget_AppCompat_Spinner_Underlined = 2131427676; - // aapt resource value: 0x7F0E017A - public const int Widget_AppCompat_Spinner_DropDown = 2131624314; + // aapt resource value: 0x7f0b015d + public const int Widget_AppCompat_TextView_SpinnerItem = 2131427677; - // aapt resource value: 0x7F0E017B - public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131624315; + // aapt resource value: 0x7f0b015e + public const int Widget_AppCompat_Toolbar = 2131427678; - // aapt resource value: 0x7F0E017C - public const int Widget_AppCompat_Spinner_Underlined = 2131624316; + // aapt resource value: 0x7f0b015f + public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131427679; - // aapt resource value: 0x7F0E017D - public const int Widget_AppCompat_TextView_SpinnerItem = 2131624317; + // aapt resource value: 0x7f0b0187 + public const int Widget_Compat_NotificationActionContainer = 2131427719; - // aapt resource value: 0x7F0E017E - public const int Widget_AppCompat_Toolbar = 2131624318; + // aapt resource value: 0x7f0b0188 + public const int Widget_Compat_NotificationActionText = 2131427720; - // aapt resource value: 0x7F0E017F - public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131624319; + // aapt resource value: 0x7f0b0179 + public const int Widget_Design_AppBarLayout = 2131427705; - // aapt resource value: 0x7F0E0180 - public const int Widget_Compat_NotificationActionContainer = 2131624320; + // aapt resource value: 0x7f0b017a + public const int Widget_Design_BottomNavigationView = 2131427706; - // aapt resource value: 0x7F0E0181 - public const int Widget_Compat_NotificationActionText = 2131624321; + // aapt resource value: 0x7f0b017b + public const int Widget_Design_BottomSheet_Modal = 2131427707; - // aapt resource value: 0x7F0E0182 - public const int Widget_Design_AppBarLayout = 2131624322; + // aapt resource value: 0x7f0b017c + public const int Widget_Design_CollapsingToolbar = 2131427708; - // aapt resource value: 0x7F0E0183 - public const int Widget_Design_BottomNavigationView = 2131624323; + // aapt resource value: 0x7f0b017d + public const int Widget_Design_CoordinatorLayout = 2131427709; - // aapt resource value: 0x7F0E0184 - public const int Widget_Design_BottomSheet_Modal = 2131624324; + // aapt resource value: 0x7f0b017e + public const int Widget_Design_FloatingActionButton = 2131427710; - // aapt resource value: 0x7F0E0185 - public const int Widget_Design_CollapsingToolbar = 2131624325; + // aapt resource value: 0x7f0b017f + public const int Widget_Design_NavigationView = 2131427711; - // aapt resource value: 0x7F0E0186 - public const int Widget_Design_CoordinatorLayout = 2131624326; + // aapt resource value: 0x7f0b0180 + public const int Widget_Design_ScrimInsetsFrameLayout = 2131427712; - // aapt resource value: 0x7F0E0187 - public const int Widget_Design_FloatingActionButton = 2131624327; + // aapt resource value: 0x7f0b0181 + public const int Widget_Design_Snackbar = 2131427713; - // aapt resource value: 0x7F0E0188 - public const int Widget_Design_NavigationView = 2131624328; + // aapt resource value: 0x7f0b0165 + public const int Widget_Design_TabLayout = 2131427685; - // aapt resource value: 0x7F0E0189 - public const int Widget_Design_ScrimInsetsFrameLayout = 2131624329; + // aapt resource value: 0x7f0b0182 + public const int Widget_Design_TextInputLayout = 2131427714; - // aapt resource value: 0x7F0E018A - public const int Widget_Design_Snackbar = 2131624330; + // aapt resource value: 0x7f0b018c + public const int custom_dialog2 = 2131427724; - // aapt resource value: 0x7F0E018B - public const int Widget_Design_TabLayout = 2131624331; + // aapt resource value: 0x7f0b018d + public const int picker_view_scale_anim = 2131427725; - // aapt resource value: 0x7F0E018C - public const int Widget_Design_TextInputLayout = 2131624332; + // aapt resource value: 0x7f0b018e + public const int picker_view_slide_anim = 2131427726; static Style() { @@ -5418,193 +5436,204 @@ } } + public partial class Xml + { + + // aapt resource value: 0x7f070000 + public const int file_paths = 2131165184; + + // aapt resource value: 0x7f070001 + public const int hdl_filepaths = 2131165185; + + static Xml() + { + global::Android.Runtime.ResourceIdManager.UpdateIdValues(); + } + + private Xml() + { + } + } + public partial class Styleable { - // aapt resource value: { 0x7F040042,0x7F040043,0x7F040044,0x7F040072,0x7F040073,0x7F040074,0x7F040075,0x7F040076,0x7F040077,0x7F040083,0x7F040087,0x7F040088,0x7F040093,0x7F0400B4,0x7F0400B5,0x7F0400B9,0x7F0400BA,0x7F0400BB,0x7F0400C0,0x7F0400C6,0x7F0400E3,0x7F0400EC,0x7F0400FC,0x7F040100,0x7F040101,0x7F040168,0x7F04016B,0x7F040197,0x7F0401A1 } public static int[] ActionBar = new int[] { - 2130968642, - 2130968643, - 2130968644, - 2130968690, - 2130968691, - 2130968692, - 2130968693, - 2130968694, - 2130968695, - 2130968707, - 2130968711, - 2130968712, - 2130968723, - 2130968756, - 2130968757, - 2130968761, - 2130968762, - 2130968763, - 2130968768, - 2130968774, - 2130968803, - 2130968812, - 2130968828, - 2130968832, - 2130968833, - 2130968936, - 2130968939, - 2130968983, - 2130968993}; + 2130771978, + 2130771980, + 2130771981, + 2130771982, + 2130771983, + 2130771984, + 2130771985, + 2130771986, + 2130771987, + 2130771988, + 2130771989, + 2130771990, + 2130771991, + 2130771992, + 2130771993, + 2130771994, + 2130771995, + 2130771996, + 2130771997, + 2130771998, + 2130771999, + 2130772000, + 2130772001, + 2130772002, + 2130772003, + 2130772004, + 2130772005, + 2130772006, + 2130772076}; - // aapt resource value: { 0x10100B3 } + // aapt resource value: 10 + public const int ActionBar_background = 10; + + // aapt resource value: 12 + public const int ActionBar_backgroundSplit = 12; + + // aapt resource value: 11 + public const int ActionBar_backgroundStacked = 11; + + // aapt resource value: 21 + public const int ActionBar_contentInsetEnd = 21; + + // aapt resource value: 25 + public const int ActionBar_contentInsetEndWithActions = 25; + + // aapt resource value: 22 + public const int ActionBar_contentInsetLeft = 22; + + // aapt resource value: 23 + public const int ActionBar_contentInsetRight = 23; + + // aapt resource value: 20 + public const int ActionBar_contentInsetStart = 20; + + // aapt resource value: 24 + public const int ActionBar_contentInsetStartWithNavigation = 24; + + // aapt resource value: 13 + public const int ActionBar_customNavigationLayout = 13; + + // aapt resource value: 3 + public const int ActionBar_displayOptions = 3; + + // aapt resource value: 9 + public const int ActionBar_divider = 9; + + // aapt resource value: 26 + public const int ActionBar_elevation = 26; + + // aapt resource value: 0 + public const int ActionBar_height = 0; + + // aapt resource value: 19 + public const int ActionBar_hideOnContentScroll = 19; + + // aapt resource value: 28 + public const int ActionBar_homeAsUpIndicator = 28; + + // aapt resource value: 14 + public const int ActionBar_homeLayout = 14; + + // aapt resource value: 7 + public const int ActionBar_icon = 7; + + // aapt resource value: 16 + public const int ActionBar_indeterminateProgressStyle = 16; + + // aapt resource value: 18 + public const int ActionBar_itemPadding = 18; + + // aapt resource value: 8 + public const int ActionBar_logo = 8; + + // aapt resource value: 2 + public const int ActionBar_navigationMode = 2; + + // aapt resource value: 27 + public const int ActionBar_popupTheme = 27; + + // aapt resource value: 17 + public const int ActionBar_progressBarPadding = 17; + + // aapt resource value: 15 + public const int ActionBar_progressBarStyle = 15; + + // aapt resource value: 4 + public const int ActionBar_subtitle = 4; + + // aapt resource value: 6 + public const int ActionBar_subtitleTextStyle = 6; + + // aapt resource value: 1 + public const int ActionBar_title = 1; + + // aapt resource value: 5 + public const int ActionBar_titleTextStyle = 5; + public static int[] ActionBarLayout = new int[] { 16842931}; // aapt resource value: 0 public const int ActionBarLayout_android_layout_gravity = 0; - // aapt resource value: 0 - public const int ActionBar_background = 0; - - // aapt resource value: 1 - public const int ActionBar_backgroundSplit = 1; - - // aapt resource value: 2 - public const int ActionBar_backgroundStacked = 2; - - // aapt resource value: 3 - public const int ActionBar_contentInsetEnd = 3; - - // aapt resource value: 4 - public const int ActionBar_contentInsetEndWithActions = 4; - - // aapt resource value: 5 - public const int ActionBar_contentInsetLeft = 5; - - // aapt resource value: 6 - public const int ActionBar_contentInsetRight = 6; - - // aapt resource value: 7 - public const int ActionBar_contentInsetStart = 7; - - // aapt resource value: 8 - public const int ActionBar_contentInsetStartWithNavigation = 8; - - // aapt resource value: 9 - public const int ActionBar_customNavigationLayout = 9; - - // aapt resource value: 10 - public const int ActionBar_displayOptions = 10; - - // aapt resource value: 11 - public const int ActionBar_divider = 11; - - // aapt resource value: 12 - public const int ActionBar_elevation = 12; - - // aapt resource value: 13 - public const int ActionBar_height = 13; - - // aapt resource value: 14 - public const int ActionBar_hideOnContentScroll = 14; - - // aapt resource value: 15 - public const int ActionBar_homeAsUpIndicator = 15; - - // aapt resource value: 16 - public const int ActionBar_homeLayout = 16; - - // aapt resource value: 17 - public const int ActionBar_icon = 17; - - // aapt resource value: 18 - public const int ActionBar_indeterminateProgressStyle = 18; - - // aapt resource value: 19 - public const int ActionBar_itemPadding = 19; - - // aapt resource value: 20 - public const int ActionBar_logo = 20; - - // aapt resource value: 21 - public const int ActionBar_navigationMode = 21; - - // aapt resource value: 22 - public const int ActionBar_popupTheme = 22; - - // aapt resource value: 23 - public const int ActionBar_progressBarPadding = 23; - - // aapt resource value: 24 - public const int ActionBar_progressBarStyle = 24; - - // aapt resource value: 25 - public const int ActionBar_subtitle = 25; - - // aapt resource value: 26 - public const int ActionBar_subtitleTextStyle = 26; - - // aapt resource value: 27 - public const int ActionBar_title = 27; - - // aapt resource value: 28 - public const int ActionBar_titleTextStyle = 28; - - // aapt resource value: { 0x101013F } public static int[] ActionMenuItemView = new int[] { 16843071}; // aapt resource value: 0 public const int ActionMenuItemView_android_minWidth = 0; - // aapt resource value: { 0xFFFFFFFF } - public static int[] ActionMenuView = new int[] { - -1}; + public static int[] ActionMenuView; - // aapt resource value: { 0x7F040042,0x7F040043,0x7F040060,0x7F0400B4,0x7F04016B,0x7F0401A1 } public static int[] ActionMode = new int[] { - 2130968642, - 2130968643, - 2130968672, - 2130968756, - 2130968939, - 2130968993}; - - // aapt resource value: 0 - public const int ActionMode_background = 0; - - // aapt resource value: 1 - public const int ActionMode_backgroundSplit = 1; - - // aapt resource value: 2 - public const int ActionMode_closeItemLayout = 2; + 2130771978, + 2130771984, + 2130771985, + 2130771989, + 2130771991, + 2130772007}; // aapt resource value: 3 - public const int ActionMode_height = 3; + public const int ActionMode_background = 3; // aapt resource value: 4 - public const int ActionMode_subtitleTextStyle = 4; + public const int ActionMode_backgroundSplit = 4; // aapt resource value: 5 - public const int ActionMode_titleTextStyle = 5; - - // aapt resource value: { 0x7F040096,0x7F0400C1 } - public static int[] ActivityChooserView = new int[] { - 2130968726, - 2130968769}; + public const int ActionMode_closeItemLayout = 5; // aapt resource value: 0 - public const int ActivityChooserView_expandActivityOverflowButtonDrawable = 0; + public const int ActionMode_height = 0; + + // aapt resource value: 2 + public const int ActionMode_subtitleTextStyle = 2; // aapt resource value: 1 - public const int ActivityChooserView_initialActivityCount = 1; + public const int ActionMode_titleTextStyle = 1; - // aapt resource value: { 0x10100F2,0x7F040058,0x7F0400DA,0x7F0400DB,0x7F0400E9,0x7F040117,0x7F040118 } + public static int[] ActivityChooserView = new int[] { + 2130772008, + 2130772009}; + + // aapt resource value: 1 + public const int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; + + // aapt resource value: 0 + public const int ActivityChooserView_initialActivityCount = 0; + public static int[] AlertDialog = new int[] { 16842994, - 2130968664, - 2130968794, - 2130968795, - 2130968809, - 2130968855, - 2130968856}; + 2130772010, + 2130772011, + 2130772012, + 2130772013, + 2130772014, + 2130772015}; // aapt resource value: 0 public const int AlertDialog_android_layout = 0; @@ -5612,39 +5641,27 @@ // aapt resource value: 1 public const int AlertDialog_buttonPanelSideLayout = 1; + // aapt resource value: 5 + public const int AlertDialog_listItemLayout = 5; + // aapt resource value: 2 - public const int AlertDialog_listItemLayout = 2; + public const int AlertDialog_listLayout = 2; // aapt resource value: 3 - public const int AlertDialog_listLayout = 3; - - // aapt resource value: 4 - public const int AlertDialog_multiChoiceItemLayout = 4; - - // aapt resource value: 5 - public const int AlertDialog_showTitle = 5; + public const int AlertDialog_multiChoiceItemLayout = 3; // aapt resource value: 6 - public const int AlertDialog_singleChoiceItemLayout = 6; + public const int AlertDialog_showTitle = 6; - // aapt resource value: { 0x10100D4,0x101048F,0x1010540,0x7F040093,0x7F040097 } + // aapt resource value: 4 + public const int AlertDialog_singleChoiceItemLayout = 4; + public static int[] AppBarLayout = new int[] { 16842964, 16843919, 16844096, - 2130968723, - 2130968727}; - - // aapt resource value: { 0x7F040162,0x7F040163 } - public static int[] AppBarLayoutStates = new int[] { - 2130968930, - 2130968931}; - - // aapt resource value: 0 - public const int AppBarLayoutStates_state_collapsed = 0; - - // aapt resource value: 1 - public const int AppBarLayoutStates_state_collapsible = 1; + 2130772005, + 2130772223}; // aapt resource value: 0 public const int AppBarLayout_android_background = 0; @@ -5661,10 +5678,19 @@ // aapt resource value: 4 public const int AppBarLayout_expanded = 4; - // aapt resource value: { 0x7F0400D4,0x7F0400D5 } + public static int[] AppBarLayoutStates = new int[] { + 2130772224, + 2130772225}; + + // aapt resource value: 0 + public const int AppBarLayoutStates_state_collapsed = 0; + + // aapt resource value: 1 + public const int AppBarLayoutStates_state_collapsible = 1; + public static int[] AppBarLayout_Layout = new int[] { - 2130968788, - 2130968789}; + 2130772226, + 2130772227}; // aapt resource value: 0 public const int AppBarLayout_Layout_layout_scrollFlags = 0; @@ -5672,12 +5698,11 @@ // aapt resource value: 1 public const int AppBarLayout_Layout_layout_scrollInterpolator = 1; - // aapt resource value: { 0x1010119,0x7F04011E,0x7F040195,0x7F040196 } public static int[] AppCompatImageView = new int[] { 16843033, - 2130968862, - 2130968981, - 2130968982}; + 2130772016, + 2130772017, + 2130772018}; // aapt resource value: 0 public const int AppCompatImageView_android_src = 0; @@ -5691,12 +5716,11 @@ // aapt resource value: 3 public const int AppCompatImageView_tintMode = 3; - // aapt resource value: { 0x1010142,0x7F040192,0x7F040193,0x7F040194 } public static int[] AppCompatSeekBar = new int[] { 16843074, - 2130968978, - 2130968979, - 2130968980}; + 2130772019, + 2130772020, + 2130772021}; // aapt resource value: 0 public const int AppCompatSeekBar_android_thumb = 0; @@ -5710,7 +5734,6 @@ // aapt resource value: 3 public const int AppCompatSeekBar_tickMarkTintMode = 3; - // aapt resource value: { 0x1010034,0x101016D,0x101016E,0x101016F,0x1010170,0x1010392,0x1010393 } public static int[] AppCompatTextHelper = new int[] { 16842804, 16843117, @@ -5741,267 +5764,265 @@ // aapt resource value: 0 public const int AppCompatTextHelper_android_textAppearance = 0; - // aapt resource value: { 0x1010034,0x7F04003D,0x7F04003E,0x7F04003F,0x7F040040,0x7F040041,0x7F0400A6,0x7F040181 } public static int[] AppCompatTextView = new int[] { 16842804, - 2130968637, - 2130968638, - 2130968639, - 2130968640, - 2130968641, - 2130968742, - 2130968961}; + 2130772022, + 2130772023, + 2130772024, + 2130772025, + 2130772026, + 2130772027, + 2130772028}; // aapt resource value: 0 public const int AppCompatTextView_android_textAppearance = 0; - // aapt resource value: 1 - public const int AppCompatTextView_autoSizeMaxTextSize = 1; - - // aapt resource value: 2 - public const int AppCompatTextView_autoSizeMinTextSize = 2; - - // aapt resource value: 3 - public const int AppCompatTextView_autoSizePresetSizes = 3; - - // aapt resource value: 4 - public const int AppCompatTextView_autoSizeStepGranularity = 4; + // aapt resource value: 6 + public const int AppCompatTextView_autoSizeMaxTextSize = 6; // aapt resource value: 5 - public const int AppCompatTextView_autoSizeTextType = 5; + public const int AppCompatTextView_autoSizeMinTextSize = 5; - // aapt resource value: 6 - public const int AppCompatTextView_fontFamily = 6; + // aapt resource value: 4 + public const int AppCompatTextView_autoSizePresetSizes = 4; + + // aapt resource value: 3 + public const int AppCompatTextView_autoSizeStepGranularity = 3; + + // aapt resource value: 2 + public const int AppCompatTextView_autoSizeTextType = 2; // aapt resource value: 7 - public const int AppCompatTextView_textAllCaps = 7; + public const int AppCompatTextView_fontFamily = 7; - // aapt resource value: { 0x1010057,0x10100AE,0x7F040000,0x7F040001,0x7F040002,0x7F040003,0x7F040004,0x7F040005,0x7F040006,0x7F040007,0x7F040008,0x7F040009,0x7F04000A,0x7F04000B,0x7F04000C,0x7F04000E,0x7F04000F,0x7F040010,0x7F040011,0x7F040012,0x7F040013,0x7F040014,0x7F040015,0x7F040016,0x7F040017,0x7F040018,0x7F040019,0x7F04001A,0x7F04001B,0x7F04001C,0x7F04001D,0x7F04001E,0x7F040021,0x7F040022,0x7F040023,0x7F040024,0x7F040025,0x7F04003C,0x7F04004F,0x7F040052,0x7F040053,0x7F040054,0x7F040055,0x7F040056,0x7F040059,0x7F04005A,0x7F04005D,0x7F04005E,0x7F040066,0x7F040067,0x7F040068,0x7F040069,0x7F04006A,0x7F04006B,0x7F04006C,0x7F04006D,0x7F04006E,0x7F04006F,0x7F040079,0x7F040085,0x7F040086,0x7F040089,0x7F04008B,0x7F04008E,0x7F04008F,0x7F040090,0x7F040091,0x7F040092,0x7F0400B9,0x7F0400BF,0x7F0400D8,0x7F0400D9,0x7F0400DC,0x7F0400DD,0x7F0400DE,0x7F0400DF,0x7F0400E0,0x7F0400E1,0x7F0400E2,0x7F0400F3,0x7F0400F4,0x7F0400F5,0x7F0400FB,0x7F0400FD,0x7F040104,0x7F040105,0x7F040106,0x7F040107,0x7F04010E,0x7F040111,0x7F040112,0x7F040113,0x7F04011B,0x7F04011C,0x7F04016F,0x7F040182,0x7F040183,0x7F040184,0x7F040185,0x7F040186,0x7F040187,0x7F040188,0x7F040189,0x7F04018A,0x7F04018C,0x7F0401A3,0x7F0401A4,0x7F0401A5,0x7F0401A6,0x7F0401B8,0x7F0401B9,0x7F0401BA,0x7F0401BB,0x7F0401BC,0x7F0401BD,0x7F0401BE,0x7F0401BF,0x7F0401C0,0x7F0401C1 } + // aapt resource value: 1 + public const int AppCompatTextView_textAllCaps = 1; + public static int[] AppCompatTheme = new int[] { 16842839, 16842926, - 2130968576, - 2130968577, - 2130968578, - 2130968579, - 2130968580, - 2130968581, - 2130968582, - 2130968583, - 2130968584, - 2130968585, - 2130968586, - 2130968587, - 2130968588, - 2130968590, - 2130968591, - 2130968592, - 2130968593, - 2130968594, - 2130968595, - 2130968596, - 2130968597, - 2130968598, - 2130968599, - 2130968600, - 2130968601, - 2130968602, - 2130968603, - 2130968604, - 2130968605, - 2130968606, - 2130968609, - 2130968610, - 2130968611, - 2130968612, - 2130968613, - 2130968636, - 2130968655, - 2130968658, - 2130968659, - 2130968660, - 2130968661, - 2130968662, - 2130968665, - 2130968666, - 2130968669, - 2130968670, - 2130968678, - 2130968679, - 2130968680, - 2130968681, - 2130968682, - 2130968683, - 2130968684, - 2130968685, - 2130968686, - 2130968687, - 2130968697, - 2130968709, - 2130968710, - 2130968713, - 2130968715, - 2130968718, - 2130968719, - 2130968720, - 2130968721, - 2130968722, - 2130968761, - 2130968767, - 2130968792, - 2130968793, - 2130968796, - 2130968797, - 2130968798, - 2130968799, - 2130968800, - 2130968801, - 2130968802, - 2130968819, - 2130968820, - 2130968821, - 2130968827, - 2130968829, - 2130968836, - 2130968837, - 2130968838, - 2130968839, - 2130968846, - 2130968849, - 2130968850, - 2130968851, - 2130968859, - 2130968860, - 2130968943, - 2130968962, - 2130968963, - 2130968964, - 2130968965, - 2130968966, - 2130968967, - 2130968968, - 2130968969, - 2130968970, - 2130968972, - 2130968995, - 2130968996, - 2130968997, - 2130968998, - 2130969016, - 2130969017, - 2130969018, - 2130969019, - 2130969020, - 2130969021, - 2130969022, - 2130969023, - 2130969024, - 2130969025}; - - // aapt resource value: 2 - public const int AppCompatTheme_actionBarDivider = 2; - - // aapt resource value: 3 - public const int AppCompatTheme_actionBarItemBackground = 3; - - // aapt resource value: 4 - public const int AppCompatTheme_actionBarPopupTheme = 4; - - // aapt resource value: 5 - public const int AppCompatTheme_actionBarSize = 5; - - // aapt resource value: 6 - public const int AppCompatTheme_actionBarSplitStyle = 6; - - // aapt resource value: 7 - public const int AppCompatTheme_actionBarStyle = 7; - - // aapt resource value: 8 - public const int AppCompatTheme_actionBarTabBarStyle = 8; - - // aapt resource value: 9 - public const int AppCompatTheme_actionBarTabStyle = 9; - - // aapt resource value: 10 - public const int AppCompatTheme_actionBarTabTextStyle = 10; - - // aapt resource value: 11 - public const int AppCompatTheme_actionBarTheme = 11; - - // aapt resource value: 12 - public const int AppCompatTheme_actionBarWidgetTheme = 12; - - // aapt resource value: 13 - public const int AppCompatTheme_actionButtonStyle = 13; - - // aapt resource value: 14 - public const int AppCompatTheme_actionDropDownStyle = 14; - - // aapt resource value: 15 - public const int AppCompatTheme_actionMenuTextAppearance = 15; - - // aapt resource value: 16 - public const int AppCompatTheme_actionMenuTextColor = 16; - - // aapt resource value: 17 - public const int AppCompatTheme_actionModeBackground = 17; - - // aapt resource value: 18 - public const int AppCompatTheme_actionModeCloseButtonStyle = 18; - - // aapt resource value: 19 - public const int AppCompatTheme_actionModeCloseDrawable = 19; - - // aapt resource value: 20 - public const int AppCompatTheme_actionModeCopyDrawable = 20; - - // aapt resource value: 21 - public const int AppCompatTheme_actionModeCutDrawable = 21; - - // aapt resource value: 22 - public const int AppCompatTheme_actionModeFindDrawable = 22; + 2130772029, + 2130772030, + 2130772031, + 2130772032, + 2130772033, + 2130772034, + 2130772035, + 2130772036, + 2130772037, + 2130772038, + 2130772039, + 2130772040, + 2130772041, + 2130772042, + 2130772043, + 2130772044, + 2130772045, + 2130772046, + 2130772047, + 2130772048, + 2130772049, + 2130772050, + 2130772051, + 2130772052, + 2130772053, + 2130772054, + 2130772055, + 2130772056, + 2130772057, + 2130772058, + 2130772059, + 2130772060, + 2130772061, + 2130772062, + 2130772063, + 2130772064, + 2130772065, + 2130772066, + 2130772067, + 2130772068, + 2130772069, + 2130772070, + 2130772071, + 2130772072, + 2130772073, + 2130772074, + 2130772075, + 2130772076, + 2130772077, + 2130772078, + 2130772079, + 2130772080, + 2130772081, + 2130772082, + 2130772083, + 2130772084, + 2130772085, + 2130772086, + 2130772087, + 2130772088, + 2130772089, + 2130772090, + 2130772091, + 2130772092, + 2130772093, + 2130772094, + 2130772095, + 2130772096, + 2130772097, + 2130772098, + 2130772099, + 2130772100, + 2130772101, + 2130772102, + 2130772103, + 2130772104, + 2130772105, + 2130772106, + 2130772107, + 2130772108, + 2130772109, + 2130772110, + 2130772111, + 2130772112, + 2130772113, + 2130772114, + 2130772115, + 2130772116, + 2130772117, + 2130772118, + 2130772119, + 2130772120, + 2130772121, + 2130772122, + 2130772123, + 2130772124, + 2130772125, + 2130772126, + 2130772127, + 2130772128, + 2130772129, + 2130772130, + 2130772131, + 2130772132, + 2130772133, + 2130772134, + 2130772135, + 2130772136, + 2130772137, + 2130772138, + 2130772139, + 2130772140, + 2130772141, + 2130772142, + 2130772143, + 2130772144, + 2130772145}; // aapt resource value: 23 - public const int AppCompatTheme_actionModePasteDrawable = 23; + public const int AppCompatTheme_actionBarDivider = 23; // aapt resource value: 24 - public const int AppCompatTheme_actionModePopupWindowStyle = 24; + public const int AppCompatTheme_actionBarItemBackground = 24; + + // aapt resource value: 17 + public const int AppCompatTheme_actionBarPopupTheme = 17; + + // aapt resource value: 22 + public const int AppCompatTheme_actionBarSize = 22; + + // aapt resource value: 19 + public const int AppCompatTheme_actionBarSplitStyle = 19; + + // aapt resource value: 18 + public const int AppCompatTheme_actionBarStyle = 18; + + // aapt resource value: 13 + public const int AppCompatTheme_actionBarTabBarStyle = 13; + + // aapt resource value: 12 + public const int AppCompatTheme_actionBarTabStyle = 12; + + // aapt resource value: 14 + public const int AppCompatTheme_actionBarTabTextStyle = 14; + + // aapt resource value: 20 + public const int AppCompatTheme_actionBarTheme = 20; + + // aapt resource value: 21 + public const int AppCompatTheme_actionBarWidgetTheme = 21; + + // aapt resource value: 50 + public const int AppCompatTheme_actionButtonStyle = 50; + + // aapt resource value: 46 + public const int AppCompatTheme_actionDropDownStyle = 46; // aapt resource value: 25 - public const int AppCompatTheme_actionModeSelectAllDrawable = 25; + public const int AppCompatTheme_actionMenuTextAppearance = 25; // aapt resource value: 26 - public const int AppCompatTheme_actionModeShareDrawable = 26; - - // aapt resource value: 27 - public const int AppCompatTheme_actionModeSplitBackground = 27; - - // aapt resource value: 28 - public const int AppCompatTheme_actionModeStyle = 28; + public const int AppCompatTheme_actionMenuTextColor = 26; // aapt resource value: 29 - public const int AppCompatTheme_actionModeWebSearchDrawable = 29; + public const int AppCompatTheme_actionModeBackground = 29; - // aapt resource value: 30 - public const int AppCompatTheme_actionOverflowButtonStyle = 30; + // aapt resource value: 28 + public const int AppCompatTheme_actionModeCloseButtonStyle = 28; // aapt resource value: 31 - public const int AppCompatTheme_actionOverflowMenuStyle = 31; - - // aapt resource value: 32 - public const int AppCompatTheme_activityChooserViewStyle = 32; + public const int AppCompatTheme_actionModeCloseDrawable = 31; // aapt resource value: 33 - public const int AppCompatTheme_alertDialogButtonGroupStyle = 33; + public const int AppCompatTheme_actionModeCopyDrawable = 33; + + // aapt resource value: 32 + public const int AppCompatTheme_actionModeCutDrawable = 32; + + // aapt resource value: 37 + public const int AppCompatTheme_actionModeFindDrawable = 37; // aapt resource value: 34 - public const int AppCompatTheme_alertDialogCenterButtons = 34; + public const int AppCompatTheme_actionModePasteDrawable = 34; + + // aapt resource value: 39 + public const int AppCompatTheme_actionModePopupWindowStyle = 39; // aapt resource value: 35 - public const int AppCompatTheme_alertDialogStyle = 35; + public const int AppCompatTheme_actionModeSelectAllDrawable = 35; // aapt resource value: 36 - public const int AppCompatTheme_alertDialogTheme = 36; + public const int AppCompatTheme_actionModeShareDrawable = 36; + + // aapt resource value: 30 + public const int AppCompatTheme_actionModeSplitBackground = 30; + + // aapt resource value: 27 + public const int AppCompatTheme_actionModeStyle = 27; + + // aapt resource value: 38 + public const int AppCompatTheme_actionModeWebSearchDrawable = 38; + + // aapt resource value: 15 + public const int AppCompatTheme_actionOverflowButtonStyle = 15; + + // aapt resource value: 16 + public const int AppCompatTheme_actionOverflowMenuStyle = 16; + + // aapt resource value: 58 + public const int AppCompatTheme_activityChooserViewStyle = 58; + + // aapt resource value: 95 + public const int AppCompatTheme_alertDialogButtonGroupStyle = 95; + + // aapt resource value: 96 + public const int AppCompatTheme_alertDialogCenterButtons = 96; + + // aapt resource value: 94 + public const int AppCompatTheme_alertDialogStyle = 94; + + // aapt resource value: 97 + public const int AppCompatTheme_alertDialogTheme = 97; // aapt resource value: 1 public const int AppCompatTheme_android_windowAnimationStyle = 1; @@ -6009,272 +6030,270 @@ // aapt resource value: 0 public const int AppCompatTheme_android_windowIsFloating = 0; - // aapt resource value: 37 - public const int AppCompatTheme_autoCompleteTextViewStyle = 37; - - // aapt resource value: 38 - public const int AppCompatTheme_borderlessButtonStyle = 38; - - // aapt resource value: 39 - public const int AppCompatTheme_buttonBarButtonStyle = 39; - - // aapt resource value: 40 - public const int AppCompatTheme_buttonBarNegativeButtonStyle = 40; - - // aapt resource value: 41 - public const int AppCompatTheme_buttonBarNeutralButtonStyle = 41; - - // aapt resource value: 42 - public const int AppCompatTheme_buttonBarPositiveButtonStyle = 42; - - // aapt resource value: 43 - public const int AppCompatTheme_buttonBarStyle = 43; - - // aapt resource value: 44 - public const int AppCompatTheme_buttonStyle = 44; - - // aapt resource value: 45 - public const int AppCompatTheme_buttonStyleSmall = 45; - - // aapt resource value: 46 - public const int AppCompatTheme_checkboxStyle = 46; - - // aapt resource value: 47 - public const int AppCompatTheme_checkedTextViewStyle = 47; - - // aapt resource value: 48 - public const int AppCompatTheme_colorAccent = 48; - - // aapt resource value: 49 - public const int AppCompatTheme_colorBackgroundFloating = 49; - - // aapt resource value: 50 - public const int AppCompatTheme_colorButtonNormal = 50; - - // aapt resource value: 51 - public const int AppCompatTheme_colorControlActivated = 51; - - // aapt resource value: 52 - public const int AppCompatTheme_colorControlHighlight = 52; - - // aapt resource value: 53 - public const int AppCompatTheme_colorControlNormal = 53; - - // aapt resource value: 54 - public const int AppCompatTheme_colorError = 54; + // aapt resource value: 102 + public const int AppCompatTheme_autoCompleteTextViewStyle = 102; // aapt resource value: 55 - public const int AppCompatTheme_colorPrimary = 55; + public const int AppCompatTheme_borderlessButtonStyle = 55; - // aapt resource value: 56 - public const int AppCompatTheme_colorPrimaryDark = 56; + // aapt resource value: 52 + public const int AppCompatTheme_buttonBarButtonStyle = 52; + + // aapt resource value: 100 + public const int AppCompatTheme_buttonBarNegativeButtonStyle = 100; + + // aapt resource value: 101 + public const int AppCompatTheme_buttonBarNeutralButtonStyle = 101; + + // aapt resource value: 99 + public const int AppCompatTheme_buttonBarPositiveButtonStyle = 99; + + // aapt resource value: 51 + public const int AppCompatTheme_buttonBarStyle = 51; + + // aapt resource value: 103 + public const int AppCompatTheme_buttonStyle = 103; + + // aapt resource value: 104 + public const int AppCompatTheme_buttonStyleSmall = 104; + + // aapt resource value: 105 + public const int AppCompatTheme_checkboxStyle = 105; + + // aapt resource value: 106 + public const int AppCompatTheme_checkedTextViewStyle = 106; + + // aapt resource value: 86 + public const int AppCompatTheme_colorAccent = 86; + + // aapt resource value: 93 + public const int AppCompatTheme_colorBackgroundFloating = 93; + + // aapt resource value: 90 + public const int AppCompatTheme_colorButtonNormal = 90; + + // aapt resource value: 88 + public const int AppCompatTheme_colorControlActivated = 88; + + // aapt resource value: 89 + public const int AppCompatTheme_colorControlHighlight = 89; + + // aapt resource value: 87 + public const int AppCompatTheme_colorControlNormal = 87; + + // aapt resource value: 118 + public const int AppCompatTheme_colorError = 118; + + // aapt resource value: 84 + public const int AppCompatTheme_colorPrimary = 84; + + // aapt resource value: 85 + public const int AppCompatTheme_colorPrimaryDark = 85; + + // aapt resource value: 91 + public const int AppCompatTheme_colorSwitchThumbNormal = 91; + + // aapt resource value: 92 + public const int AppCompatTheme_controlBackground = 92; + + // aapt resource value: 44 + public const int AppCompatTheme_dialogPreferredPadding = 44; + + // aapt resource value: 43 + public const int AppCompatTheme_dialogTheme = 43; // aapt resource value: 57 - public const int AppCompatTheme_colorSwitchThumbNormal = 57; + public const int AppCompatTheme_dividerHorizontal = 57; - // aapt resource value: 58 - public const int AppCompatTheme_controlBackground = 58; - - // aapt resource value: 59 - public const int AppCompatTheme_dialogPreferredPadding = 59; - - // aapt resource value: 60 - public const int AppCompatTheme_dialogTheme = 60; - - // aapt resource value: 61 - public const int AppCompatTheme_dividerHorizontal = 61; - - // aapt resource value: 62 - public const int AppCompatTheme_dividerVertical = 62; - - // aapt resource value: 64 - public const int AppCompatTheme_dropdownListPreferredItemHeight = 64; - - // aapt resource value: 63 - public const int AppCompatTheme_dropDownListViewStyle = 63; - - // aapt resource value: 65 - public const int AppCompatTheme_editTextBackground = 65; - - // aapt resource value: 66 - public const int AppCompatTheme_editTextColor = 66; - - // aapt resource value: 67 - public const int AppCompatTheme_editTextStyle = 67; - - // aapt resource value: 68 - public const int AppCompatTheme_homeAsUpIndicator = 68; - - // aapt resource value: 69 - public const int AppCompatTheme_imageButtonStyle = 69; - - // aapt resource value: 70 - public const int AppCompatTheme_listChoiceBackgroundIndicator = 70; - - // aapt resource value: 71 - public const int AppCompatTheme_listDividerAlertDialog = 71; - - // aapt resource value: 72 - public const int AppCompatTheme_listMenuViewStyle = 72; - - // aapt resource value: 73 - public const int AppCompatTheme_listPopupWindowStyle = 73; - - // aapt resource value: 74 - public const int AppCompatTheme_listPreferredItemHeight = 74; + // aapt resource value: 56 + public const int AppCompatTheme_dividerVertical = 56; // aapt resource value: 75 - public const int AppCompatTheme_listPreferredItemHeightLarge = 75; + public const int AppCompatTheme_dropDownListViewStyle = 75; + + // aapt resource value: 47 + public const int AppCompatTheme_dropdownListPreferredItemHeight = 47; + + // aapt resource value: 64 + public const int AppCompatTheme_editTextBackground = 64; + + // aapt resource value: 63 + public const int AppCompatTheme_editTextColor = 63; + + // aapt resource value: 107 + public const int AppCompatTheme_editTextStyle = 107; + + // aapt resource value: 49 + public const int AppCompatTheme_homeAsUpIndicator = 49; + + // aapt resource value: 65 + public const int AppCompatTheme_imageButtonStyle = 65; + + // aapt resource value: 83 + public const int AppCompatTheme_listChoiceBackgroundIndicator = 83; + + // aapt resource value: 45 + public const int AppCompatTheme_listDividerAlertDialog = 45; + + // aapt resource value: 115 + public const int AppCompatTheme_listMenuViewStyle = 115; // aapt resource value: 76 - public const int AppCompatTheme_listPreferredItemHeightSmall = 76; + public const int AppCompatTheme_listPopupWindowStyle = 76; - // aapt resource value: 77 - public const int AppCompatTheme_listPreferredItemPaddingLeft = 77; + // aapt resource value: 70 + public const int AppCompatTheme_listPreferredItemHeight = 70; - // aapt resource value: 78 - public const int AppCompatTheme_listPreferredItemPaddingRight = 78; + // aapt resource value: 72 + public const int AppCompatTheme_listPreferredItemHeightLarge = 72; - // aapt resource value: 79 - public const int AppCompatTheme_panelBackground = 79; + // aapt resource value: 71 + public const int AppCompatTheme_listPreferredItemHeightSmall = 71; + + // aapt resource value: 73 + public const int AppCompatTheme_listPreferredItemPaddingLeft = 73; + + // aapt resource value: 74 + public const int AppCompatTheme_listPreferredItemPaddingRight = 74; // aapt resource value: 80 - public const int AppCompatTheme_panelMenuListTheme = 80; + public const int AppCompatTheme_panelBackground = 80; + + // aapt resource value: 82 + public const int AppCompatTheme_panelMenuListTheme = 82; // aapt resource value: 81 public const int AppCompatTheme_panelMenuListWidth = 81; - // aapt resource value: 82 - public const int AppCompatTheme_popupMenuStyle = 82; + // aapt resource value: 61 + public const int AppCompatTheme_popupMenuStyle = 61; - // aapt resource value: 83 - public const int AppCompatTheme_popupWindowStyle = 83; - - // aapt resource value: 84 - public const int AppCompatTheme_radioButtonStyle = 84; - - // aapt resource value: 85 - public const int AppCompatTheme_ratingBarStyle = 85; - - // aapt resource value: 86 - public const int AppCompatTheme_ratingBarStyleIndicator = 86; - - // aapt resource value: 87 - public const int AppCompatTheme_ratingBarStyleSmall = 87; - - // aapt resource value: 88 - public const int AppCompatTheme_searchViewStyle = 88; - - // aapt resource value: 89 - public const int AppCompatTheme_seekBarStyle = 89; - - // aapt resource value: 90 - public const int AppCompatTheme_selectableItemBackground = 90; - - // aapt resource value: 91 - public const int AppCompatTheme_selectableItemBackgroundBorderless = 91; - - // aapt resource value: 92 - public const int AppCompatTheme_spinnerDropDownItemStyle = 92; - - // aapt resource value: 93 - public const int AppCompatTheme_spinnerStyle = 93; - - // aapt resource value: 94 - public const int AppCompatTheme_switchStyle = 94; - - // aapt resource value: 95 - public const int AppCompatTheme_textAppearanceLargePopupMenu = 95; - - // aapt resource value: 96 - public const int AppCompatTheme_textAppearanceListItem = 96; - - // aapt resource value: 97 - public const int AppCompatTheme_textAppearanceListItemSecondary = 97; - - // aapt resource value: 98 - public const int AppCompatTheme_textAppearanceListItemSmall = 98; - - // aapt resource value: 99 - public const int AppCompatTheme_textAppearancePopupMenuHeader = 99; - - // aapt resource value: 100 - public const int AppCompatTheme_textAppearanceSearchResultSubtitle = 100; - - // aapt resource value: 101 - public const int AppCompatTheme_textAppearanceSearchResultTitle = 101; - - // aapt resource value: 102 - public const int AppCompatTheme_textAppearanceSmallPopupMenu = 102; - - // aapt resource value: 103 - public const int AppCompatTheme_textColorAlertDialogListItem = 103; - - // aapt resource value: 104 - public const int AppCompatTheme_textColorSearchUrl = 104; - - // aapt resource value: 105 - public const int AppCompatTheme_toolbarNavigationButtonStyle = 105; - - // aapt resource value: 106 - public const int AppCompatTheme_toolbarStyle = 106; - - // aapt resource value: 107 - public const int AppCompatTheme_tooltipForegroundColor = 107; + // aapt resource value: 62 + public const int AppCompatTheme_popupWindowStyle = 62; // aapt resource value: 108 - public const int AppCompatTheme_tooltipFrameBackground = 108; + public const int AppCompatTheme_radioButtonStyle = 108; // aapt resource value: 109 - public const int AppCompatTheme_windowActionBar = 109; + public const int AppCompatTheme_ratingBarStyle = 109; // aapt resource value: 110 - public const int AppCompatTheme_windowActionBarOverlay = 110; + public const int AppCompatTheme_ratingBarStyleIndicator = 110; // aapt resource value: 111 - public const int AppCompatTheme_windowActionModeOverlay = 111; + public const int AppCompatTheme_ratingBarStyleSmall = 111; + + // aapt resource value: 69 + public const int AppCompatTheme_searchViewStyle = 69; // aapt resource value: 112 - public const int AppCompatTheme_windowFixedHeightMajor = 112; + public const int AppCompatTheme_seekBarStyle = 112; + + // aapt resource value: 53 + public const int AppCompatTheme_selectableItemBackground = 53; + + // aapt resource value: 54 + public const int AppCompatTheme_selectableItemBackgroundBorderless = 54; + + // aapt resource value: 48 + public const int AppCompatTheme_spinnerDropDownItemStyle = 48; // aapt resource value: 113 - public const int AppCompatTheme_windowFixedHeightMinor = 113; + public const int AppCompatTheme_spinnerStyle = 113; // aapt resource value: 114 - public const int AppCompatTheme_windowFixedWidthMajor = 114; + public const int AppCompatTheme_switchStyle = 114; - // aapt resource value: 115 - public const int AppCompatTheme_windowFixedWidthMinor = 115; + // aapt resource value: 40 + public const int AppCompatTheme_textAppearanceLargePopupMenu = 40; - // aapt resource value: 116 - public const int AppCompatTheme_windowMinWidthMajor = 116; + // aapt resource value: 77 + public const int AppCompatTheme_textAppearanceListItem = 77; + + // aapt resource value: 78 + public const int AppCompatTheme_textAppearanceListItemSecondary = 78; + + // aapt resource value: 79 + public const int AppCompatTheme_textAppearanceListItemSmall = 79; + + // aapt resource value: 42 + public const int AppCompatTheme_textAppearancePopupMenuHeader = 42; + + // aapt resource value: 67 + public const int AppCompatTheme_textAppearanceSearchResultSubtitle = 67; + + // aapt resource value: 66 + public const int AppCompatTheme_textAppearanceSearchResultTitle = 66; + + // aapt resource value: 41 + public const int AppCompatTheme_textAppearanceSmallPopupMenu = 41; + + // aapt resource value: 98 + public const int AppCompatTheme_textColorAlertDialogListItem = 98; + + // aapt resource value: 68 + public const int AppCompatTheme_textColorSearchUrl = 68; + + // aapt resource value: 60 + public const int AppCompatTheme_toolbarNavigationButtonStyle = 60; + + // aapt resource value: 59 + public const int AppCompatTheme_toolbarStyle = 59; // aapt resource value: 117 - public const int AppCompatTheme_windowMinWidthMinor = 117; + public const int AppCompatTheme_tooltipForegroundColor = 117; - // aapt resource value: 118 - public const int AppCompatTheme_windowNoTitle = 118; + // aapt resource value: 116 + public const int AppCompatTheme_tooltipFrameBackground = 116; - // aapt resource value: { 0x7F040120,0x7F040121,0x7F040150 } + // aapt resource value: 2 + public const int AppCompatTheme_windowActionBar = 2; + + // aapt resource value: 4 + public const int AppCompatTheme_windowActionBarOverlay = 4; + + // aapt resource value: 5 + public const int AppCompatTheme_windowActionModeOverlay = 5; + + // aapt resource value: 9 + public const int AppCompatTheme_windowFixedHeightMajor = 9; + + // aapt resource value: 7 + public const int AppCompatTheme_windowFixedHeightMinor = 7; + + // aapt resource value: 6 + public const int AppCompatTheme_windowFixedWidthMajor = 6; + + // aapt resource value: 8 + public const int AppCompatTheme_windowFixedWidthMinor = 8; + + // aapt resource value: 10 + public const int AppCompatTheme_windowMinWidthMajor = 10; + + // aapt resource value: 11 + public const int AppCompatTheme_windowMinWidthMinor = 11; + + // aapt resource value: 3 + public const int AppCompatTheme_windowNoTitle = 3; + public static int[] BallPulseFooter = new int[] { - 2130968864, - 2130968865, - 2130968912}; - - // aapt resource value: 0 - public const int BallPulseFooter_srlAnimatingColor = 0; + 2130772317, + 2130772338, + 2130772339}; // aapt resource value: 1 - public const int BallPulseFooter_srlClassicsSpinnerStyle = 1; + public const int BallPulseFooter_srlAnimatingColor = 1; + + // aapt resource value: 0 + public const int BallPulseFooter_srlClassicsSpinnerStyle = 0; // aapt resource value: 2 public const int BallPulseFooter_srlNormalColor = 2; - // aapt resource value: { 0x7F04011F,0x7F040132,0x7F040151 } public static int[] BezierRadarHeader = new int[] { - 2130968863, - 2130968882, - 2130968913}; + 2130772316, + 2130772324, + 2130772326}; // aapt resource value: 0 public const int BezierRadarHeader_srlAccentColor = 0; @@ -6285,19 +6304,18 @@ // aapt resource value: 2 public const int BezierRadarHeader_srlPrimaryColor = 2; - // aapt resource value: { 0x7F040093,0x7F0400C4,0x7F0400C5,0x7F0400C8,0x7F0400E8 } public static int[] BottomNavigationView = new int[] { - 2130968723, - 2130968772, - 2130968773, - 2130968776, - 2130968808}; + 2130772005, + 2130772266, + 2130772267, + 2130772268, + 2130772269}; // aapt resource value: 0 public const int BottomNavigationView_elevation = 0; - // aapt resource value: 1 - public const int BottomNavigationView_itemBackground = 1; + // aapt resource value: 4 + public const int BottomNavigationView_itemBackground = 4; // aapt resource value: 2 public const int BottomNavigationView_itemIconTint = 2; @@ -6305,51 +6323,48 @@ // aapt resource value: 3 public const int BottomNavigationView_itemTextColor = 3; - // aapt resource value: 4 - public const int BottomNavigationView_menu = 4; + // aapt resource value: 1 + public const int BottomNavigationView_menu = 1; - // aapt resource value: { 0x7F040049,0x7F04004B,0x7F04004C } public static int[] BottomSheetBehavior_Layout = new int[] { - 2130968649, - 2130968651, - 2130968652}; - - // aapt resource value: 0 - public const int BottomSheetBehavior_Layout_behavior_hideable = 0; + 2130772228, + 2130772229, + 2130772230}; // aapt resource value: 1 - public const int BottomSheetBehavior_Layout_behavior_peekHeight = 1; + public const int BottomSheetBehavior_Layout_behavior_hideable = 1; + + // aapt resource value: 0 + public const int BottomSheetBehavior_Layout_behavior_peekHeight = 0; // aapt resource value: 2 public const int BottomSheetBehavior_Layout_behavior_skipCollapsed = 2; - // aapt resource value: { 0x7F040026 } public static int[] ButtonBarLayout = new int[] { - 2130968614}; + 2130772146}; // aapt resource value: 0 public const int ButtonBarLayout_allowStacking = 0; - // aapt resource value: { 0x7F04011F,0x7F040121,0x7F040125,0x7F040126,0x7F040127,0x7F040128,0x7F040129,0x7F04012A,0x7F040140,0x7F040151,0x7F040154,0x7F040155,0x7F040156,0x7F040157,0x7F040158,0x7F040159,0x7F04015A,0x7F04015D } public static int[] ClassicsFooter = new int[] { - 2130968863, - 2130968865, - 2130968869, - 2130968870, - 2130968871, - 2130968872, - 2130968873, - 2130968874, - 2130968896, - 2130968913, - 2130968916, - 2130968917, - 2130968918, - 2130968919, - 2130968920, - 2130968921, - 2130968922, - 2130968925}; + 2130772316, + 2130772317, + 2130772318, + 2130772319, + 2130772320, + 2130772321, + 2130772322, + 2130772323, + 2130772325, + 2130772326, + 2130772327, + 2130772328, + 2130772329, + 2130772330, + 2130772331, + 2130772332, + 2130772333, + 2130772336}; // aapt resource value: 0 public const int ClassicsFooter_srlAccentColor = 0; @@ -6405,30 +6420,29 @@ // aapt resource value: 17 public const int ClassicsFooter_srlTextSizeTitle = 17; - // aapt resource value: { 0x7F04011F,0x7F040121,0x7F040125,0x7F040126,0x7F040127,0x7F040128,0x7F040129,0x7F04012A,0x7F040133,0x7F040140,0x7F040151,0x7F040154,0x7F040155,0x7F040156,0x7F040158,0x7F040159,0x7F04015A,0x7F04015B,0x7F04015C,0x7F04015D,0x7F04015E,0x7F04015F } public static int[] ClassicsHeader = new int[] { - 2130968863, - 2130968865, - 2130968869, - 2130968870, - 2130968871, - 2130968872, - 2130968873, - 2130968874, - 2130968883, - 2130968896, - 2130968913, - 2130968916, - 2130968917, - 2130968918, - 2130968920, - 2130968921, - 2130968922, - 2130968923, - 2130968924, - 2130968925, - 2130968926, - 2130968927}; + 2130772316, + 2130772317, + 2130772318, + 2130772319, + 2130772320, + 2130772321, + 2130772322, + 2130772323, + 2130772325, + 2130772326, + 2130772327, + 2130772328, + 2130772329, + 2130772331, + 2130772332, + 2130772333, + 2130772334, + 2130772335, + 2130772336, + 2130772337, + 2130772340, + 2130772341}; // aapt resource value: 0 public const int ClassicsHeader_srlAccentColor = 0; @@ -6454,101 +6468,117 @@ // aapt resource value: 7 public const int ClassicsHeader_srlDrawableSize = 7; + // aapt resource value: 21 + public const int ClassicsHeader_srlEnableLastTime = 21; + // aapt resource value: 8 - public const int ClassicsHeader_srlEnableLastTime = 8; + public const int ClassicsHeader_srlFinishDuration = 8; // aapt resource value: 9 - public const int ClassicsHeader_srlFinishDuration = 9; + public const int ClassicsHeader_srlPrimaryColor = 9; // aapt resource value: 10 - public const int ClassicsHeader_srlPrimaryColor = 10; + public const int ClassicsHeader_srlTextFailed = 10; // aapt resource value: 11 - public const int ClassicsHeader_srlTextFailed = 11; + public const int ClassicsHeader_srlTextFinish = 11; // aapt resource value: 12 - public const int ClassicsHeader_srlTextFinish = 12; + public const int ClassicsHeader_srlTextLoading = 12; // aapt resource value: 13 - public const int ClassicsHeader_srlTextLoading = 13; + public const int ClassicsHeader_srlTextPulling = 13; // aapt resource value: 14 - public const int ClassicsHeader_srlTextPulling = 14; + public const int ClassicsHeader_srlTextRefreshing = 14; // aapt resource value: 15 - public const int ClassicsHeader_srlTextRefreshing = 15; + public const int ClassicsHeader_srlTextRelease = 15; // aapt resource value: 16 - public const int ClassicsHeader_srlTextRelease = 16; + public const int ClassicsHeader_srlTextSecondary = 16; // aapt resource value: 17 - public const int ClassicsHeader_srlTextSecondary = 17; + public const int ClassicsHeader_srlTextSizeTime = 17; // aapt resource value: 18 - public const int ClassicsHeader_srlTextSizeTime = 18; - - // aapt resource value: 19 - public const int ClassicsHeader_srlTextSizeTitle = 19; + public const int ClassicsHeader_srlTextSizeTitle = 18; // aapt resource value: 20 public const int ClassicsHeader_srlTextTimeMarginTop = 20; - // aapt resource value: 21 - public const int ClassicsHeader_srlTextUpdate = 21; + // aapt resource value: 19 + public const int ClassicsHeader_srlTextUpdate = 19; - // aapt resource value: { 0x7F040063,0x7F040064,0x7F040078,0x7F040098,0x7F040099,0x7F04009A,0x7F04009B,0x7F04009C,0x7F04009D,0x7F04009E,0x7F04010A,0x7F04010B,0x7F040165,0x7F040197,0x7F040198,0x7F0401A2 } public static int[] CollapsingToolbarLayout = new int[] { - 2130968675, - 2130968676, - 2130968696, - 2130968728, - 2130968729, - 2130968730, - 2130968731, - 2130968732, - 2130968733, - 2130968734, - 2130968842, - 2130968843, - 2130968933, - 2130968983, - 2130968984, - 2130968994}; + 2130771980, + 2130772231, + 2130772232, + 2130772233, + 2130772234, + 2130772235, + 2130772236, + 2130772237, + 2130772238, + 2130772239, + 2130772240, + 2130772241, + 2130772242, + 2130772243, + 2130772244, + 2130772245}; - // aapt resource value: 0 - public const int CollapsingToolbarLayout_collapsedTitleGravity = 0; + // aapt resource value: 13 + public const int CollapsingToolbarLayout_collapsedTitleGravity = 13; + + // aapt resource value: 7 + public const int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7; + + // aapt resource value: 8 + public const int CollapsingToolbarLayout_contentScrim = 8; + + // aapt resource value: 14 + public const int CollapsingToolbarLayout_expandedTitleGravity = 14; // aapt resource value: 1 - public const int CollapsingToolbarLayout_collapsedTitleTextAppearance = 1; - - // aapt resource value: 2 - public const int CollapsingToolbarLayout_contentScrim = 2; - - // aapt resource value: 3 - public const int CollapsingToolbarLayout_expandedTitleGravity = 3; - - // aapt resource value: 4 - public const int CollapsingToolbarLayout_expandedTitleMargin = 4; + public const int CollapsingToolbarLayout_expandedTitleMargin = 1; // aapt resource value: 5 public const int CollapsingToolbarLayout_expandedTitleMarginBottom = 5; + // aapt resource value: 4 + public const int CollapsingToolbarLayout_expandedTitleMarginEnd = 4; + + // aapt resource value: 2 + public const int CollapsingToolbarLayout_expandedTitleMarginStart = 2; + + // aapt resource value: 3 + public const int CollapsingToolbarLayout_expandedTitleMarginTop = 3; + // aapt resource value: 6 - public const int CollapsingToolbarLayout_expandedTitleMarginEnd = 6; + public const int CollapsingToolbarLayout_expandedTitleTextAppearance = 6; - // aapt resource value: 7 - public const int CollapsingToolbarLayout_expandedTitleMarginStart = 7; + // aapt resource value: 12 + public const int CollapsingToolbarLayout_scrimAnimationDuration = 12; - // aapt resource value: 8 - public const int CollapsingToolbarLayout_expandedTitleMarginTop = 8; + // aapt resource value: 11 + public const int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11; // aapt resource value: 9 - public const int CollapsingToolbarLayout_expandedTitleTextAppearance = 9; + public const int CollapsingToolbarLayout_statusBarScrim = 9; - // aapt resource value: { 0x7F0400CF,0x7F0400D0 } + // aapt resource value: 0 + public const int CollapsingToolbarLayout_title = 0; + + // aapt resource value: 15 + public const int CollapsingToolbarLayout_titleEnabled = 15; + + // aapt resource value: 10 + public const int CollapsingToolbarLayout_toolbarId = 10; + public static int[] CollapsingToolbarLayout_Layout = new int[] { - 2130968783, - 2130968784}; + 2130772246, + 2130772247}; // aapt resource value: 0 public const int CollapsingToolbarLayout_Layout_layout_collapseMode = 0; @@ -6556,29 +6586,10 @@ // aapt resource value: 1 public const int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1; - // aapt resource value: 10 - public const int CollapsingToolbarLayout_scrimAnimationDuration = 10; - - // aapt resource value: 11 - public const int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11; - - // aapt resource value: 12 - public const int CollapsingToolbarLayout_statusBarScrim = 12; - - // aapt resource value: 13 - public const int CollapsingToolbarLayout_title = 13; - - // aapt resource value: 14 - public const int CollapsingToolbarLayout_titleEnabled = 14; - - // aapt resource value: 15 - public const int CollapsingToolbarLayout_toolbarId = 15; - - // aapt resource value: { 0x10101A5,0x101031F,0x7F040027 } public static int[] ColorStateListItem = new int[] { 16843173, 16843551, - 2130968615}; + 2130772147}; // aapt resource value: 2 public const int ColorStateListItem_alpha = 2; @@ -6589,11 +6600,10 @@ // aapt resource value: 0 public const int ColorStateListItem_android_color = 0; - // aapt resource value: { 0x1010107,0x7F04005B,0x7F04005C } public static int[] CompoundButton = new int[] { 16843015, - 2130968667, - 2130968668}; + 2130772148, + 2130772149}; // aapt resource value: 0 public const int CompoundButton_android_button = 0; @@ -6604,53 +6614,50 @@ // aapt resource value: 2 public const int CompoundButton_buttonTintMode = 2; - // aapt resource value: { 0x7F0400C9,0x7F040164 } public static int[] CoordinatorLayout = new int[] { - 2130968777, - 2130968932}; + 2130772248, + 2130772249}; // aapt resource value: 0 public const int CoordinatorLayout_keylines = 0; - // aapt resource value: { 0x10100B3,0x7F0400CC,0x7F0400CD,0x7F0400CE,0x7F0400D1,0x7F0400D2,0x7F0400D3 } + // aapt resource value: 1 + public const int CoordinatorLayout_statusBarBackground = 1; + public static int[] CoordinatorLayout_Layout = new int[] { 16842931, - 2130968780, - 2130968781, - 2130968782, - 2130968785, - 2130968786, - 2130968787}; + 2130772250, + 2130772251, + 2130772252, + 2130772253, + 2130772254, + 2130772255}; // aapt resource value: 0 public const int CoordinatorLayout_Layout_android_layout_gravity = 0; - // aapt resource value: 1 - public const int CoordinatorLayout_Layout_layout_anchor = 1; - // aapt resource value: 2 - public const int CoordinatorLayout_Layout_layout_anchorGravity = 2; - - // aapt resource value: 3 - public const int CoordinatorLayout_Layout_layout_behavior = 3; + public const int CoordinatorLayout_Layout_layout_anchor = 2; // aapt resource value: 4 - public const int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4; + public const int CoordinatorLayout_Layout_layout_anchorGravity = 4; + + // aapt resource value: 1 + public const int CoordinatorLayout_Layout_layout_behavior = 1; + + // aapt resource value: 6 + public const int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 6; // aapt resource value: 5 public const int CoordinatorLayout_Layout_layout_insetEdge = 5; - // aapt resource value: 6 - public const int CoordinatorLayout_Layout_layout_keyline = 6; + // aapt resource value: 3 + public const int CoordinatorLayout_Layout_layout_keyline = 3; - // aapt resource value: 1 - public const int CoordinatorLayout_statusBarBackground = 1; - - // aapt resource value: { 0x7F040050,0x7F040051,0x7F04018B } public static int[] DesignTheme = new int[] { - 2130968656, - 2130968657, - 2130968971}; + 2130772256, + 2130772257, + 2130772258}; // aapt resource value: 0 public const int DesignTheme_bottomSheetDialogTheme = 0; @@ -6661,70 +6668,61 @@ // aapt resource value: 2 public const int DesignTheme_textColorError = 2; - // aapt resource value: { 0x7F04003A,0x7F04003B,0x7F040047,0x7F040065,0x7F04008C,0x7F0400B0,0x7F04011A,0x7F04018E } public static int[] DrawerArrowToggle = new int[] { - 2130968634, - 2130968635, - 2130968647, - 2130968677, - 2130968716, - 2130968752, - 2130968858, - 2130968974}; - - // aapt resource value: 0 - public const int DrawerArrowToggle_arrowHeadLength = 0; - - // aapt resource value: 1 - public const int DrawerArrowToggle_arrowShaftLength = 1; - - // aapt resource value: 2 - public const int DrawerArrowToggle_barLength = 2; - - // aapt resource value: 3 - public const int DrawerArrowToggle_color = 3; + 2130772150, + 2130772151, + 2130772152, + 2130772153, + 2130772154, + 2130772155, + 2130772156, + 2130772157}; // aapt resource value: 4 - public const int DrawerArrowToggle_drawableSize = 4; + public const int DrawerArrowToggle_arrowHeadLength = 4; // aapt resource value: 5 - public const int DrawerArrowToggle_gapBetweenBars = 5; + public const int DrawerArrowToggle_arrowShaftLength = 5; // aapt resource value: 6 - public const int DrawerArrowToggle_spinBars = 6; + public const int DrawerArrowToggle_barLength = 6; + + // aapt resource value: 0 + public const int DrawerArrowToggle_color = 0; + + // aapt resource value: 2 + public const int DrawerArrowToggle_drawableSize = 2; + + // aapt resource value: 3 + public const int DrawerArrowToggle_gapBetweenBars = 3; + + // aapt resource value: 1 + public const int DrawerArrowToggle_spinBars = 1; // aapt resource value: 7 public const int DrawerArrowToggle_thickness = 7; - // aapt resource value: { 0x7F040045,0x7F040046,0x7F04004E,0x7F040093,0x7F04009F,0x7F0400FF,0x7F040109,0x7F0401AB } public static int[] FloatingActionButton = new int[] { - 2130968645, - 2130968646, - 2130968654, - 2130968723, - 2130968735, - 2130968831, - 2130968841, - 2130969003}; - - // aapt resource value: 0 - public const int FloatingActionButton_backgroundTint = 0; + 2130772005, + 2130772221, + 2130772222, + 2130772259, + 2130772260, + 2130772261, + 2130772262, + 2130772263}; // aapt resource value: 1 - public const int FloatingActionButton_backgroundTintMode = 1; - - // aapt resource value: { 0x7F040048 } - public static int[] FloatingActionButton_Behavior_Layout = new int[] { - 2130968648}; - - // aapt resource value: 0 - public const int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0; + public const int FloatingActionButton_backgroundTint = 1; // aapt resource value: 2 - public const int FloatingActionButton_borderWidth = 2; + public const int FloatingActionButton_backgroundTintMode = 2; - // aapt resource value: 3 - public const int FloatingActionButton_elevation = 3; + // aapt resource value: 6 + public const int FloatingActionButton_borderWidth = 6; + + // aapt resource value: 0 + public const int FloatingActionButton_elevation = 0; // aapt resource value: 4 public const int FloatingActionButton_fabSize = 4; @@ -6732,59 +6730,62 @@ // aapt resource value: 5 public const int FloatingActionButton_pressedTranslationZ = 5; - // aapt resource value: 6 - public const int FloatingActionButton_rippleColor = 6; + // aapt resource value: 3 + public const int FloatingActionButton_rippleColor = 3; // aapt resource value: 7 public const int FloatingActionButton_useCompatPadding = 7; - // aapt resource value: { 0x7F0400A7,0x7F0400A8,0x7F0400A9,0x7F0400AA,0x7F0400AB,0x7F0400AC } - public static int[] FontFamily = new int[] { - 2130968743, - 2130968744, - 2130968745, - 2130968746, - 2130968747, - 2130968748}; - - // aapt resource value: { 0x7F0400A5,0x7F0400AD,0x7F0400AE } - public static int[] FontFamilyFont = new int[] { - 2130968741, - 2130968749, - 2130968750}; + public static int[] FloatingActionButton_Behavior_Layout = new int[] { + 2130772264}; // aapt resource value: 0 - public const int FontFamilyFont_font = 0; + public const int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0; - // aapt resource value: 1 - public const int FontFamilyFont_fontStyle = 1; - - // aapt resource value: 2 - public const int FontFamilyFont_fontWeight = 2; + public static int[] FontFamily = new int[] { + 2130772305, + 2130772306, + 2130772307, + 2130772308, + 2130772309, + 2130772310}; // aapt resource value: 0 public const int FontFamily_fontProviderAuthority = 0; - // aapt resource value: 1 - public const int FontFamily_fontProviderCerts = 1; - - // aapt resource value: 2 - public const int FontFamily_fontProviderFetchStrategy = 2; - // aapt resource value: 3 - public const int FontFamily_fontProviderFetchTimeout = 3; + public const int FontFamily_fontProviderCerts = 3; // aapt resource value: 4 - public const int FontFamily_fontProviderPackage = 4; + public const int FontFamily_fontProviderFetchStrategy = 4; // aapt resource value: 5 - public const int FontFamily_fontProviderQuery = 5; + public const int FontFamily_fontProviderFetchTimeout = 5; - // aapt resource value: { 0x1010109,0x1010200,0x7F0400AF } + // aapt resource value: 1 + public const int FontFamily_fontProviderPackage = 1; + + // aapt resource value: 2 + public const int FontFamily_fontProviderQuery = 2; + + public static int[] FontFamilyFont = new int[] { + 2130772311, + 2130772312, + 2130772313}; + + // aapt resource value: 1 + public const int FontFamilyFont_font = 1; + + // aapt resource value: 0 + public const int FontFamilyFont_fontStyle = 0; + + // aapt resource value: 2 + public const int FontFamilyFont_fontWeight = 2; + public static int[] ForegroundLinearLayout = new int[] { 16843017, 16843264, - 2130968751}; + 2130772265}; // aapt resource value: 0 public const int ForegroundLinearLayout_android_foreground = 0; @@ -6795,146 +6796,142 @@ // aapt resource value: 2 public const int ForegroundLinearLayout_foregroundInsidePadding = 2; - // aapt resource value: { 0x7F040029,0x7F04002A,0x7F04002B,0x7F04002C,0x7F04002D,0x7F04002E,0x7F04002F,0x7F040030,0x7F040031,0x7F040032,0x7F040033,0x7F040034,0x7F040035,0x7F040036,0x7F040037,0x7F040038,0x7F040039,0x7F0400B2 } public static int[] HDLArcSeekBar = new int[] { - 2130968617, - 2130968618, - 2130968619, - 2130968620, - 2130968621, - 2130968622, - 2130968623, - 2130968624, - 2130968625, - 2130968626, - 2130968627, - 2130968628, - 2130968629, - 2130968630, - 2130968631, - 2130968632, - 2130968633, - 2130968754}; - - // aapt resource value: 0 - public const int HDLArcSeekBar_arc_border_color = 0; - - // aapt resource value: 1 - public const int HDLArcSeekBar_arc_border_width = 1; - - // aapt resource value: 2 - public const int HDLArcSeekBar_arc_colors = 2; - - // aapt resource value: 3 - public const int HDLArcSeekBar_arc_max = 3; - - // aapt resource value: 4 - public const int HDLArcSeekBar_arc_min = 4; + 2130772382, + 2130772383, + 2130772384, + 2130772385, + 2130772386, + 2130772387, + 2130772388, + 2130772389, + 2130772390, + 2130772391, + 2130772392, + 2130772393, + 2130772394, + 2130772395, + 2130772396, + 2130772397, + 2130772398, + 2130772399}; // aapt resource value: 5 - public const int HDLArcSeekBar_arc_open_angle = 5; + public const int HDLArcSeekBar_arc_border_color = 5; + + // aapt resource value: 4 + public const int HDLArcSeekBar_arc_border_width = 4; + + // aapt resource value: 3 + public const int HDLArcSeekBar_arc_colors = 3; // aapt resource value: 6 - public const int HDLArcSeekBar_arc_progress = 6; + public const int HDLArcSeekBar_arc_max = 6; // aapt resource value: 7 - public const int HDLArcSeekBar_arc_progress_bar_color = 7; + public const int HDLArcSeekBar_arc_min = 7; + + // aapt resource value: 1 + public const int HDLArcSeekBar_arc_open_angle = 1; // aapt resource value: 8 - public const int HDLArcSeekBar_arc_progress_bar_text_unit = 8; + public const int HDLArcSeekBar_arc_progress = 8; - // aapt resource value: 9 - public const int HDLArcSeekBar_arc_rotate_angle = 9; + // aapt resource value: 16 + public const int HDLArcSeekBar_arc_progress_bar_color = 16; + + // aapt resource value: 17 + public const int HDLArcSeekBar_arc_progress_bar_text_unit = 17; + + // aapt resource value: 2 + public const int HDLArcSeekBar_arc_rotate_angle = 2; + + // aapt resource value: 15 + public const int HDLArcSeekBar_arc_shadow_radius = 15; // aapt resource value: 10 - public const int HDLArcSeekBar_arc_shadow_radius = 10; + public const int HDLArcSeekBar_arc_thumb_color = 10; // aapt resource value: 11 - public const int HDLArcSeekBar_arc_thumb_color = 11; - - // aapt resource value: 12 - public const int HDLArcSeekBar_arc_thumb_radius = 12; + public const int HDLArcSeekBar_arc_thumb_radius = 11; // aapt resource value: 13 public const int HDLArcSeekBar_arc_thumb_shadow_color = 13; - // aapt resource value: 14 - public const int HDLArcSeekBar_arc_thumb_shadow_radius = 14; + // aapt resource value: 12 + public const int HDLArcSeekBar_arc_thumb_shadow_radius = 12; - // aapt resource value: 15 - public const int HDLArcSeekBar_arc_thumb_width = 15; - - // aapt resource value: 16 - public const int HDLArcSeekBar_arc_width = 16; - - // aapt resource value: 17 - public const int HDLArcSeekBar_hdl_arc_thumb_mode = 17; - - // aapt resource value: { 0x7F04007E,0x7F04007F,0x7F040080,0x7F040081,0x7F040082,0x7F04010F } - public static int[] HDLCurtainSeekBar = new int[] { - 2130968702, - 2130968703, - 2130968704, - 2130968705, - 2130968706, - 2130968847}; + // aapt resource value: 9 + public const int HDLArcSeekBar_arc_thumb_width = 9; // aapt resource value: 0 - public const int HDLCurtainSeekBar_curtain_bar_bg_color = 0; + public const int HDLArcSeekBar_arc_width = 0; - // aapt resource value: 1 - public const int HDLCurtainSeekBar_curtain_bar_border_color = 1; + // aapt resource value: 14 + public const int HDLArcSeekBar_hdl_arc_thumb_mode = 14; + + public static int[] HDLCurtainSeekBar = new int[] { + 2130772400, + 2130772401, + 2130772402, + 2130772403, + 2130772404, + 2130772405}; // aapt resource value: 2 - public const int HDLCurtainSeekBar_curtain_bar_color = 2; + public const int HDLCurtainSeekBar_curtain_bar_bg_color = 2; // aapt resource value: 3 - public const int HDLCurtainSeekBar_curtain_bar_height = 3; + public const int HDLCurtainSeekBar_curtain_bar_border_color = 3; + + // aapt resource value: 0 + public const int HDLCurtainSeekBar_curtain_bar_color = 0; + + // aapt resource value: 5 + public const int HDLCurtainSeekBar_curtain_bar_height = 5; // aapt resource value: 4 public const int HDLCurtainSeekBar_curtain_bar_width = 4; - // aapt resource value: 5 - public const int HDLCurtainSeekBar_second_curtain_bar_color = 5; + // aapt resource value: 1 + public const int HDLCurtainSeekBar_second_curtain_bar_color = 1; - // aapt resource value: { 0x7F040110,0x7F0401AD,0x7F0401AE,0x7F0401AF,0x7F0401B0,0x7F0401B1 } public static int[] HDLWaveSeekBar = new int[] { - 2130968848, - 2130969005, - 2130969006, - 2130969007, - 2130969008, - 2130969009}; - - // aapt resource value: 0 - public const int HDLWaveSeekBar_second_wave_color = 0; + 2130772406, + 2130772407, + 2130772408, + 2130772409, + 2130772410, + 2130772411}; // aapt resource value: 1 - public const int HDLWaveSeekBar_wave_bg_color = 1; + public const int HDLWaveSeekBar_second_wave_color = 1; // aapt resource value: 2 - public const int HDLWaveSeekBar_wave_border_color = 2; + public const int HDLWaveSeekBar_wave_bg_color = 2; // aapt resource value: 3 - public const int HDLWaveSeekBar_wave_color = 3; + public const int HDLWaveSeekBar_wave_border_color = 3; - // aapt resource value: 4 - public const int HDLWaveSeekBar_wave_height = 4; + // aapt resource value: 0 + public const int HDLWaveSeekBar_wave_color = 0; // aapt resource value: 5 - public const int HDLWaveSeekBar_wave_width = 5; + public const int HDLWaveSeekBar_wave_height = 5; - // aapt resource value: { 0x10100AF,0x10100C4,0x1010126,0x1010127,0x1010128,0x7F040088,0x7F04008A,0x7F0400E7,0x7F040115 } + // aapt resource value: 4 + public const int HDLWaveSeekBar_wave_width = 4; + public static int[] LinearLayoutCompat = new int[] { 16842927, 16842948, 16843046, 16843047, 16843048, - 2130968712, - 2130968714, - 2130968807, - 2130968853}; + 2130771988, + 2130772158, + 2130772159, + 2130772160}; // aapt resource value: 2 public const int LinearLayoutCompat_android_baselineAligned = 2; @@ -6954,10 +6951,15 @@ // aapt resource value: 5 public const int LinearLayoutCompat_divider = 5; - // aapt resource value: 6 - public const int LinearLayoutCompat_dividerPadding = 6; + // aapt resource value: 8 + public const int LinearLayoutCompat_dividerPadding = 8; - // aapt resource value: { 0x10100B3,0x10100F4,0x10100F5,0x1010181 } + // aapt resource value: 6 + public const int LinearLayoutCompat_measureWithLargestChild = 6; + + // aapt resource value: 7 + public const int LinearLayoutCompat_showDividers = 7; + public static int[] LinearLayoutCompat_Layout = new int[] { 16842931, 16842996, @@ -6976,13 +6978,6 @@ // aapt resource value: 1 public const int LinearLayoutCompat_Layout_android_layout_width = 1; - // aapt resource value: 7 - public const int LinearLayoutCompat_measureWithLargestChild = 7; - - // aapt resource value: 8 - public const int LinearLayoutCompat_showDividers = 8; - - // aapt resource value: { 0x10102AC,0x10102AD } public static int[] ListPopupWindow = new int[] { 16843436, 16843437}; @@ -6993,7 +6988,6 @@ // aapt resource value: 1 public const int ListPopupWindow_android_dropDownVerticalOffset = 1; - // aapt resource value: { 0x101000E,0x10100D0,0x1010194,0x10101DE,0x10101DF,0x10101E0 } public static int[] MenuGroup = new int[] { 16842766, 16842960, @@ -7020,7 +7014,6 @@ // aapt resource value: 2 public const int MenuGroup_android_visible = 2; - // aapt resource value: { 0x1010002,0x101000E,0x10100D0,0x1010106,0x1010194,0x10101DE,0x10101DF,0x10101E1,0x10101E2,0x10101E3,0x10101E4,0x10101E5,0x101026F,0x7F04000D,0x7F04001F,0x7F040020,0x7F040028,0x7F040071,0x7F0400BC,0x7F0400BD,0x7F0400ED,0x7F040114,0x7F0401A7 } public static int[] MenuItem = new int[] { 16842754, 16842766, @@ -7035,28 +7028,28 @@ 16843236, 16843237, 16843375, - 2130968589, - 2130968607, - 2130968608, - 2130968616, - 2130968689, - 2130968764, - 2130968765, - 2130968813, - 2130968852, - 2130968999}; - - // aapt resource value: 13 - public const int MenuItem_actionLayout = 13; - - // aapt resource value: 14 - public const int MenuItem_actionProviderClass = 14; - - // aapt resource value: 15 - public const int MenuItem_actionViewClass = 15; + 2130772161, + 2130772162, + 2130772163, + 2130772164, + 2130772165, + 2130772166, + 2130772167, + 2130772168, + 2130772169, + 2130772170}; // aapt resource value: 16 - public const int MenuItem_alphabeticModifiers = 16; + public const int MenuItem_actionLayout = 16; + + // aapt resource value: 18 + public const int MenuItem_actionProviderClass = 18; + + // aapt resource value: 17 + public const int MenuItem_actionViewClass = 17; + + // aapt resource value: 13 + public const int MenuItem_alphabeticModifiers = 13; // aapt resource value: 9 public const int MenuItem_android_alphabeticShortcut = 9; @@ -7097,25 +7090,24 @@ // aapt resource value: 4 public const int MenuItem_android_visible = 4; - // aapt resource value: 17 - public const int MenuItem_contentDescription = 17; - - // aapt resource value: 18 - public const int MenuItem_iconTint = 18; - // aapt resource value: 19 - public const int MenuItem_iconTintMode = 19; - - // aapt resource value: 20 - public const int MenuItem_numericModifiers = 20; + public const int MenuItem_contentDescription = 19; // aapt resource value: 21 - public const int MenuItem_showAsAction = 21; + public const int MenuItem_iconTint = 21; // aapt resource value: 22 - public const int MenuItem_tooltipText = 22; + public const int MenuItem_iconTintMode = 22; - // aapt resource value: { 0x10100AE,0x101012C,0x101012D,0x101012E,0x101012F,0x1010130,0x1010131,0x7F0400FE,0x7F040166 } + // aapt resource value: 14 + public const int MenuItem_numericModifiers = 14; + + // aapt resource value: 15 + public const int MenuItem_showAsAction = 15; + + // aapt resource value: 20 + public const int MenuItem_tooltipText = 20; + public static int[] MenuView = new int[] { 16842926, 16843052, @@ -7124,8 +7116,8 @@ 16843055, 16843056, 16843057, - 2130968830, - 2130968934}; + 2130772171, + 2130772172}; // aapt resource value: 4 public const int MenuView_android_headerBackground = 4; @@ -7154,18 +7146,17 @@ // aapt resource value: 8 public const int MenuView_subMenuArrow = 8; - // aapt resource value: { 0x10100D4,0x10100DD,0x101011F,0x7F040093,0x7F0400B3,0x7F0400C4,0x7F0400C5,0x7F0400C7,0x7F0400C8,0x7F0400E8 } public static int[] NavigationView = new int[] { 16842964, 16842973, 16843039, - 2130968723, - 2130968755, - 2130968772, - 2130968773, - 2130968775, - 2130968776, - 2130968808}; + 2130772005, + 2130772266, + 2130772267, + 2130772268, + 2130772269, + 2130772270, + 2130772271}; // aapt resource value: 0 public const int NavigationView_android_background = 0; @@ -7179,63 +7170,28 @@ // aapt resource value: 3 public const int NavigationView_elevation = 3; - // aapt resource value: 4 - public const int NavigationView_headerLayout = 4; - - // aapt resource value: 5 - public const int NavigationView_itemBackground = 5; - - // aapt resource value: 6 - public const int NavigationView_itemIconTint = 6; + // aapt resource value: 9 + public const int NavigationView_headerLayout = 9; // aapt resource value: 7 - public const int NavigationView_itemTextAppearance = 7; - - // aapt resource value: 8 - public const int NavigationView_itemTextColor = 8; - - // aapt resource value: 9 - public const int NavigationView_menu = 9; - - // aapt resource value: { 0x7F0401B2,0x7F0401B3,0x7F0401B4,0x7F0401B5,0x7F0401B6,0x7F0401B7 } - public static int[] pickerview = new int[] { - 2130969010, - 2130969011, - 2130969012, - 2130969013, - 2130969014, - 2130969015}; - - // aapt resource value: 0 - public const int pickerview_wheelview_dividerColor = 0; - - // aapt resource value: 1 - public const int pickerview_wheelview_gravity = 1; - - // aapt resource value: 2 - public const int pickerview_wheelview_lineSpacingMultiplier = 2; - - // aapt resource value: 3 - public const int pickerview_wheelview_textColorCenter = 3; - - // aapt resource value: 4 - public const int pickerview_wheelview_textColorOut = 4; + public const int NavigationView_itemBackground = 7; // aapt resource value: 5 - public const int pickerview_wheelview_textSize = 5; + public const int NavigationView_itemIconTint = 5; - // aapt resource value: { 0x1010176,0x10102C9,0x7F0400EE } + // aapt resource value: 8 + public const int NavigationView_itemTextAppearance = 8; + + // aapt resource value: 6 + public const int NavigationView_itemTextColor = 6; + + // aapt resource value: 4 + public const int NavigationView_menu = 4; + public static int[] PopupWindow = new int[] { 16843126, 16843465, - 2130968814}; - - // aapt resource value: { 0x7F040161 } - public static int[] PopupWindowBackgroundState = new int[] { - 2130968929}; - - // aapt resource value: 0 - public const int PopupWindowBackgroundState_state_above_anchor = 0; + 2130772173}; // aapt resource value: 1 public const int PopupWindow_android_popupAnimationStyle = 1; @@ -7246,10 +7202,15 @@ // aapt resource value: 2 public const int PopupWindow_overlapAnchor = 2; - // aapt resource value: { 0x7F0400EF,0x7F0400F2 } + public static int[] PopupWindowBackgroundState = new int[] { + 2130772174}; + + // aapt resource value: 0 + public const int PopupWindowBackgroundState_state_above_anchor = 0; + public static int[] RecycleListView = new int[] { - 2130968815, - 2130968818}; + 2130772175, + 2130772176}; // aapt resource value: 0 public const int RecycleListView_paddingBottomNoButtons = 0; @@ -7257,19 +7218,18 @@ // aapt resource value: 1 public const int RecycleListView_paddingTopNoTitle = 1; - // aapt resource value: { 0x10100C4,0x10100F1,0x7F0400A0,0x7F0400A1,0x7F0400A2,0x7F0400A3,0x7F0400A4,0x7F0400CB,0x7F040108,0x7F040119,0x7F040160 } public static int[] RecyclerView = new int[] { 16842948, 16842993, - 2130968736, - 2130968737, - 2130968738, - 2130968739, - 2130968740, - 2130968779, - 2130968840, - 2130968857, - 2130968928}; + 2130771968, + 2130771969, + 2130771970, + 2130771971, + 2130771972, + 2130771973, + 2130771974, + 2130771975, + 2130771976}; // aapt resource value: 1 public const int RecyclerView_android_descendantFocusability = 1; @@ -7277,66 +7237,63 @@ // aapt resource value: 0 public const int RecyclerView_android_orientation = 0; - // aapt resource value: 2 - public const int RecyclerView_fastScrollEnabled = 2; - - // aapt resource value: 3 - public const int RecyclerView_fastScrollHorizontalThumbDrawable = 3; - - // aapt resource value: 4 - public const int RecyclerView_fastScrollHorizontalTrackDrawable = 4; - - // aapt resource value: 5 - public const int RecyclerView_fastScrollVerticalThumbDrawable = 5; - // aapt resource value: 6 - public const int RecyclerView_fastScrollVerticalTrackDrawable = 6; - - // aapt resource value: 7 - public const int RecyclerView_layoutManager = 7; - - // aapt resource value: 8 - public const int RecyclerView_reverseLayout = 8; + public const int RecyclerView_fastScrollEnabled = 6; // aapt resource value: 9 - public const int RecyclerView_spanCount = 9; + public const int RecyclerView_fastScrollHorizontalThumbDrawable = 9; // aapt resource value: 10 - public const int RecyclerView_stackFromEnd = 10; + public const int RecyclerView_fastScrollHorizontalTrackDrawable = 10; - // aapt resource value: { 0x7F0400C2 } + // aapt resource value: 7 + public const int RecyclerView_fastScrollVerticalThumbDrawable = 7; + + // aapt resource value: 8 + public const int RecyclerView_fastScrollVerticalTrackDrawable = 8; + + // aapt resource value: 2 + public const int RecyclerView_layoutManager = 2; + + // aapt resource value: 4 + public const int RecyclerView_reverseLayout = 4; + + // aapt resource value: 3 + public const int RecyclerView_spanCount = 3; + + // aapt resource value: 5 + public const int RecyclerView_stackFromEnd = 5; + public static int[] ScrimInsetsFrameLayout = new int[] { - 2130968770}; + 2130772272}; // aapt resource value: 0 public const int ScrimInsetsFrameLayout_insetForeground = 0; - // aapt resource value: { 0x7F04004A } public static int[] ScrollingViewBehavior_Layout = new int[] { - 2130968650}; + 2130772273}; // aapt resource value: 0 public const int ScrollingViewBehavior_Layout_behavior_overlapTop = 0; - // aapt resource value: { 0x10100DA,0x101011F,0x1010220,0x1010264,0x7F04005F,0x7F040070,0x7F040084,0x7F0400B1,0x7F0400BE,0x7F0400CA,0x7F040102,0x7F040103,0x7F04010C,0x7F04010D,0x7F040167,0x7F04016C,0x7F0401AC } public static int[] SearchView = new int[] { 16842970, 16843039, 16843296, 16843364, - 2130968671, - 2130968688, - 2130968708, - 2130968753, - 2130968766, - 2130968778, - 2130968834, - 2130968835, - 2130968844, - 2130968845, - 2130968935, - 2130968940, - 2130969004}; + 2130772177, + 2130772178, + 2130772179, + 2130772180, + 2130772181, + 2130772182, + 2130772183, + 2130772184, + 2130772185, + 2130772186, + 2130772187, + 2130772188, + 2130772189}; // aapt resource value: 0 public const int SearchView_android_focusable = 0; @@ -7350,84 +7307,83 @@ // aapt resource value: 1 public const int SearchView_android_maxWidth = 1; - // aapt resource value: 4 - public const int SearchView_closeIcon = 4; - - // aapt resource value: 5 - public const int SearchView_commitIcon = 5; - - // aapt resource value: 6 - public const int SearchView_defaultQueryHint = 6; - - // aapt resource value: 7 - public const int SearchView_goIcon = 7; - // aapt resource value: 8 - public const int SearchView_iconifiedByDefault = 8; - - // aapt resource value: 9 - public const int SearchView_layout = 9; - - // aapt resource value: 10 - public const int SearchView_queryBackground = 10; - - // aapt resource value: 11 - public const int SearchView_queryHint = 11; - - // aapt resource value: 12 - public const int SearchView_searchHintIcon = 12; + public const int SearchView_closeIcon = 8; // aapt resource value: 13 - public const int SearchView_searchIcon = 13; + public const int SearchView_commitIcon = 13; - // aapt resource value: 14 - public const int SearchView_submitBackground = 14; + // aapt resource value: 7 + public const int SearchView_defaultQueryHint = 7; + + // aapt resource value: 9 + public const int SearchView_goIcon = 9; + + // aapt resource value: 5 + public const int SearchView_iconifiedByDefault = 5; + + // aapt resource value: 4 + public const int SearchView_layout = 4; // aapt resource value: 15 - public const int SearchView_suggestionRowLayout = 15; + public const int SearchView_queryBackground = 15; + + // aapt resource value: 6 + public const int SearchView_queryHint = 6; + + // aapt resource value: 11 + public const int SearchView_searchHintIcon = 11; + + // aapt resource value: 10 + public const int SearchView_searchIcon = 10; // aapt resource value: 16 - public const int SearchView_voiceIcon = 16; + public const int SearchView_submitBackground = 16; - // aapt resource value: { 0x10100EA,0x10100EB,0x7F04011F,0x7F040122,0x7F040123,0x7F040124,0x7F04012B,0x7F04012C,0x7F04012D,0x7F04012E,0x7F04012F,0x7F040130,0x7F040131,0x7F040134,0x7F040135,0x7F040136,0x7F040137,0x7F040138,0x7F040139,0x7F04013B,0x7F04013C,0x7F04013D,0x7F04013E,0x7F040141,0x7F040142,0x7F040145,0x7F040146,0x7F040147,0x7F040148,0x7F040149,0x7F04014A,0x7F04014B,0x7F04014C,0x7F04014D,0x7F04014E,0x7F040151,0x7F040152 } + // aapt resource value: 14 + public const int SearchView_suggestionRowLayout = 14; + + // aapt resource value: 12 + public const int SearchView_voiceIcon = 12; + public static int[] SmartRefreshLayout = new int[] { 16842986, 16842987, - 2130968863, - 2130968866, - 2130968867, - 2130968868, - 2130968875, - 2130968876, - 2130968877, - 2130968878, - 2130968879, - 2130968880, - 2130968881, - 2130968884, - 2130968885, - 2130968886, - 2130968887, - 2130968888, - 2130968889, - 2130968891, - 2130968892, - 2130968893, - 2130968894, - 2130968897, - 2130968898, - 2130968901, - 2130968902, - 2130968903, - 2130968904, - 2130968905, - 2130968906, - 2130968907, - 2130968908, - 2130968909, - 2130968910, - 2130968913, - 2130968914}; + 2130772316, + 2130772326, + 2130772342, + 2130772343, + 2130772344, + 2130772345, + 2130772346, + 2130772347, + 2130772348, + 2130772349, + 2130772350, + 2130772351, + 2130772352, + 2130772353, + 2130772354, + 2130772355, + 2130772356, + 2130772357, + 2130772358, + 2130772359, + 2130772360, + 2130772361, + 2130772362, + 2130772363, + 2130772364, + 2130772365, + 2130772366, + 2130772367, + 2130772368, + 2130772369, + 2130772370, + 2130772371, + 2130772372, + 2130772373, + 2130772374}; // aapt resource value: 0 public const int SmartRefreshLayout_android_clipChildren = 0; @@ -7435,127 +7391,125 @@ // aapt resource value: 1 public const int SmartRefreshLayout_android_clipToPadding = 1; - // aapt resource value: { 0x7F0400D6,0x7F0400D7 } - public static int[] SmartRefreshLayout_Layout = new int[] { - 2130968790, - 2130968791}; - - // aapt resource value: 0 - public const int SmartRefreshLayout_Layout_layout_srlBackgroundColor = 0; - - // aapt resource value: 1 - public const int SmartRefreshLayout_Layout_layout_srlSpinnerStyle = 1; - // aapt resource value: 2 public const int SmartRefreshLayout_srlAccentColor = 2; - // aapt resource value: 3 - public const int SmartRefreshLayout_srlDisableContentWhenLoading = 3; - - // aapt resource value: 4 - public const int SmartRefreshLayout_srlDisableContentWhenRefresh = 4; - - // aapt resource value: 5 - public const int SmartRefreshLayout_srlDragRate = 5; - - // aapt resource value: 6 - public const int SmartRefreshLayout_srlEnableAutoLoadMore = 6; - - // aapt resource value: 7 - public const int SmartRefreshLayout_srlEnableClipFooterWhenFixedBehind = 7; - - // aapt resource value: 8 - public const int SmartRefreshLayout_srlEnableClipHeaderWhenFixedBehind = 8; - - // aapt resource value: 9 - public const int SmartRefreshLayout_srlEnableFooterFollowWhenLoadFinished = 9; - - // aapt resource value: 10 - public const int SmartRefreshLayout_srlEnableFooterFollowWhenNoMoreData = 10; - - // aapt resource value: 11 - public const int SmartRefreshLayout_srlEnableFooterTranslationContent = 11; - - // aapt resource value: 12 - public const int SmartRefreshLayout_srlEnableHeaderTranslationContent = 12; - - // aapt resource value: 13 - public const int SmartRefreshLayout_srlEnableLoadMore = 13; - - // aapt resource value: 14 - public const int SmartRefreshLayout_srlEnableLoadMoreWhenContentNotFull = 14; - - // aapt resource value: 15 - public const int SmartRefreshLayout_srlEnableNestedScrolling = 15; - - // aapt resource value: 16 - public const int SmartRefreshLayout_srlEnableOverScrollBounce = 16; - - // aapt resource value: 17 - public const int SmartRefreshLayout_srlEnableOverScrollDrag = 17; - - // aapt resource value: 18 - public const int SmartRefreshLayout_srlEnablePreviewInEditMode = 18; - - // aapt resource value: 19 - public const int SmartRefreshLayout_srlEnablePureScrollMode = 19; - - // aapt resource value: 20 - public const int SmartRefreshLayout_srlEnableRefresh = 20; - - // aapt resource value: 21 - public const int SmartRefreshLayout_srlEnableScrollContentWhenLoaded = 21; - - // aapt resource value: 22 - public const int SmartRefreshLayout_srlEnableScrollContentWhenRefreshed = 22; - - // aapt resource value: 23 - public const int SmartRefreshLayout_srlFixedFooterViewId = 23; - - // aapt resource value: 24 - public const int SmartRefreshLayout_srlFixedHeaderViewId = 24; - - // aapt resource value: 25 - public const int SmartRefreshLayout_srlFooterHeight = 25; - - // aapt resource value: 26 - public const int SmartRefreshLayout_srlFooterInsetStart = 26; - - // aapt resource value: 27 - public const int SmartRefreshLayout_srlFooterMaxDragRate = 27; - - // aapt resource value: 28 - public const int SmartRefreshLayout_srlFooterTranslationViewId = 28; - - // aapt resource value: 29 - public const int SmartRefreshLayout_srlFooterTriggerRate = 29; - - // aapt resource value: 30 - public const int SmartRefreshLayout_srlHeaderHeight = 30; - - // aapt resource value: 31 - public const int SmartRefreshLayout_srlHeaderInsetStart = 31; - - // aapt resource value: 32 - public const int SmartRefreshLayout_srlHeaderMaxDragRate = 32; + // aapt resource value: 34 + public const int SmartRefreshLayout_srlDisableContentWhenLoading = 34; // aapt resource value: 33 - public const int SmartRefreshLayout_srlHeaderTranslationViewId = 33; + public const int SmartRefreshLayout_srlDisableContentWhenRefresh = 33; - // aapt resource value: 34 - public const int SmartRefreshLayout_srlHeaderTriggerRate = 34; + // aapt resource value: 9 + public const int SmartRefreshLayout_srlDragRate = 9; - // aapt resource value: 35 - public const int SmartRefreshLayout_srlPrimaryColor = 35; + // aapt resource value: 21 + public const int SmartRefreshLayout_srlEnableAutoLoadMore = 21; + + // aapt resource value: 31 + public const int SmartRefreshLayout_srlEnableClipFooterWhenFixedBehind = 31; + + // aapt resource value: 30 + public const int SmartRefreshLayout_srlEnableClipHeaderWhenFixedBehind = 30; + + // aapt resource value: 28 + public const int SmartRefreshLayout_srlEnableFooterFollowWhenLoadFinished = 28; + + // aapt resource value: 29 + public const int SmartRefreshLayout_srlEnableFooterFollowWhenNoMoreData = 29; + + // aapt resource value: 17 + public const int SmartRefreshLayout_srlEnableFooterTranslationContent = 17; + + // aapt resource value: 16 + public const int SmartRefreshLayout_srlEnableHeaderTranslationContent = 16; + + // aapt resource value: 15 + public const int SmartRefreshLayout_srlEnableLoadMore = 15; + + // aapt resource value: 27 + public const int SmartRefreshLayout_srlEnableLoadMoreWhenContentNotFull = 27; + + // aapt resource value: 24 + public const int SmartRefreshLayout_srlEnableNestedScrolling = 24; + + // aapt resource value: 22 + public const int SmartRefreshLayout_srlEnableOverScrollBounce = 22; + + // aapt resource value: 32 + public const int SmartRefreshLayout_srlEnableOverScrollDrag = 32; + + // aapt resource value: 20 + public const int SmartRefreshLayout_srlEnablePreviewInEditMode = 20; + + // aapt resource value: 23 + public const int SmartRefreshLayout_srlEnablePureScrollMode = 23; + + // aapt resource value: 14 + public const int SmartRefreshLayout_srlEnableRefresh = 14; + + // aapt resource value: 25 + public const int SmartRefreshLayout_srlEnableScrollContentWhenLoaded = 25; + + // aapt resource value: 26 + public const int SmartRefreshLayout_srlEnableScrollContentWhenRefreshed = 26; // aapt resource value: 36 - public const int SmartRefreshLayout_srlReboundDuration = 36; + public const int SmartRefreshLayout_srlFixedFooterViewId = 36; - // aapt resource value: { 0x101011F,0x7F040093,0x7F0400E5 } + // aapt resource value: 35 + public const int SmartRefreshLayout_srlFixedHeaderViewId = 35; + + // aapt resource value: 6 + public const int SmartRefreshLayout_srlFooterHeight = 6; + + // aapt resource value: 8 + public const int SmartRefreshLayout_srlFooterInsetStart = 8; + + // aapt resource value: 11 + public const int SmartRefreshLayout_srlFooterMaxDragRate = 11; + + // aapt resource value: 19 + public const int SmartRefreshLayout_srlFooterTranslationViewId = 19; + + // aapt resource value: 13 + public const int SmartRefreshLayout_srlFooterTriggerRate = 13; + + // aapt resource value: 5 + public const int SmartRefreshLayout_srlHeaderHeight = 5; + + // aapt resource value: 7 + public const int SmartRefreshLayout_srlHeaderInsetStart = 7; + + // aapt resource value: 10 + public const int SmartRefreshLayout_srlHeaderMaxDragRate = 10; + + // aapt resource value: 18 + public const int SmartRefreshLayout_srlHeaderTranslationViewId = 18; + + // aapt resource value: 12 + public const int SmartRefreshLayout_srlHeaderTriggerRate = 12; + + // aapt resource value: 3 + public const int SmartRefreshLayout_srlPrimaryColor = 3; + + // aapt resource value: 4 + public const int SmartRefreshLayout_srlReboundDuration = 4; + + public static int[] SmartRefreshLayout_Layout = new int[] { + 2130772315, + 2130772375}; + + // aapt resource value: 1 + public const int SmartRefreshLayout_Layout_layout_srlBackgroundColor = 1; + + // aapt resource value: 0 + public const int SmartRefreshLayout_Layout_layout_srlSpinnerStyle = 0; + public static int[] SnackbarLayout = new int[] { 16843039, - 2130968723, - 2130968805}; + 2130772005, + 2130772274}; // aapt resource value: 0 public const int SnackbarLayout_android_maxWidth = 0; @@ -7566,13 +7520,12 @@ // aapt resource value: 2 public const int SnackbarLayout_maxActionInlineWidth = 2; - // aapt resource value: { 0x10100B2,0x1010176,0x101017B,0x1010262,0x7F0400FC } public static int[] Spinner = new int[] { 16842930, 16843126, 16843131, 16843362, - 2130968828}; + 2130772006}; // aapt resource value: 3 public const int Spinner_android_dropDownWidth = 3; @@ -7589,22 +7542,21 @@ // aapt resource value: 4 public const int Spinner_popupTheme = 4; - // aapt resource value: { 0x1010124,0x1010125,0x1010142,0x7F040116,0x7F04011D,0x7F04016D,0x7F04016E,0x7F040170,0x7F04018F,0x7F040190,0x7F040191,0x7F0401A8,0x7F0401A9,0x7F0401AA } public static int[] SwitchCompat = new int[] { 16843044, 16843045, 16843074, - 2130968854, - 2130968861, - 2130968941, - 2130968942, - 2130968944, - 2130968975, - 2130968976, - 2130968977, - 2130969000, - 2130969001, - 2130969002}; + 2130772190, + 2130772191, + 2130772192, + 2130772193, + 2130772194, + 2130772195, + 2130772196, + 2130772197, + 2130772198, + 2130772199, + 2130772200}; // aapt resource value: 1 public const int SwitchCompat_android_textOff = 1; @@ -7615,40 +7567,39 @@ // aapt resource value: 2 public const int SwitchCompat_android_thumb = 2; - // aapt resource value: 3 - public const int SwitchCompat_showText = 3; + // aapt resource value: 13 + public const int SwitchCompat_showText = 13; - // aapt resource value: 4 - public const int SwitchCompat_splitTrack = 4; + // aapt resource value: 12 + public const int SwitchCompat_splitTrack = 12; - // aapt resource value: 5 - public const int SwitchCompat_switchMinWidth = 5; + // aapt resource value: 10 + public const int SwitchCompat_switchMinWidth = 10; - // aapt resource value: 6 - public const int SwitchCompat_switchPadding = 6; + // aapt resource value: 11 + public const int SwitchCompat_switchPadding = 11; - // aapt resource value: 7 - public const int SwitchCompat_switchTextAppearance = 7; + // aapt resource value: 9 + public const int SwitchCompat_switchTextAppearance = 9; // aapt resource value: 8 public const int SwitchCompat_thumbTextPadding = 8; - // aapt resource value: 9 - public const int SwitchCompat_thumbTint = 9; + // aapt resource value: 3 + public const int SwitchCompat_thumbTint = 3; - // aapt resource value: 10 - public const int SwitchCompat_thumbTintMode = 10; + // aapt resource value: 4 + public const int SwitchCompat_thumbTintMode = 4; - // aapt resource value: 11 - public const int SwitchCompat_track = 11; + // aapt resource value: 5 + public const int SwitchCompat_track = 5; - // aapt resource value: 12 - public const int SwitchCompat_trackTint = 12; + // aapt resource value: 6 + public const int SwitchCompat_trackTint = 6; - // aapt resource value: 13 - public const int SwitchCompat_trackTintMode = 13; + // aapt resource value: 7 + public const int SwitchCompat_trackTintMode = 7; - // aapt resource value: { 0x1010002,0x10100F2,0x101014F } public static int[] TabItem = new int[] { 16842754, 16842994, @@ -7663,57 +7614,56 @@ // aapt resource value: 2 public const int TabItem_android_text = 2; - // aapt resource value: { 0x7F040171,0x7F040172,0x7F040173,0x7F040174,0x7F040175,0x7F040176,0x7F040177,0x7F040178,0x7F040179,0x7F04017A,0x7F04017B,0x7F04017C,0x7F04017D,0x7F04017E,0x7F04017F,0x7F040180 } public static int[] TabLayout = new int[] { - 2130968945, - 2130968946, - 2130968947, - 2130968948, - 2130968949, - 2130968950, - 2130968951, - 2130968952, - 2130968953, - 2130968954, - 2130968955, - 2130968956, - 2130968957, - 2130968958, - 2130968959, - 2130968960}; - - // aapt resource value: 0 - public const int TabLayout_tabBackground = 0; - - // aapt resource value: 1 - public const int TabLayout_tabContentStart = 1; - - // aapt resource value: 2 - public const int TabLayout_tabGravity = 2; + 2130772275, + 2130772276, + 2130772277, + 2130772278, + 2130772279, + 2130772280, + 2130772281, + 2130772282, + 2130772283, + 2130772284, + 2130772285, + 2130772286, + 2130772287, + 2130772288, + 2130772289, + 2130772290}; // aapt resource value: 3 - public const int TabLayout_tabIndicatorColor = 3; + public const int TabLayout_tabBackground = 3; - // aapt resource value: 4 - public const int TabLayout_tabIndicatorHeight = 4; + // aapt resource value: 2 + public const int TabLayout_tabContentStart = 2; // aapt resource value: 5 - public const int TabLayout_tabMaxWidth = 5; + public const int TabLayout_tabGravity = 5; + + // aapt resource value: 0 + public const int TabLayout_tabIndicatorColor = 0; + + // aapt resource value: 1 + public const int TabLayout_tabIndicatorHeight = 1; + + // aapt resource value: 7 + public const int TabLayout_tabMaxWidth = 7; // aapt resource value: 6 public const int TabLayout_tabMinWidth = 6; - // aapt resource value: 7 - public const int TabLayout_tabMode = 7; + // aapt resource value: 4 + public const int TabLayout_tabMode = 4; - // aapt resource value: 8 - public const int TabLayout_tabPadding = 8; + // aapt resource value: 15 + public const int TabLayout_tabPadding = 15; - // aapt resource value: 9 - public const int TabLayout_tabPaddingBottom = 9; + // aapt resource value: 14 + public const int TabLayout_tabPaddingBottom = 14; - // aapt resource value: 10 - public const int TabLayout_tabPaddingEnd = 10; + // aapt resource value: 13 + public const int TabLayout_tabPaddingEnd = 13; // aapt resource value: 11 public const int TabLayout_tabPaddingStart = 11; @@ -7721,16 +7671,15 @@ // aapt resource value: 12 public const int TabLayout_tabPaddingTop = 12; - // aapt resource value: 13 - public const int TabLayout_tabSelectedTextColor = 13; + // aapt resource value: 10 + public const int TabLayout_tabSelectedTextColor = 10; - // aapt resource value: 14 - public const int TabLayout_tabTextAppearance = 14; + // aapt resource value: 8 + public const int TabLayout_tabTextAppearance = 8; - // aapt resource value: 15 - public const int TabLayout_tabTextColor = 15; + // aapt resource value: 9 + public const int TabLayout_tabTextColor = 9; - // aapt resource value: { 0x1010095,0x1010096,0x1010097,0x1010098,0x101009A,0x101009B,0x1010161,0x1010162,0x1010163,0x1010164,0x10103AC,0x7F0400A6,0x7F040181 } public static int[] TextAppearance = new int[] { 16842901, 16842902, @@ -7743,8 +7692,8 @@ 16843107, 16843108, 16843692, - 2130968742, - 2130968961}; + 2130772022, + 2130772028}; // aapt resource value: 10 public const int TextAppearance_android_fontFamily = 10; @@ -7779,30 +7728,29 @@ // aapt resource value: 1 public const int TextAppearance_android_typeface = 1; - // aapt resource value: 11 - public const int TextAppearance_fontFamily = 11; - // aapt resource value: 12 - public const int TextAppearance_textAllCaps = 12; + public const int TextAppearance_fontFamily = 12; - // aapt resource value: { 0x101009A,0x1010150,0x7F04007A,0x7F04007B,0x7F04007C,0x7F04007D,0x7F040094,0x7F040095,0x7F0400B6,0x7F0400B7,0x7F0400B8,0x7F0400F6,0x7F0400F7,0x7F0400F8,0x7F0400F9,0x7F0400FA } + // aapt resource value: 11 + public const int TextAppearance_textAllCaps = 11; + public static int[] TextInputLayout = new int[] { 16842906, 16843088, - 2130968698, - 2130968699, - 2130968700, - 2130968701, - 2130968724, - 2130968725, - 2130968758, - 2130968759, - 2130968760, - 2130968822, - 2130968823, - 2130968824, - 2130968825, - 2130968826}; + 2130772291, + 2130772292, + 2130772293, + 2130772294, + 2130772295, + 2130772296, + 2130772297, + 2130772298, + 2130772299, + 2130772300, + 2130772301, + 2130772302, + 2130772303, + 2130772304}; // aapt resource value: 1 public const int TextInputLayout_android_hint = 1; @@ -7810,41 +7758,41 @@ // aapt resource value: 0 public const int TextInputLayout_android_textColorHint = 0; - // aapt resource value: 2 - public const int TextInputLayout_counterEnabled = 2; - - // aapt resource value: 3 - public const int TextInputLayout_counterMaxLength = 3; - - // aapt resource value: 4 - public const int TextInputLayout_counterOverflowTextAppearance = 4; - - // aapt resource value: 5 - public const int TextInputLayout_counterTextAppearance = 5; - // aapt resource value: 6 - public const int TextInputLayout_errorEnabled = 6; + public const int TextInputLayout_counterEnabled = 6; // aapt resource value: 7 - public const int TextInputLayout_errorTextAppearance = 7; - - // aapt resource value: 8 - public const int TextInputLayout_hintAnimationEnabled = 8; + public const int TextInputLayout_counterMaxLength = 7; // aapt resource value: 9 - public const int TextInputLayout_hintEnabled = 9; + public const int TextInputLayout_counterOverflowTextAppearance = 9; + + // aapt resource value: 8 + public const int TextInputLayout_counterTextAppearance = 8; + + // aapt resource value: 4 + public const int TextInputLayout_errorEnabled = 4; + + // aapt resource value: 5 + public const int TextInputLayout_errorTextAppearance = 5; // aapt resource value: 10 - public const int TextInputLayout_hintTextAppearance = 10; + public const int TextInputLayout_hintAnimationEnabled = 10; - // aapt resource value: 11 - public const int TextInputLayout_passwordToggleContentDescription = 11; + // aapt resource value: 3 + public const int TextInputLayout_hintEnabled = 3; + + // aapt resource value: 2 + public const int TextInputLayout_hintTextAppearance = 2; + + // aapt resource value: 13 + public const int TextInputLayout_passwordToggleContentDescription = 13; // aapt resource value: 12 public const int TextInputLayout_passwordToggleDrawable = 12; - // aapt resource value: 13 - public const int TextInputLayout_passwordToggleEnabled = 13; + // aapt resource value: 11 + public const int TextInputLayout_passwordToggleEnabled = 11; // aapt resource value: 14 public const int TextInputLayout_passwordToggleTint = 14; @@ -7852,37 +7800,36 @@ // aapt resource value: 15 public const int TextInputLayout_passwordToggleTintMode = 15; - // aapt resource value: { 0x10100AF,0x1010140,0x7F040057,0x7F040061,0x7F040062,0x7F040072,0x7F040073,0x7F040074,0x7F040075,0x7F040076,0x7F040077,0x7F0400E3,0x7F0400E4,0x7F0400E6,0x7F0400EA,0x7F0400EB,0x7F0400FC,0x7F040168,0x7F040169,0x7F04016A,0x7F040197,0x7F040199,0x7F04019A,0x7F04019B,0x7F04019C,0x7F04019D,0x7F04019E,0x7F04019F,0x7F0401A0 } public static int[] Toolbar = new int[] { 16842927, 16843072, - 2130968663, - 2130968673, - 2130968674, - 2130968690, - 2130968691, - 2130968692, - 2130968693, - 2130968694, - 2130968695, - 2130968803, - 2130968804, - 2130968806, - 2130968810, - 2130968811, - 2130968828, - 2130968936, - 2130968937, - 2130968938, - 2130968983, - 2130968985, - 2130968986, - 2130968987, - 2130968988, - 2130968989, - 2130968990, - 2130968991, - 2130968992}; + 2130771980, + 2130771983, + 2130771987, + 2130771999, + 2130772000, + 2130772001, + 2130772002, + 2130772003, + 2130772004, + 2130772006, + 2130772201, + 2130772202, + 2130772203, + 2130772204, + 2130772205, + 2130772206, + 2130772207, + 2130772208, + 2130772209, + 2130772210, + 2130772211, + 2130772212, + 2130772213, + 2130772214, + 2130772215, + 2130772216, + 2130772217}; // aapt resource value: 0 public const int Toolbar_android_gravity = 0; @@ -7890,20 +7837,20 @@ // aapt resource value: 1 public const int Toolbar_android_minHeight = 1; - // aapt resource value: 2 - public const int Toolbar_buttonGravity = 2; + // aapt resource value: 21 + public const int Toolbar_buttonGravity = 21; - // aapt resource value: 3 - public const int Toolbar_collapseContentDescription = 3; + // aapt resource value: 23 + public const int Toolbar_collapseContentDescription = 23; - // aapt resource value: 4 - public const int Toolbar_collapseIcon = 4; - - // aapt resource value: 5 - public const int Toolbar_contentInsetEnd = 5; + // aapt resource value: 22 + public const int Toolbar_collapseIcon = 22; // aapt resource value: 6 - public const int Toolbar_contentInsetEndWithActions = 6; + public const int Toolbar_contentInsetEnd = 6; + + // aapt resource value: 10 + public const int Toolbar_contentInsetEndWithActions = 10; // aapt resource value: 7 public const int Toolbar_contentInsetLeft = 7; @@ -7911,106 +7858,118 @@ // aapt resource value: 8 public const int Toolbar_contentInsetRight = 8; + // aapt resource value: 5 + public const int Toolbar_contentInsetStart = 5; + // aapt resource value: 9 - public const int Toolbar_contentInsetStart = 9; - - // aapt resource value: 10 - public const int Toolbar_contentInsetStartWithNavigation = 10; - - // aapt resource value: 11 - public const int Toolbar_logo = 11; - - // aapt resource value: 12 - public const int Toolbar_logoDescription = 12; - - // aapt resource value: 13 - public const int Toolbar_maxButtonHeight = 13; - - // aapt resource value: 14 - public const int Toolbar_navigationContentDescription = 14; - - // aapt resource value: 15 - public const int Toolbar_navigationIcon = 15; - - // aapt resource value: 16 - public const int Toolbar_popupTheme = 16; - - // aapt resource value: 17 - public const int Toolbar_subtitle = 17; - - // aapt resource value: 18 - public const int Toolbar_subtitleTextAppearance = 18; - - // aapt resource value: 19 - public const int Toolbar_subtitleTextColor = 19; - - // aapt resource value: 20 - public const int Toolbar_title = 20; - - // aapt resource value: 21 - public const int Toolbar_titleMargin = 21; - - // aapt resource value: 22 - public const int Toolbar_titleMarginBottom = 22; - - // aapt resource value: 23 - public const int Toolbar_titleMarginEnd = 23; - - // aapt resource value: 26 - public const int Toolbar_titleMargins = 26; - - // aapt resource value: 24 - public const int Toolbar_titleMarginStart = 24; - - // aapt resource value: 25 - public const int Toolbar_titleMarginTop = 25; - - // aapt resource value: 27 - public const int Toolbar_titleTextAppearance = 27; - - // aapt resource value: 28 - public const int Toolbar_titleTextColor = 28; - - // aapt resource value: { 0x7F04013A,0x7F04013F,0x7F040143,0x7F040144,0x7F04014F,0x7F040153 } - public static int[] TwoLevelHeader = new int[] { - 2130968890, - 2130968895, - 2130968899, - 2130968900, - 2130968911, - 2130968915}; - - // aapt resource value: 0 - public const int TwoLevelHeader_srlEnablePullToCloseTwoLevel = 0; - - // aapt resource value: 1 - public const int TwoLevelHeader_srlEnableTwoLevel = 1; - - // aapt resource value: 2 - public const int TwoLevelHeader_srlFloorDuration = 2; - - // aapt resource value: 3 - public const int TwoLevelHeader_srlFloorRage = 3; + public const int Toolbar_contentInsetStartWithNavigation = 9; // aapt resource value: 4 - public const int TwoLevelHeader_srlMaxRage = 4; + public const int Toolbar_logo = 4; + + // aapt resource value: 26 + public const int Toolbar_logoDescription = 26; + + // aapt resource value: 20 + public const int Toolbar_maxButtonHeight = 20; + + // aapt resource value: 25 + public const int Toolbar_navigationContentDescription = 25; + + // aapt resource value: 24 + public const int Toolbar_navigationIcon = 24; + + // aapt resource value: 11 + public const int Toolbar_popupTheme = 11; + + // aapt resource value: 3 + public const int Toolbar_subtitle = 3; + + // aapt resource value: 13 + public const int Toolbar_subtitleTextAppearance = 13; + + // aapt resource value: 28 + public const int Toolbar_subtitleTextColor = 28; + + // aapt resource value: 2 + public const int Toolbar_title = 2; + + // aapt resource value: 14 + public const int Toolbar_titleMargin = 14; + + // aapt resource value: 18 + public const int Toolbar_titleMarginBottom = 18; + + // aapt resource value: 16 + public const int Toolbar_titleMarginEnd = 16; + + // aapt resource value: 15 + public const int Toolbar_titleMarginStart = 15; + + // aapt resource value: 17 + public const int Toolbar_titleMarginTop = 17; + + // aapt resource value: 19 + public const int Toolbar_titleMargins = 19; + + // aapt resource value: 12 + public const int Toolbar_titleTextAppearance = 12; + + // aapt resource value: 27 + public const int Toolbar_titleTextColor = 27; + + public static int[] TwoLevelHeader = new int[] { + 2130772376, + 2130772377, + 2130772378, + 2130772379, + 2130772380, + 2130772381}; // aapt resource value: 5 - public const int TwoLevelHeader_srlRefreshRage = 5; + public const int TwoLevelHeader_srlEnablePullToCloseTwoLevel = 5; - // aapt resource value: { 0x1010000,0x10100DA,0x7F0400F0,0x7F0400F1,0x7F04018D } + // aapt resource value: 4 + public const int TwoLevelHeader_srlEnableTwoLevel = 4; + + // aapt resource value: 3 + public const int TwoLevelHeader_srlFloorDuration = 3; + + // aapt resource value: 1 + public const int TwoLevelHeader_srlFloorRage = 1; + + // aapt resource value: 0 + public const int TwoLevelHeader_srlMaxRage = 0; + + // aapt resource value: 2 + public const int TwoLevelHeader_srlRefreshRage = 2; + public static int[] View = new int[] { 16842752, 16842970, - 2130968816, - 2130968817, - 2130968973}; + 2130772218, + 2130772219, + 2130772220}; - // aapt resource value: { 0x10100D4,0x7F040045,0x7F040046 } + // aapt resource value: 1 + public const int View_android_focusable = 1; + + // aapt resource value: 0 + public const int View_android_theme = 0; + + // aapt resource value: 3 + public const int View_paddingEnd = 3; + + // aapt resource value: 2 + public const int View_paddingStart = 2; + + // aapt resource value: 4 + public const int View_theme = 4; + public static int[] ViewBackgroundHelper = new int[] { 16842964, - 2130968645, - 2130968646}; + 2130772221, + 2130772222}; // aapt resource value: 0 public const int ViewBackgroundHelper_android_background = 0; @@ -8021,7 +7980,6 @@ // aapt resource value: 2 public const int ViewBackgroundHelper_backgroundTintMode = 2; - // aapt resource value: { 0x10100D0,0x10100F2,0x10100F3 } public static int[] ViewStubCompat = new int[] { 16842960, 16842994, @@ -8036,20 +7994,31 @@ // aapt resource value: 1 public const int ViewStubCompat_android_layout = 1; - // aapt resource value: 1 - public const int View_android_focusable = 1; - - // aapt resource value: 0 - public const int View_android_theme = 0; - - // aapt resource value: 2 - public const int View_paddingEnd = 2; - - // aapt resource value: 3 - public const int View_paddingStart = 3; + public static int[] pickerview = new int[] { + 2130772412, + 2130772413, + 2130772414, + 2130772415, + 2130772416, + 2130772417}; // aapt resource value: 4 - public const int View_theme = 4; + public const int pickerview_wheelview_dividerColor = 4; + + // aapt resource value: 0 + public const int pickerview_wheelview_gravity = 0; + + // aapt resource value: 5 + public const int pickerview_wheelview_lineSpacingMultiplier = 5; + + // aapt resource value: 3 + public const int pickerview_wheelview_textColorCenter = 3; + + // aapt resource value: 2 + public const int pickerview_wheelview_textColorOut = 2; + + // aapt resource value: 1 + public const int pickerview_wheelview_textSize = 1; static Styleable() { @@ -8057,25 +8026,6 @@ } private Styleable() - { - } - } - - public partial class Xml - { - - // aapt resource value: 0x7F100000 - public const int file_paths = 2131755008; - - // aapt resource value: 0x7F100001 - public const int hdl_filepaths = 2131755009; - - static Xml() - { - global::Android.Runtime.ResourceIdManager.UpdateIdValues(); - } - - private Xml() { } } diff --git a/ZigbeeApp/GateWay.Droid/Resources/drawable/Loading.png b/ZigbeeApp/GateWay.Droid/Resources/drawable/Loading.png index 8121837..68960e6 100755 --- a/ZigbeeApp/GateWay.Droid/Resources/drawable/Loading.png +++ b/ZigbeeApp/GateWay.Droid/Resources/drawable/Loading.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*748.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*748.png new file mode 100644 index 0000000..78c5f84 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*748.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*768-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*768-1.png new file mode 100644 index 0000000..c2c8ed9 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*768-1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*768.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*768.png new file mode 100644 index 0000000..c2c8ed9 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024*768.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_748.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_748.png deleted file mode 100755 index f9b76f8..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_748.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_768-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_768-1.png deleted file mode 100755 index 23bb0e1..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_768-1.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_768.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_768.png deleted file mode 100755 index 23bb0e1..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1024_768.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11 Pro Max.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11 Pro Max.png deleted file mode 100755 index 86a7f91..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11 Pro Max.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11.png deleted file mode 100755 index 5949696..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1125*2436.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1125*2436.png new file mode 100644 index 0000000..ed5abe7 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1125*2436.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11pro.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11pro.png deleted file mode 100755 index 2bac436..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/11pro.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242*2208-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242*2208-1.png new file mode 100644 index 0000000..cacd31f --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242*2208-1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242*2688_XS Max.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242*2688_XS Max.png new file mode 100644 index 0000000..73a6627 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242*2688_XS Max.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242_2208.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242_2208.png deleted file mode 100755 index 4be6fa4..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1242_2208.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2008.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2008.png new file mode 100644 index 0000000..4942e4a --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2008.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2048-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2048-1.png new file mode 100644 index 0000000..3aa9190 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2048-1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2048.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2048.png new file mode 100644 index 0000000..3aa9190 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536*2048.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2008.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2008.png deleted file mode 100755 index adab731..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2008.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2048-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2048-1.png deleted file mode 100755 index 6fffb09..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2048-1.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2048.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2048.png deleted file mode 100755 index 6fffb09..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1536_2048.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1792*828.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1792*828.png new file mode 100644 index 0000000..23abb10 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1792*828.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1792_828.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1792_828.png deleted file mode 100755 index 522acce..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/1792_828.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1496.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1496.png new file mode 100644 index 0000000..6d32881 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1496.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1536-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1536-1.png new file mode 100644 index 0000000..f1db73f --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1536-1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1536.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1536.png new file mode 100644 index 0000000..f1db73f --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*1536.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*2732-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*2732-1.png new file mode 100644 index 0000000..c7b53b1 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048*2732-1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1496.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1496.png deleted file mode 100755 index 92c23a8..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1496.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1536-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1536-1.png deleted file mode 100755 index ae0258e..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1536-1.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1536.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1536.png deleted file mode 100755 index ae0258e..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_1536.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_2732.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_2732.png deleted file mode 100755 index 946a965..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2048_2732.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2208*1242.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2208*1242.png new file mode 100644 index 0000000..4092649 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2208*1242.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2208_1242.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2208_1242.png deleted file mode 100755 index 083312e..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2208_1242.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2436*1125.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2436*1125.png new file mode 100644 index 0000000..e4ea893 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2436*1125.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2436_1125.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2436_1125.png deleted file mode 100755 index 979f726..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2436_1125.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2688*1242.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2688*1242.png new file mode 100644 index 0000000..98dc1c1 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2688*1242.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2688_1242.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2688_1242.png deleted file mode 100755 index da11cf8..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/2688_1242.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/320*480.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/320*480.png new file mode 100644 index 0000000..75b2896 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/320*480.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/320_480.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/320_480.png deleted file mode 100755 index 30d820c..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/320_480.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*1136-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*1136-1.png new file mode 100644 index 0000000..dee0605 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*1136-1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*1136.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*1136.png new file mode 100644 index 0000000..dee0605 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*1136.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*960-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*960-1.png new file mode 100644 index 0000000..68ece8a --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*960-1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*960.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*960.png new file mode 100644 index 0000000..68ece8a --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640*960.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_1136-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_1136-1.png deleted file mode 100755 index cdcc25a..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_1136-1.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_1136.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_1136.png deleted file mode 100755 index cdcc25a..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_1136.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_960-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_960-1.png deleted file mode 100755 index c66f1f9..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_960-1.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_960.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_960.png deleted file mode 100755 index c66f1f9..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/640_960.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/750*1334.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/750*1334.png new file mode 100644 index 0000000..c746b45 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/750*1334.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/750_1334.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/750_1334.png deleted file mode 100755 index 597b374..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/750_1334.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1004.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1004.png new file mode 100644 index 0000000..526911f --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1004.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1024-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1024-1.png new file mode 100644 index 0000000..42fdc74 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1024-1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1024.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1024.png new file mode 100644 index 0000000..42fdc74 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768*1024.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1004.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1004.png deleted file mode 100755 index 266d439..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1004.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1024-1.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1024-1.png deleted file mode 100755 index 0241dc5..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1024-1.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1024.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1024.png deleted file mode 100755 index 0241dc5..0000000 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/768_1024.png +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/828*1792_XR.png b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/828*1792_XR.png new file mode 100644 index 0000000..d85b362 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/828*1792_XR.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/Contents.json b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/Contents.json index 92ff60a..ce96303 100755 --- a/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/Contents.json +++ b/ZigbeeApp/Home.Ios/Assets.xcassets/LaunchImage.launchimage/Contents.json @@ -3,7 +3,6 @@ { "orientation": "landscape", "extent": "full-screen", - "filename": "1920_1080.png", "size": "1920x1080", "scale": "1x", "idiom": "tv", @@ -12,7 +11,6 @@ { "orientation": "landscape", "extent": "full-screen", - "filename": "3840_2160.png", "size": "1920x1080", "scale": "2x", "idiom": "tv", @@ -22,7 +20,7 @@ "minimum-system-version": "12.0", "orientation": "portrait", "extent": "full-screen", - "filename": "11 Pro Max.png", + "filename": "1242*2688_XS Max.png", "size": "414x896", "subtype": "1792", "scale": "3x", @@ -32,7 +30,7 @@ "minimum-system-version": "12.0", "orientation": "portrait", "extent": "full-screen", - "filename": "11.png", + "filename": "828*1792_XR.png", "size": "276x597.3", "subtype": "2688", "scale": "3x", @@ -42,7 +40,7 @@ "minimum-system-version": "12.0", "orientation": "landscape", "extent": "full-screen", - "filename": "2688_1242.png", + "filename": "2688*1242.png", "size": "896x414", "subtype": "1792", "scale": "3x", @@ -52,7 +50,7 @@ "minimum-system-version": "12.0", "orientation": "landscape", "extent": "full-screen", - "filename": "1792_828.png", + "filename": "1792*828.png", "size": "597.3x276", "subtype": "2688", "scale": "3x", @@ -62,7 +60,7 @@ "minimum-system-version": "11.0", "orientation": "portrait", "extent": "full-screen", - "filename": "11pro.png", + "filename": "1125*2436.png", "size": "375x812", "subtype": "2436h", "scale": "3x", @@ -72,7 +70,7 @@ "minimum-system-version": "11.0", "orientation": "landscape", "extent": "full-screen", - "filename": "2436_1125.png", + "filename": "2436*1125.png", "size": "812x375", "subtype": "2436h", "scale": "3x", @@ -82,7 +80,7 @@ "minimum-system-version": "8.0", "orientation": "portrait", "extent": "full-screen", - "filename": "1242_2208.png", + "filename": "1242*2208-1.png", "size": "414x736", "subtype": "736h", "scale": "3x", @@ -92,7 +90,7 @@ "minimum-system-version": "8.0", "orientation": "portrait", "extent": "full-screen", - "filename": "750_1334.png", + "filename": "750*1334.png", "size": "375x667", "subtype": "667h", "scale": "2x", @@ -102,7 +100,7 @@ "minimum-system-version": "8.0", "orientation": "landscape", "extent": "full-screen", - "filename": "2208_1242.png", + "filename": "2208*1242.png", "size": "736x414", "subtype": "736h", "scale": "3x", @@ -112,7 +110,7 @@ "minimum-system-version": "7.0", "orientation": "portrait", "extent": "full-screen", - "filename": "2048_2732.png", + "filename": "2048*2732-1.png", "size": "1024x1366", "scale": "2x", "idiom": "ipad" @@ -121,7 +119,7 @@ "minimum-system-version": "7.0", "orientation": "portrait", "extent": "full-screen", - "filename": "640_960.png", + "filename": "640*960.png", "size": "320x480", "scale": "2x", "idiom": "iphone" @@ -130,7 +128,7 @@ "minimum-system-version": "7.0", "orientation": "portrait", "extent": "full-screen", - "filename": "640_1136.png", + "filename": "640*1136.png", "size": "320x568", "subtype": "retina4", "scale": "2x", @@ -140,7 +138,7 @@ "minimum-system-version": "7.0", "orientation": "portrait", "extent": "full-screen", - "filename": "768_1024.png", + "filename": "768*1024.png", "size": "768x1024", "scale": "1x", "idiom": "ipad" @@ -149,7 +147,7 @@ "minimum-system-version": "7.0", "orientation": "portrait", "extent": "full-screen", - "filename": "1536_2048.png", + "filename": "1536*2048.png", "size": "768x1024", "scale": "2x", "idiom": "ipad" @@ -158,7 +156,7 @@ "minimum-system-version": "7.0", "orientation": "landscape", "extent": "full-screen", - "filename": "1024_768.png", + "filename": "1024*768.png", "size": "1024x768", "scale": "1x", "idiom": "ipad" @@ -167,7 +165,7 @@ "minimum-system-version": "7.0", "orientation": "landscape", "extent": "full-screen", - "filename": "2048_1536.png", + "filename": "2048*1536.png", "size": "1024x768", "scale": "2x", "idiom": "ipad" @@ -175,7 +173,7 @@ { "orientation": "portrait", "extent": "full-screen", - "filename": "320_480.png", + "filename": "320*480.png", "size": "320x480", "scale": "1x", "idiom": "iphone" @@ -183,7 +181,7 @@ { "orientation": "portrait", "extent": "full-screen", - "filename": "640_960-1.png", + "filename": "640*960-1.png", "size": "320x480", "scale": "2x", "idiom": "iphone" @@ -191,7 +189,7 @@ { "orientation": "portrait", "extent": "full-screen", - "filename": "640_1136-1.png", + "filename": "640*1136-1.png", "size": "320x568", "subtype": "retina4", "scale": "2x", @@ -200,7 +198,7 @@ { "orientation": "portrait", "extent": "to-status-bar", - "filename": "768_1004.png", + "filename": "768*1004.png", "size": "768x1004", "scale": "1x", "idiom": "ipad" @@ -208,7 +206,7 @@ { "orientation": "portrait", "extent": "to-status-bar", - "filename": "1536_2008.png", + "filename": "1536*2008.png", "size": "768x1004", "scale": "2x", "idiom": "ipad" @@ -216,7 +214,7 @@ { "orientation": "portrait", "extent": "full-screen", - "filename": "768_1024-1.png", + "filename": "768*1024-1.png", "size": "768x1024", "scale": "1x", "idiom": "ipad" @@ -224,7 +222,7 @@ { "orientation": "portrait", "extent": "full-screen", - "filename": "1536_2048-1.png", + "filename": "1536*2048-1.png", "size": "768x1024", "scale": "2x", "idiom": "ipad" @@ -232,7 +230,7 @@ { "orientation": "landscape", "extent": "to-status-bar", - "filename": "1024_748.png", + "filename": "1024*748.png", "size": "1024x748", "scale": "1x", "idiom": "ipad" @@ -240,7 +238,7 @@ { "orientation": "landscape", "extent": "to-status-bar", - "filename": "2048_1496.png", + "filename": "2048*1496.png", "size": "1024x748", "scale": "2x", "idiom": "ipad" @@ -248,7 +246,7 @@ { "orientation": "landscape", "extent": "full-screen", - "filename": "1024_768-1.png", + "filename": "1024*768-1.png", "size": "1024x768", "scale": "1x", "idiom": "ipad" @@ -256,7 +254,7 @@ { "orientation": "landscape", "extent": "full-screen", - "filename": "2048_1536-1.png", + "filename": "2048*1536-1.png", "size": "1024x768", "scale": "2x", "idiom": "ipad" diff --git a/ZigbeeApp/Home.Ios/Home.IOS.csproj b/ZigbeeApp/Home.Ios/Home.IOS.csproj index 38c90a9..ebef266 100644 --- a/ZigbeeApp/Home.Ios/Home.IOS.csproj +++ b/ZigbeeApp/Home.Ios/Home.IOS.csproj @@ -148,33 +148,6 @@ <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\Contents.json" /> <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1920_1080.png" /> <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\3840_2160.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\11 Pro Max.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\11.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2688_1242.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1792_828.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\11pro.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2436_1125.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242_2208.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\750_1334.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2208_1242.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048_2732.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_960.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_1136.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768_1024.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536_2048.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024_768.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048_1536.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\320_480.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_960-1.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640_1136-1.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768_1004.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536_2008.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768_1024-1.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536_2048-1.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024_748.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048_1496.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024_768-1.png" /> - <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048_1536-1.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\40*40.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\60*60.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\58*58.png" /> @@ -193,6 +166,33 @@ <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\120*120.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\120*120-1.png" /> <ImageAsset Include="Assets.xcassets\AppIcon.appiconset\180*180.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242*2688_XS Max.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\828*1792_XR.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2688*1242.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1792*828.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1125*2436.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2436*1125.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\750*1334.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1242*2208-1.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2208*1242.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048*2732-1.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640*960.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640*1136.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768*1024.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536*2048.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024*768.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048*1536.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\320*480.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640*960-1.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\640*1136-1.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768*1004.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536*2008.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\768*1024-1.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1536*2048-1.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024*748.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048*1496.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\1024*768-1.png" /> + <ImageAsset Include="Assets.xcassets\LaunchImage.launchimage\2048*1536-1.png" /> </ItemGroup> <ItemGroup> <BundleResource Include="Resources\Language.ini" /> @@ -328,6 +328,20 @@ <BundleResource Include="Resources\Phone\MenuGroud\TopRightMenu2_5.png" /> <BundleResource Include="Resources\Phone\MenuGroud\TopRightMenu2_4.png" /> <BundleResource Include="Resources\Phone\MenuGroud\TopRightMenu2_6.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\8.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\9.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\12.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\13.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\11.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\10.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\4.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\5.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\7.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\6.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\2.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\3.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\1.png" /> + <BundleResource Include="Resources\Phone\SceneCardIcon\0.png" /> <BundleResource Include="Resources\Phone\DeviceItem\PanelFangyueTwoButtonTable.png" /> <BundleResource Include="Resources\Phone\DeviceItem\PanelTable.png" /> <BundleResource Include="Resources\Phone\DeviceItem\PanelFangyueEightButtonTable.png" /> @@ -449,7 +463,7 @@ <BundleResource Include="Resources\Phone\DoorLock\UnLockSideslipIcon.png" /> <BundleResource Include="Resources\Phone\DoorLock\UndistributeIcon.png" /> <BundleResource Include="Resources\Phone\Logo\Logo.png" /> - <BundleResource Include="Resources\Phone\Logo\2.jpg" /> + <BundleResource Include="Resources\Phone\Logo\2.png" /> <BundleResource Include="Resources\Phone\Item\Shared.png" /> <BundleResource Include="Resources\Phone\Item\RoomIcon.png" /> <BundleResource Include="Resources\Phone\Item\Add.png" /> @@ -480,6 +494,7 @@ <BundleResource Include="Resources\Phone\Item\ScanQRcodeIcon.png" /> <BundleResource Include="Resources\Phone\Item\LogicMsgIcon.png" /> <BundleResource Include="Resources\Phone\Item\InputAccountIcon.png" /> + <BundleResource Include="Resources\Phone\Item\NormallyOpen.png" /> <BundleResource Include="Resources\Phone\Item\ItemSelected.png" /> <BundleResource Include="Resources\Phone\Item\UnLockSuccess.png" /> <BundleResource Include="Resources\Phone\Item\GarrisonList.png" /> diff --git a/ZigbeeApp/Home.Ios/Info.plist b/ZigbeeApp/Home.Ios/Info.plist index 61e3e18..b1f348e 100755 --- a/ZigbeeApp/Home.Ios/Info.plist +++ b/ZigbeeApp/Home.Ios/Info.plist @@ -2,6 +2,8 @@ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> + <key>NSContactsUsageDescription</key> + <string>闇�瑕佽鍙栭�氳褰�,鐢ㄤ簬娣诲姞鑳佽揩鑱旂郴浜�</string> <key>NSLocationWhenInUseUsageDescription</key> <string>浣跨敤鏈熼棿闇�瑕佷娇鐢ㄥ湴鐞嗕綅缃紝浠ヤ究鎻愪緵鏈嶅姟锛屽澶╂皵</string> <key>UIViewControllerBasedStatusBarAppearance</key> @@ -55,7 +57,7 @@ <string>remote-notification</string> </array> <key>CFBundleShortVersionString</key> - <string>1.0.20031601</string> + <string>1.0.20040901</string> <key>CFBundleVersion</key> <string>2</string> <key>CFBundleURLTypes</key> diff --git a/ZigbeeApp/Home.Ios/Resources/Language.ini b/ZigbeeApp/Home.Ios/Resources/Language.ini index ab34f65..a46cfd0 100755 --- a/ZigbeeApp/Home.Ios/Resources/Language.ini +++ b/ZigbeeApp/Home.Ios/Resources/Language.ini @@ -152,8 +152,8 @@ 147=鎵嬪娍寮�閿� 148=璇风粦瀹氳繙绋嬪紑閿佺殑闂ㄩ攣 149=鍘昏缃� -150=璇峰墠寰�涓汉涓績{0}璁剧疆浜屾瀹夊叏楠岃瘉鏂瑰紡 -151=璁剧疆浜屾瀹夊叏楠岃瘉鏂瑰紡 +150=璇峰墠寰�涓汉涓績{0}寮�鍚繙绋嬪紑閿侀獙璇� +151=璇峰墠寰�涓汉涓績{0}璁剧疆浜屾瀹夊叏楠岃瘉鏂瑰紡 152=寮�鍚繙绋嬪紑閿侀獙璇� 153=闂ㄩ攣 154=杩滅▼寮�閿� @@ -273,7 +273,6 @@ 266=褰撳墠璁惧涓嶅湪绾� 267=鑾峰彇闊抽噺澶辫触 268=纭畾鍙栨秷璇ユ垚鍛樼殑杩滅▼寮�閿佹潈闄� -269=甯稿紑妯″紡灏嗕簬{0}鍙栨秷 269=闆舵椂鍖� 270=涓滀竴鍖� 271=涓滀簩鍖� @@ -305,6 +304,8 @@ 297= 澶辨晥鏃堕棿涓嶈兘鐪佺暐 298= 澶辨晥鏃堕棿涓嶈兘澶т簬36灏忔椂 299= 澶辨晥鏃堕棿涓嶈兘灏忎簬1灏忔椂 +300=鏂伴 +301=闈炵鐞嗗憳涓嶈兘鍦ㄥ父寮�妯″紡涓嬫搷浣� @@ -1403,9 +1404,9 @@ 15697=妯″潡鏇存崲鐢垫睜 15698=閿欒灏濊瘯寮�閿佽鎶� 15699=鏆村姏寮�闂� -15700=甯稿紑妯″紡寮�鍚� -15701=甯稿紑妯″紡缁撴潫 -15702=闂ㄩ搩瑙﹀彂 +15700=甯稿紑妯″紡寮�鍚�(闂ㄩ攣瑙﹀彂) +15701=甯稿紑妯″紡缁撴潫(闂ㄩ攣瑙﹀彂) +15702=鏈変汉璁块棶 15703=鍘嗗彶璁板綍 15704=绫诲瀷绛涢�� 15705=娓呯┖璁板綍 @@ -1789,6 +1790,9 @@ 16085=涓埆鎵ц鐩爣娣诲姞澶辫触 16086=鍒濆鍖栨墽琛岀洰鏍囧け璐� 16087=淇敼鍦烘櫙鍚嶇О澶辫触 +16088=甯稿紑妯″紡寮�鍚�(缃戝叧瑙﹀彂) +16089=甯稿紑妯″紡缁撴潫(缃戝叧瑙﹀彂) +16090=甯稿紑妯″紡 ;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄帴鍙g殑杩斿洖淇℃伅缈昏瘧,浠�18000寮�濮嬧槄鈽呪槄鈽� 18004=鎸囧畾缃戝叧宸茬粡琚粦瀹� @@ -1895,7 +1899,7 @@ 30017=zigbee涓户鍣� 30018=12鎸夐敭瑙︽懜闈㈡澘(1璺户鐢靛櫒搴曞骇) 30019=4鎸夐敭瑙︽懜闈㈡澘(鍙甫鐢垫簮搴曞骇) -30020=绾㈠浼犳劅鍣� +30020=Zigbee浜轰綋绉诲姩浼犳劅鍣�(鐞冨舰) 30021=1璺皟鍏夊櫒灏忔ā鍧� 30022=zigbee杞珺uspro鍗忚杞崲鍣� 30023=zigbee杞�485鍗忚杞崲鍣� @@ -1923,7 +1927,7 @@ 40005=闂ㄩ攣 40006=绌鸿皟 40007=涓户鍣� -40008=鏅鸿兘绌哄叧 +40008=鏅鸿兘绌哄紑 40009=杞崲鍣� 40010=褰╃伅 40011=娓╂箍搴︿紶鎰熷櫒 @@ -1985,4 +1989,31 @@ 60007=璋冨厜妯″潡 60008=杞崲鍣� 60009=绌鸿皟妯″潡 -60010=鏅鸿兘闂ㄩ攣 \ No newline at end of file +60010=鏅鸿兘闂ㄩ攣 + +;//鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄坊鍔犳柊璁惧鐣岄潰閭i噷鏄剧ず鐨勫悕瀛�,浠�70000寮�濮嬧槄鈽呪槄鈽� +70000=2鎸夐敭闈㈡澘 +70001=3鎸夐敭闈㈡澘 +70002=4鎸夐敭闈㈡澘 +70003=鏂规偊鍗曞紑鍙屾帶闈㈡澘 +70004=鏂规偊鍙屽紑鍥涙帶闈㈡澘 +70005=鏂规偊鍥涘紑鍏帶闈㈡澘 +70006=鏂规偊鏂伴灏忔ā鍧� +70007=鏂规偊鏂伴闈㈡澘 +70008=鏂规偊鐜闈㈡澘 +70009=绐楀笜闈㈡澘 +70010=3璺户鐢靛櫒 +70011=1璺皟鍏夊櫒 +70012=绐楀笜鐢垫満 +70013=鍗峰笜鐢垫満 +70014=绌鸿皟缃戝叧 +70015=闂ㄩ攣 +70016=PIR浼犳劅鍣� +70017=绾㈠浼犳劅鍣� +70018=鐕冩皵浼犳劅鍣� +70019=鐑熼浘浼犳劅鍣� +70020=姘存蹈浼犳劅鍣� +70021=闂ㄧ獥浼犳劅鍣� +70022=娓╂箍搴︿紶鎰熷櫒 +70023=涓户鍣� +70024=鏅鸿兘绌哄紑 \ No newline at end of file diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/Item/NormallyOpen.png b/ZigbeeApp/Home.Ios/Resources/Phone/Item/NormallyOpen.png new file mode 100755 index 0000000..079c5db --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/Item/NormallyOpen.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/Logo/2.jpg b/ZigbeeApp/Home.Ios/Resources/Phone/Logo/2.jpg deleted file mode 100755 index c0c53ac..0000000 --- a/ZigbeeApp/Home.Ios/Resources/Phone/Logo/2.jpg +++ /dev/null Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/Logo/2.png b/ZigbeeApp/Home.Ios/Resources/Phone/Logo/2.png new file mode 100755 index 0000000..7a07804 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/Logo/2.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/0.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/0.png new file mode 100755 index 0000000..b58dd77 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/0.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/1.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/1.png new file mode 100755 index 0000000..8a1ddc7 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/1.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/10.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/10.png new file mode 100755 index 0000000..d1f0d95 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/10.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/11.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/11.png new file mode 100755 index 0000000..bb9e8b0 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/11.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/12.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/12.png new file mode 100755 index 0000000..443e809 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/12.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/13.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/13.png new file mode 100755 index 0000000..2f94a2e --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/13.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/2.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/2.png new file mode 100755 index 0000000..919c660 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/2.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/3.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/3.png new file mode 100755 index 0000000..471a280 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/3.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/4.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/4.png new file mode 100755 index 0000000..5d5ff68 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/4.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/5.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/5.png new file mode 100755 index 0000000..7ac9263 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/5.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/6.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/6.png new file mode 100755 index 0000000..3a184d7 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/6.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/7.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/7.png new file mode 100755 index 0000000..fa0050a --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/7.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/8.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/8.png new file mode 100755 index 0000000..4bb2fdd --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/8.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/9.png b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/9.png new file mode 100755 index 0000000..1242838 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/SceneCardIcon/9.png Binary files differ diff --git a/ZigbeeApp/Shared/Common/CommonPage.cs b/ZigbeeApp/Shared/Common/CommonPage.cs index ba3efd9..46c39a7 100755 --- a/ZigbeeApp/Shared/Common/CommonPage.cs +++ b/ZigbeeApp/Shared/Common/CommonPage.cs @@ -57,7 +57,7 @@ /// <summary> /// 鐗堟湰鍙� /// </summary> - public static string CodeIDString = "1.0.20040801"; + public static string CodeIDString = "1.0.20041301"; /// <summary> /// 娉ㄥ唽鏉ユ簮(0:HDL On 1:Zigbee) /// </summary> diff --git a/ZigbeeApp/Shared/Common/Device.cs b/ZigbeeApp/Shared/Common/Device.cs index 85f3d03..13acb40 100755 --- a/ZigbeeApp/Shared/Common/Device.cs +++ b/ZigbeeApp/Shared/Common/Device.cs @@ -980,34 +980,66 @@ return this.GetDeviceMacName(device); } + //鍚屼竴璁惧閲岄潰,涓嶅悓绫诲瀷鐨勫洖璺�,瀹冪殑鍛藉悕閮戒粠1寮�濮� + int epointNo = 0; + var listSort = this.GetDevicesByMac(device.DeviceAddr); + foreach (var myDevice in listSort) + { + if (myDevice.Type == device.Type) + { + //鍚屼竴绫诲瀷缂栧彿+1 + epointNo++; + if (myDevice.DeviceEpoint == device.DeviceEpoint) + { + //宸茬粡鍒拌揪瀹冭嚜宸� + break; + } + } + } + if (device.Type == DeviceType.OnOffOutput || device.Type == DeviceType.DimmableLight || device.Type == DeviceType.ColorDimmableLight) { //缁х數鍣�,鎺夊厜鍣ㄩ兘鍙洖璺� - return Language.StringByID(R.MyInternationalizationString.uDeviceCircuit) + device.DeviceEpoint; - } - else if (device.Type == DeviceType.Thermostat) - { - //绌鸿皟閮藉彨瀹ゅ唴鏈� - return Language.StringByID(R.MyInternationalizationString.uIndoorUnit) + device.DeviceEpoint; + return Language.StringByID(R.MyInternationalizationString.uDeviceCircuit) + epointNo; } //鑾峰彇璁惧绫诲瀷 var deviceInfoType = this.GetMyDeviceEnumInfo(new List<CommonDevice>() { device }); - if (device.Type == DeviceType.OnOffSwitch) + if (device.Type == DeviceType.Thermostat) + { + //鏂伴闈㈡澘涓殑Thermostat鍙俯搴︿紶鎰熷櫒 + if (deviceInfoType.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir) + { + return Language.StringByID(R.MyInternationalizationString.TemperatureSensor); + } + //绌鸿皟閮藉彨瀹ゅ唴鏈� + return Language.StringByID(R.MyInternationalizationString.uIndoorUnit) + epointNo; + } + else if (device.Type == DeviceType.FreshAir) + { + //鏂伴闈㈡澘涓殑鎸夐敭鍙柊椋� + return Language.StringByID(R.MyInternationalizationString.FreshAir); + } + else if (device.Type == DeviceType.FreshAirHumiditySensor) + { + //鏂伴闈㈡澘婀垮害浼犳劅鍣� + return Language.StringByID(R.MyInternationalizationString.HumiditySensor); + } + else if (device.Type == DeviceType.OnOffSwitch) { //闈㈡澘鐨勫共鎺ョ偣鍙寜閿� if (deviceInfoType.BeloneType == DeviceBeloneType.A鎸夐敭闈㈡澘) { - return Language.StringByID(R.MyInternationalizationString.uPanelButton) + device.DeviceEpoint; + return Language.StringByID(R.MyInternationalizationString.uPanelButton) + epointNo; } //鍏朵粬鐨勫共鎺ョ偣鍙共鎺ョ偣 else { - return Language.StringByID(R.MyInternationalizationString.uDeviceBelongId16) + device.DeviceEpoint; + return Language.StringByID(R.MyInternationalizationString.uDeviceBelongId16) + epointNo; } } //鍏朵粬鎯呭喌,浣跨敤瀹冪殑榛樿鍚嶇О - return Language.StringByID(deviceInfoType.DefultNameId) + device.DeviceEpoint; + return Language.StringByID(deviceInfoType.DefultNameId) + epointNo; } /// <summary> @@ -1571,7 +1603,7 @@ { //榛樿鍊� info.ConcreteTextId = R.MyInternationalizationString.uDeviceBelongId4100; - info.BeloneType = DeviceBeloneType.A鏅鸿兘绌哄紑; + info.BeloneType = DeviceBeloneType.A寮�鍏�; info.ConcreteType = DeviceConcreteType.AirSwitch; info.ObjectTypeNameId = 60001;//寮�鍏虫ā鍧� @@ -1869,12 +1901,7 @@ return Language.StringByID(R.MyInternationalizationString.uDeviceNotAssignedRoom); } var room = HdlRoomLogic.Current.GetRoomById(this.dicDeviceRoomId[device.DeviceAddr]); - if (room != null) - { - return room.Name; - } - //鏈垎閰嶅尯鍩� - return Language.StringByID(R.MyInternationalizationString.uDeviceNotAssignedRoom); + return HdlRoomLogic.Current.GetFloorRoomName(room); } /// <summary> @@ -2009,10 +2036,13 @@ //杩欎釜璁惧涓嶈浜� return false; } - if (i_device.Type == DeviceType.OnOffOutput && i_device.DfunctionType == DeviceFunctionType.A鏈畾涔�) + if (i_device.Type == DeviceType.OnOffOutput || i_device.Type == DeviceType.AirSwitch) { //2020.03.23杩藉姞寮忔牱:鏈寚瀹氱被鍨嬬殑缁х數鍣�,涓嶆樉绀� - return false; + if (i_device.DfunctionType == DeviceFunctionType.A鏈畾涔�) + { + return false; + } } //2020.03.30杩藉姞寮忔牱:濡傛灉鏄潰鏉跨殑娓╁害鎺㈠ご,涓嶆樉绀� else if (i_device.Type == DeviceType.TemperatureSensor && ((TemperatureSensor)i_device).SensorDiv == 1) @@ -2178,7 +2208,7 @@ var listCheck = new HashSet<string>(); Action<string, string> getDeviceAction = (topic, message) => { - if (topic == gatewayID + "/" + "DeviceInfoRespon") + if (topic == gatewayID + "/DeviceInfoRespon") { try { @@ -2226,6 +2256,9 @@ //璁惧鍏ㄩ儴鎺ユ敹瀹屾垚 canBreak = true; } + } + else if (topic == gatewayID + "/DeviceInfoResponEnd") + { } }; @@ -2447,8 +2480,10 @@ else if (deviceType == DeviceType.IASZone) { device = new IASZone(); } else if (deviceType == DeviceType.Repeater) { device = new Repeater(); } else if (deviceType == DeviceType.Thermostat) { device = new AC(); } + else if (deviceType == DeviceType.FreshAir) { device = new FreshAir(); } else if (deviceType == DeviceType.DoorLock) { device = new DoorLock(); } else if (deviceType == DeviceType.TemperatureSensor) { device = new TemperatureSensor(); } + else if (deviceType == DeviceType.FreshAirHumiditySensor) { device = new HumiditySensor(); } else if (deviceType == DeviceType.OtaDevice || deviceType == DeviceType.OtaPanelDevice) { device = new OTADevice(); } else { return null; } @@ -2501,7 +2536,7 @@ //鍓嶈█锛氬洜涓簔igbeehome鐨勮澶囨嫢鏈夊洓绉嶅悕瀛楋細 //1銆佽澶囧畼鏂瑰悕绉� ----瀹冪敱DeviceConcreteType鐨勬暟鍊兼墍鍐冲畾(涓汉涓績涓撶敤) - //2銆佽澶囧叆缃戝悗鐨勯粯璁ゅ悕绉� ----瀹冧笉闇�瑕佸啀浠g爜閲岄潰瀹氫箟,瀹冪洿鎺ュ湪Language鏂囦欢閲岄潰瀹氫箟 + //2銆佽澶囧叆缃戝悗鐨勯粯璁ゅ悕绉� ----瀹冧笉闇�瑕佸湪浠g爜閲岄潰瀹氫箟,瀹冪洿鎺ュ湪Language鏂囦欢閲岄潰瀹氫箟 // 鑼冨洿锛�50000寮�濮�,瀹冪殑瑙勫垯鏄疍eviceConcreteType瀵瑰簲鐨凴鏂囦欢閲岄潰鐨処D鐨勬暟鍊�+20000, //3銆佽澶囨墍灞炲悕绉� ----瀹冩湁DeviceBeloneType鐨勬暟鍊兼墍鍐冲畾 //4銆佽澶囩被鍨嬪悕绉� ----瀹冪敱銆愯澶囩被鍨嬬殑缈昏瘧ID銆戞墍鍐冲畾,杩欎釜鍊兼槸涓汉涓績涓撶敤, @@ -2538,12 +2573,20 @@ this.dicDeviceModelIdEnum["MSPIR01-ZB.10"] = "1200-1200-60000";//pir浼犳劅鍣�220 //=========鈽呪槄瀹夐槻绫讳紶鎰熷櫒绫�(1300-2299)鈽呪槄========= + //杩欓噷鏄害涔愬厠鐨� this.dicDeviceModelIdEnum["MULTI-GASE--EA07"] = "1300-1300-60000";//鐕冩皵浼犳劅鍣� this.dicDeviceModelIdEnum["MULTI-MECI--EA01"] = "1301-1300-60000";//闂ㄧ獥纾佷紶鎰熷櫒 this.dicDeviceModelIdEnum["MULTI-FIRE--EA05"] = "1302-1300-60000";//鐑熼浘浼犳劅鍣� this.dicDeviceModelIdEnum["MULTI-MOTI--EA04"] = "1303-1300-60000";//绾㈠浼犳劅鍣� this.dicDeviceModelIdEnum["MULTI-WATE--EA02"] = "1304-1300-60000";//姘存蹈浼犳劅鍣� this.dicDeviceModelIdEnum["MULTI-BURO--EA06"] = "1305-1300-60000";//绱ф�ユ寜閿� + //杩欓噷鏄渤涓滅殑 + this.dicDeviceModelIdEnum["MSG01/M-ZB.10"] = "1300-1300-60000";//鐕冩皵浼犳劅鍣� + this.dicDeviceModelIdEnum["MSDC01/M-ZB.10"] = "1301-1300-60000";//闂ㄧ獥纾佷紶鎰熷櫒 + this.dicDeviceModelIdEnum["MSS01/M-ZB.10"] = "1302-1300-60000";//鐑熼浘浼犳劅鍣� + this.dicDeviceModelIdEnum["MSPIR01/M-ZB.10"] = "1303-1300-60000";//绾㈠浼犳劅鍣� + this.dicDeviceModelIdEnum["MSW01/M-ZB.10"] = "1304-1300-60000";//姘存蹈浼犳劅鍣� + this.dicDeviceModelIdEnum["MBU01/M-ZB.10"] = "1305-1300-60000";//绱ф�ユ寜閿� //=========鈽呪槄缁х數鍣ㄧ被(2300-2499)鈽呪槄========= this.dicDeviceModelIdEnum["MPR0310-ZB.10"] = "2300-2300-60001";//3璺户鐢靛櫒灏忔ā鍧� diff --git a/ZigbeeApp/Shared/Common/ResultStatus.cs b/ZigbeeApp/Shared/Common/ResultStatus.cs deleted file mode 100755 index e1c8d98..0000000 --- a/ZigbeeApp/Shared/Common/ResultStatus.cs +++ /dev/null @@ -1,37 +0,0 @@ -锘縰sing System; -namespace Shared.Common -{ - [System.Serializable] - public class ResultStatus - { - /// <summary> - /// 鐘舵�佺爜 - /// </summary> - public int Code; - - /// <summary> - /// 鐘舵�� - /// </summary> - public string Status; - - /// <summary> - /// 褰撳墠璐︽埛ID - /// </summary> - public int ID; - - /// <summary> - /// 淇″彿鍊� - /// </summary> - public int Flag; - - /// <summary> - /// 璐︽埛绫诲瀷 - /// </summary> - public int AccountType; - - /// <summary> - /// 涓昏处鍙稩D - /// </summary> - public int MasterID; - } -} diff --git a/ZigbeeApp/Shared/DLL/Android/Shared.Droid.dll b/ZigbeeApp/Shared/DLL/Android/Shared.Droid.dll index 6c93098..81ac7d9 100755 --- a/ZigbeeApp/Shared/DLL/Android/Shared.Droid.dll +++ b/ZigbeeApp/Shared/DLL/Android/Shared.Droid.dll Binary files differ diff --git a/ZigbeeApp/Shared/DLL/IOS/Shared.IOS.dll b/ZigbeeApp/Shared/DLL/IOS/Shared.IOS.dll index bdcee20..0705722 100755 --- a/ZigbeeApp/Shared/DLL/IOS/Shared.IOS.dll +++ b/ZigbeeApp/Shared/DLL/IOS/Shared.IOS.dll Binary files differ diff --git a/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs b/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs index 220a7d5..2e2916f 100755 --- a/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs +++ b/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs @@ -182,7 +182,8 @@ btnZhezhao.Height = btnScenePic.Height; btnZhezhao.Y = btnScenePic.Y; btnZhezhao.Gravity = Gravity.CenterHorizontal; - btnZhezhao.Radius = btnScenePic.Radius; + btnZhezhao.Radius = (uint)Application.GetRealHeight(17); + btnZhezhao.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor; framePicBack.AddChidren(btnZhezhao); //鍒嗕韩鐨勫満鏅笉鑳界紪杈� @@ -399,8 +400,6 @@ var btnEditor = rowDevice.AddEditorControl(); btnEditor.ButtonClickEvent += (sender, e) => { - //闅愯棌鍙虫粦鑿滃崟 - rowDevice.HideMenu(); if (device.Type == DeviceType.DimmableLight//璋冨厜鍣� || device.Type == DeviceType.ColorDimmableLight)//褰╃伅 { @@ -590,8 +589,6 @@ var btnEditor = rowDelay.AddEditorControl(); btnEditor.ButtonClickEvent += (sender, e) => { - //闅愯棌鍙虫粦鑿滃崟 - rowDelay.HideMenu(); //寤舵椂鏃堕棿閫夋嫨 var form = new AdjustTargetAddDelayTimeForm(); form.AddForm(data.DelayTime); @@ -942,11 +939,9 @@ //榛樿鍥惧簱 menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.LocalPicture), () => { - var localPic = new Device.Room.AddRoomSelectPicByLocal(); - UserView.HomePage.Instance.AddChidren(localPic); - UserView.HomePage.Instance.PageIndex += 1; - localPic.Show(); - localPic.action = (imgPath) => + var form = new SelectLocalSceneImageForm(); + form.AddForm(); + form.FinishSelectEvent = (imgPath) => { if (string.IsNullOrEmpty(imgPath) == true) { diff --git a/ZigbeeApp/Shared/Phone/Category/AdjustTargetAddDelayTimeForm.cs b/ZigbeeApp/Shared/Phone/Category/AdjustTargetAddDelayTimeForm.cs index 5f1d3e6..c88d512 100755 --- a/ZigbeeApp/Shared/Phone/Category/AdjustTargetAddDelayTimeForm.cs +++ b/ZigbeeApp/Shared/Phone/Category/AdjustTargetAddDelayTimeForm.cs @@ -39,6 +39,11 @@ private void InitMiddleFrame(int i_delayTime) { int selectTime = i_delayTime; + if (selectTime == 0) + { + //榛樿1绉� + selectTime = 1; + } //鍥炬爣绗竴灞傚簳鑹� var frameFirstBack = new FrameLayout(); @@ -110,8 +115,13 @@ var listTemp2 = new List<string>() { "00" + strSecond }; listSecond.Add(listTemp2); + int firstIndex = selectTime / 60; + int secondIndex = selectTime % 60; + //鍥犱负0鍒嗙殑鏃跺�欙紝瀹冩槸浠�1绉掑紑濮嬬殑锛屾墍浠ュ畠鐨勭储寮曢渶瑕�-1 + if (firstIndex == 0) { secondIndex--; } + pickView.setPicker(listfirst, listSecond); - pickView.setCurrentItems(selectTime / 60, selectTime % 60, 0); + pickView.setCurrentItems(firstIndex, secondIndex, 0); pickView.OnSelectChangeEvent += (value1, value2, value3) => { int minute = Convert.ToInt32(listfirst[value1].Substring(0, 2)); diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs index 4dc0ec2..04dc6ed 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs @@ -142,8 +142,6 @@ var btnEditor = this.AddEditorControl(); btnEditor.ButtonClickEvent += (sender, e) => { - //鍏抽棴宸︽粦鑿滃崟 - this.HideMenu(); var detailInfo = new MainPage.DeviceDetailInfoForm(); detailInfo.AddForm(i_device, HdlRoomLogic.Current.CurrentRoom); detailInfo.FormCloseEvent += (curDevice, curRoom) => diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs index b23860a..325d9ac 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs @@ -122,7 +122,7 @@ /// <returns></returns> public override bool CheckIsOpenStatu(CommonDevice i_device) { - return ((Rollershade)i_device).WcdCurrentPositionLiftPercentage > 10; + return ((Rollershade)i_device).WcdCurrentPositionLiftPercentage > 0; } #endregion diff --git a/ZigbeeApp/Shared/Phone/Category/SelectLocalSceneImageForm.cs b/ZigbeeApp/Shared/Phone/Category/SelectLocalSceneImageForm.cs new file mode 100755 index 0000000..b2de711 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/Category/SelectLocalSceneImageForm.cs @@ -0,0 +1,119 @@ +锘縰sing Shared.Common; +using Shared.Phone.UserCenter; +using System; +using System.Collections.Generic; +using System.Text; + +namespace Shared.Phone.Category +{ + /// <summary> + /// 閫夋嫨鏈湴鍦烘櫙鍥剧墖鐨勭晫闈� + /// </summary> + public class SelectLocalSceneImageForm : EditorCommonForm + { + #region 鈻� 鍙橀噺澹版槑___________________________ + + /// <summary> + /// 缁撴潫閫夋嫨鐨勪簨浠�(鍥剧墖鍚嶅瓧) + /// </summary> + public Action<string> FinishSelectEvent = null; + + #endregion + + #region 鈻� 鍒濆鍖朹____________________________ + + /// <summary> + /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) + /// </summary> + public void ShowForm() + { + //鍒濆鍖栦腑閮ㄤ俊鎭� + this.InitMiddleFrame(); + } + + /// <summary> + /// 鍒濆鍖栦腑閮ㄤ俊鎭� + /// </summary> + private void InitMiddleFrame() + { + //娓呯┖bodyFrame + this.ClearBodyFrame(); + + //鍒楄〃鎺т欢 + var listView = new VerticalListControl(); + listView.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listView); + + int picHeight = this.GetPictrueRealSize(220); + int picWidth = this.GetPictrueRealSize(463); + int leftRightSpace = this.GetPictrueRealSize(40); + int space = listView.Width - leftRightSpace * 2 - picWidth * 2; + + //涓�鍏�14寮犲浘鐗� + FrameLayout frameRow = null; + for (int i = 0; i < 14; i++) + { + //鍥剧墖 + var btnIcon = new ImageView(); + btnIcon.Y = Application.GetRealHeight(58); + btnIcon.Width = picWidth; + btnIcon.Height = picHeight; + btnIcon.ImagePath = $"SceneIcon/{i}.png"; + btnIcon.Radius = (uint)Application.GetRealHeight(17); + + if (i % 2 == 0) + { + btnIcon.X = leftRightSpace; + + //琛屾帶浠� + frameRow = new FrameLayout(); + frameRow.Height = picHeight + Application.GetRealHeight(58); + listView.AddChidren(frameRow); + } + else + { + btnIcon.X = leftRightSpace + picWidth + space; + } + frameRow.AddChidren(btnIcon); + + //鍥剧墖閬僵 + var btnZhezhao = new FrameLayout(); + btnZhezhao.Width = btnIcon.Width; + btnZhezhao.Height = btnIcon.Height; + btnZhezhao.Y = btnIcon.Y; + btnZhezhao.X = btnIcon.X; + btnZhezhao.Radius = (uint)Application.GetRealHeight(17); + btnZhezhao.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor; + frameRow.AddChidren(btnZhezhao); + btnZhezhao.SetViewShadow(true); + btnZhezhao.MouseUpEventHandler += (sender, e) => + { + //缁撴潫閫夋嫨鐨勪簨浠� + this.FinishSelectEvent?.Invoke(btnIcon.ImagePath); + this.CloseForm(); + }; + } + + //搴曢儴闂磋窛 + var frameTemp = new FrameLayout(); + frameTemp.Height = Application.GetRealHeight(58); + listView.AddChidren(frameTemp); + } + + #endregion + + #region 鈻� 鐣岄潰鍏抽棴___________________________ + + /// <summary> + /// 鐣岄潰鍏抽棴 + /// </summary> + public override void CloseFormBefore() + { + this.FinishSelectEvent = null; + + base.CloseFormBefore(); + } + + #endregion + } +} diff --git a/ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs b/ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs index 6a909a9..5c002e7 100755 --- a/ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs +++ b/ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs @@ -277,6 +277,16 @@ { } + /// <summary> + /// 璁$畻鍥剧墖鐨勭湡瀹為珮瀹藉害 + /// </summary> + /// <param name="i_size"></param> + /// <returns></returns> + public int GetPictrueRealSize(int i_size) + { + return HdlControlLogic.Current.GetPictrueRealSize(i_size); + } + #endregion #region 鈻� 鍙嶅皠鏂规硶___________________________ diff --git a/ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs b/ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs index 92435b1..d0417ce 100755 --- a/ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs +++ b/ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs @@ -15,6 +15,10 @@ #region 鈻� 鍙橀噺澹版槑___________________________ /// <summary> + /// 杩斿洖鎸夐敭鐨勭偣鍑讳簨浠�(濡傛灉瀹炵幇姝や簨浠�,鍒欏簳灞傜殑浜嬩欢灏嗕笉浼氬啀瑙﹀彂) + /// </summary> + public Action<BackViewControl> BackButtonClickEvent = null; + /// <summary> /// TopMenuFrameLayout /// </summary> public FrameLayout topMenuFrameLayout = null; @@ -124,6 +128,12 @@ btnBack.InitControl(); btnBack.ButtonClickEvent += (sender, e) => { + if (this.BackButtonClickEvent != null) + { + //濡傛灉瀹炵幇姝や簨浠�,鍒欏簳灞傜殑浜嬩欢灏嗕笉浼氬啀瑙﹀彂 + BackButtonClickEvent(btnBack); + return; + } //鐢婚潰鍏抽棴 this.CloseForm(); }; @@ -210,6 +220,8 @@ //宸︽粦浣胯兘 this.ScrollEnabled = true; + this.BackButtonClickEvent = null; + this.m_parameter = null; //娓呯┖bodyFrame this.ClearBodyFrame(); diff --git a/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs b/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs deleted file mode 100755 index 04908bc..0000000 --- a/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs +++ /dev/null @@ -1,1467 +0,0 @@ -锘縰sing System; -using Shared.Common; -using ZigBee.Device; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.UserView; -using Shared.Phone.Device.DeviceLogic; - -namespace Shared.Phone.Device.AC -{ - public class ACControl : FrameLayout,ZigBee.Common.IStatus - { - #region 鈼� 鍙橀噺__________________________ - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice, Common.Room> action; - - /// <summary> - /// 鏀惰棌鎸夐挳 - /// </summary> - private Button collectionBtn; - /// <summary> - /// 浼犺繃鏉ョ殑璁惧 - /// </summary> - private CommonDevice device; - /// <summary> - /// 浼犺繃鏉ョ殑鎴块棿 - /// </summary> - private Shared.Common.Room room; - - /// <summary> - /// 鎴块棿 - /// </summary> - private Button roomBtn; - /// <summary> - /// 鎴块棿鍚� - /// </summary> - private Button roomName; - /// <summary> - /// 缃戝叧 - /// </summary> - private ZbGateway zbGateway = null; - /// <summary> - /// 鏄惁鍙戦�佹帶鍒跺懡浠ゆ垚鍔熶簡 - /// </summary> - private bool sendedControlCommand = false; - - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// 瀹ゆ俯 - /// </summary> - private Button indoorTemperatureBtn; - - /// <summary> - /// OpenOrUpBtn - /// </summary> - public Button OpenOrUpBtn; - /// <summary> - /// OpenOrUpBtn - /// </summary> - public Button CloseOrDownBtn; - /// <summary> - /// StopBtn - /// </summary> - public Button StopBtn; - - - /// <summary> - /// 褰撳墠妯″紡 - /// </summary> - private Button currentModeBtn; - /// <summary> - /// 娣诲姞娓╁害 - /// </summary> - private Button addTemperatureBtn; - /// <summary> - /// 闄嶄綆娓╁害 - /// </summary> - private Button reduceTemperatureBtn; - /// <summary> - /// 绌鸿皟妯″紡 - /// </summary> - private Button modeBtn; - /// <summary> - /// 寮�鍚垨鍏抽棴 - /// </summary> - private Button switchBtn; - /// <summary> - /// 椋庨�熸ā寮� - /// </summary> - private Button fanModeBtn; - /// <summary> - /// 鎵妯″紡 - /// </summary> - private Button FanSwingModeBtn; - /// <summary> - /// 椋庨�熼�夋嫨瑙嗗浘 - /// </summary> - private Dialog fanModeDialog; - /// <summary> - /// 妯″紡閫夋嫨瑙嗗浘 - /// </summary> - private Dialog acModeDialog; - - /// <summary> - /// 浼犺繃鏉ョ殑ac - /// </summary> - private ZigBee.Device.AC ac; - /// <summary> - /// mArcScaleSeekBar - /// </summary> - private ArcScaleSeekBar mArcScaleSeekBar = new ArcScaleSeekBar { }; - /// <summary> - /// 娓呮磥鐘舵�� - /// </summary> - private LeftIconButtonRow cleanStatu; - - /// <summary> - /// IsDrawerLockMode - /// </summary> - public bool IsDrawerLockMode; - #endregion - - #region 鈼� 鎺ュ彛___________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - if (deviceUI == null) - { - return; - } - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - - if (common.DeviceStatusReport.CluterID == 513) - { - var attriButeList = common.DeviceStatusReport.AttriBute; - if (attriButeList == null || attriButeList.Count == 0) - { - return; - } - deviceUI.DeviceStatusReport = common.DeviceStatusReport; - foreach(var attList in attriButeList) - { - switch (attList.AttributeId) - { - case 0: - ac.currentLocalTemperature = attList.AttriButeData / 100; - ac.LastDateTime = DateTime.Now; - indoorTemperatureBtn.Text = $"{Language.StringByID(R.MyInternationalizationString.Current)} {ac.currentLocalTemperature} 鈩�"; - break; - case 17: - ac.currentCoolingSetpoint = attList.AttriButeData / 100; - if (ac.currentSystemMode == 3 || ac.currentSystemMode == 8) - { - mArcScaleSeekBar.Progress = ac.currentCoolingSetpoint; - } - ac.LastDateTime = DateTime.Now; - break; - case 18: - ac.currentHeatingSetpoint = attList.AttriButeData / 100; - if (ac.currentSystemMode == 4) - { - mArcScaleSeekBar.Progress = ac.currentHeatingSetpoint; - } - ac.LastDateTime = DateTime.Now; - break; - case 4096: - ac.currentAutoSetpoint = attList.AttriButeData / 100; - if (ac.currentSystemMode == 1) - { - mArcScaleSeekBar.Progress = ac.currentAutoSetpoint; - } - ac.LastDateTime = DateTime.Now; - break; - case 28: - //姝ゅ睘鎬ф弿杩版亽娓╄澶囨澶勪簬鍝妯″紡 - //Off = 0 Auto = 1 Cool = 3 Heat = 4 FanOnly = 7 Dry = 8 - ac.currentSystemMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - if (ac.currentSystemMode == 0) - { - switchBtn.IsSelected = false; - modeBtn.IsSelected = false; - fanModeBtn.IsSelected = false; - FanSwingModeBtn.IsSelected = false; - mArcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); - //濡傛灉鏄叧闂┖璋冪殑璇�,鐩存帴鍙樻殫鍗冲彲 - return; - } - else if (ac.currentSystemMode == 1 || ac.currentSystemMode == 3 || ac.currentSystemMode == 4 || ac.currentSystemMode == 7 || ac.currentSystemMode == 8) - { - switchBtn.IsSelected = true; - modeBtn.IsSelected = true; - fanModeBtn.IsSelected = true; - FanSwingModeBtn.IsSelected = true; - mArcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCArcScaleSeekBarStartColor, ZigbeeColor.Current.GXCArcScaleSeekBarEndColor); - } - modeBtn.SelectedImagePath = ACControlBase.GetModeSelectedImagePathByModeId(ac.currentSystemMode); - modeBtn.UnSelectedImagePath = ACControlBase.GetModeUnSelectedImagePathByModeId(ac.currentSystemMode); - currentModeBtn.Text = ACControlBase.GetModeNameByModeId(ac.currentSystemMode); - mArcScaleSeekBar.Progress = ACControlBase.GetCurrentModeTemperature(ac); - mArcScaleSeekBar.IsClickable = ACControlBase.IsOpen(ac); - break; - case 4097: - //杩囪檻缃戞竻娲楁爣蹇�:42 - ac.CleanStatu = attList.AttriButeData == 42; - cleanStatu.Visible = ac.CleanStatu; - break; - } - } - } - - if (common.DeviceStatusReport.CluterID == 514) - { - var attriButeList = common.DeviceStatusReport.AttriBute; - ac.DeviceStatusReport = common.DeviceStatusReport; - foreach(var attList in attriButeList) - { - switch (attList.AttributeId) - { - case 0: - //椋庢墖褰撳墠鐨勫伐浣滄ā寮� 1=Low 2=Medium 3=High - ac.currentFanMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - fanModeBtn.IsSelected = true; - fanModeBtn.SelectedImagePath = ACControlBase.GetFanModeSelectedImagePathByFanModeId(ac.currentFanMode); - fanModeBtn.UnSelectedImagePath = ACControlBase.GetFanModeUnSelectedImagePathByFanModeId(ac.currentFanMode); - break; - case 4096: - //椋庢墖褰撳墠鐨勬壂椋庢ā寮� - ac.currentFanSwingMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - FanSwingModeBtn.IsSelected = true; - FanSwingModeBtn.SelectedImagePath = ACControlBase.GetFanSwingModeSelectedImagePathByFanSwingModeId(ac.currentFanSwingMode); - FanSwingModeBtn.UnSelectedImagePath = ACControlBase.GetFanSwingModeUnSelectedImagePathByFanSwingModeId(ac.currentFanSwingMode); - break; - } - } - } - //***鏂版敼 * **璁惧鐘舵�佷笂鎶ヤ腑锛屽綋CluterID = 3,璇佹槑璁惧鍦ㄧ嚎锛岀洿鎺ユ爣璁� - else if (common.DeviceStatusReport.CluterID == 3) - { - ac.IsOnline = 1; - switchBtn.IsSelected = true; - ac.LastDateTime = DateTime.Now; - } - - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - else if (typeTag == "OnlineStatusChange") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - if (deviceUI.Type == DeviceType.Thermostat) - { - ac.IsOnline = common.IsOnline; - ac.LastDateTime = DateTime.Now; - } - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - } - - #endregion - - #region 鈼� 鏋勯�犳柟娉昣_______________________ - - /// <summary> - /// 鏋勯�犳柟娉� - /// </summary> - public ACControl() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - ZigBee.Device.ZbGateway.StatusList.Add(this); - HomePage.Instance.ScrollEnabled = false; - - } - - #endregion - - #region 鈼� 閲嶅啓绉婚櫎鏂规硶____________________ - - /// <summary> - /// Removes from parent. - /// </summary> - public override void RemoveFromParent() - { - ZigBee.Device.ZbGateway.StatusList.Remove(this); - action(device, room); - action = null; - RemoveUpdateControlDeviceStatuAction(); - HomePage.Instance.ScrollEnabled = true; - if (IsDrawerLockMode) - { - CommonPage.Instance.IsDrawerLockMode = false; - } - base.RemoveFromParent(); - } - - #endregion - - #region 鈼� 鏄剧ず鐣岄潰________________________ - - /// <summary> - /// 鏄剧ず鐣岄潰 - /// </summary> - /// <param name="dev">Device.</param> - /// <param name="room">Room.</param> - public void Show(CommonDevice dev, Shared.Common.Room room) - { - device = dev; - zbGateway = this.device.Gateway; - this.room = room; - this.ac = device as ZigBee.Device.AC; - AddTop(); - - AddBodyView(device); - - if (ac.Gateway == null) - { - return; - } - if (ac.Gateway.IsVirtual) - { - //鍙戦�佽鍙栫姸鎬佸懡浠� - UserView.UserHomeView.ReadStatus(ac, () => - { - ReadDeviceAttributeLogic.Instance.SendACStatuComand(device); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇璁惧鐘舵�� - if ((DateTime.Now - ac.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendACStatuComand(device); - } - } - - if (UserCenter.HdlRoomLogic.Current.IsCollectInRoom(device)==false) - { - collectionBtn.IsSelected = false; - } - else - { - collectionBtn.IsSelected = true; - } - - BindEvent(); - } - - #endregion - - #region 鈼� Add____________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - var moreBtn = new Button - { - X = Application.GetRealWidth(953), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/More.png" - }; - top.topView.AddChidren(moreBtn); - - moreBtn.MouseUpEventHandler += More; - } - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView(CommonDevice device) - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var itemView = new FrameLayout() - { - Y = Application.GetRealHeight(115), - Width = Application.GetRealWidth(965), - Height = Application.GetRealHeight(1457), - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(itemView); - - cleanStatu = new LeftIconButtonRow(400, 80, 0, 20); - itemView.AddChidren(cleanStatu); - cleanStatu.Init("AC/AC_TIP.png", "AC/AC_TIP.png", Language.StringByID(R.MyInternationalizationString.NeedCleanAC), false); - cleanStatu.Visible = false; - - collectionBtn = new Button() - { - X = Application.GetRealWidth(850), - Y = Application.GetRealHeight(46), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - UnSelectedImagePath = "Item/Collection.png", - SelectedImagePath = "Item/CollectionSelected.png" - }; - itemView.AddChidren(collectionBtn); - - var deviceNameBtn = new Button() - { - Y = Application.GetRealHeight(184), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 15, - IsBold=true - }; - itemView.AddChidren(deviceNameBtn); - - indoorTemperatureBtn = new Button - { - Y = Application.GetRealHeight(256), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - Text = $"{Language.StringByID(R.MyInternationalizationString.Current)} {ac.currentLocalTemperature} 鈩�", - TextSize=10 - }; - itemView.AddChidren(indoorTemperatureBtn); - - var mArcScaleSeekBarFL = new FrameLayout - { - Y = Application.GetRealHeight(412), - Width = Application.GetMinRealAverage(671), - Height = Application.GetMinRealAverage(671), - Gravity = Gravity.CenterHorizontal - }; - itemView.AddChidren(mArcScaleSeekBarFL); - - mArcScaleSeekBar = new ArcScaleSeekBar - { - Width = Application.GetMinRealAverage(671), - Height = Application.GetMinRealAverage(671), - Gravity = Gravity.CenterHorizontal, - MinValue = ACControlBase.Temperature_Low, - MaxValue = ACControlBase.Temperature_High, - Progress = ACControlBase.GetCurrentModeTemperature(ac), - IsClickable = ACControlBase.IsOpen(ac), - ProgressBarUnitSring = string.Empty - }; - mArcScaleSeekBarFL.AddChidren(mArcScaleSeekBar); - if(ACControlBase.IsOpen(ac)) - { - mArcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCArcScaleSeekBarStartColor, ZigbeeColor.Current.GXCArcScaleSeekBarEndColor); - } - else - { - mArcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); - } - mArcScaleSeekBar.OnStopTrackingTouchEvent += (sender, e) => - { - if (ac.currentSystemMode == 3 || ac.currentSystemMode == 8) - { - ac.currentCoolingSetpoint = e; - ac.SetCoolingTemperatureAsync(ac.currentCoolingSetpoint * 100); - } - else if (ac.currentSystemMode == 4) - { - ac.currentHeatingSetpoint = e; - ac.SetHeatingTemperatureAsync(ac.currentHeatingSetpoint * 100); - } - else if (ac.currentSystemMode == 1) - { - ac.currentAutoSetpoint = e; - ac.SetAutoTemperatureAsync(ac.currentAutoSetpoint * 100); - } - }; - - currentModeBtn = new Button() - { - Y = Application.GetMinRealAverage(187), - Height = Application.GetRealHeight(50), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - Gravity = Gravity.CenterHorizontal, - Text = ACControlBase.GetModeNameByModeId(ac.currentSystemMode), - TextSize = 12 - }; - mArcScaleSeekBarFL.AddChidren(currentModeBtn); - - reduceTemperatureBtn = new Button() - { - X = Application.GetMinRealAverage(132), - Y = Application.GetMinRealAverage(268), - Width = Application.GetMinRealAverage(80), - Height = Application.GetMinRealAverage(80), - UnSelectedImagePath = "AC/Reduce.png" - }; - mArcScaleSeekBarFL.AddChidren(reduceTemperatureBtn); - - addTemperatureBtn = new Button() - { - X = Application.GetMinRealAverage(452), - Y = Application.GetMinRealAverage(268), - Width = Application.GetMinRealAverage(80), - Height = Application.GetMinRealAverage(80), - UnSelectedImagePath = "AC/Add.png" - }; - mArcScaleSeekBarFL.AddChidren(addTemperatureBtn); - - var uintBtn = new Button - { - Y = Application.GetMinRealAverage(369), - Height = Application.GetRealHeight(60), - Width = Application.GetRealWidth(100), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - Gravity = Gravity.CenterHorizontal, - Text = "鈩�", - TextSize = 18 - }; - mArcScaleSeekBarFL.AddChidren(uintBtn); - - FanSwingModeBtn = new Button() - { - X = Application.GetRealWidth(156), - Y = Application.GetRealHeight(1086), - Width = Application.GetMinRealAverage(80), - Height = Application.GetMinRealAverage(80), - UnSelectedImagePath = ACControlBase.GetFanSwingModeUnSelectedImagePathByFanSwingModeId(ac.currentFanSwingMode), - SelectedImagePath = ACControlBase.GetFanSwingModeSelectedImagePathByFanSwingModeId(ac.currentFanSwingMode), - IsSelected = ACControlBase.IsOpen(ac) - }; - - modeBtn = new Button() - { - X = Application.GetRealWidth(346), - Y = Application.GetRealHeight(1086), - Width = Application.GetMinRealAverage(80), - Height = Application.GetMinRealAverage(80), - UnSelectedImagePath = ACControlBase.GetModeUnSelectedImagePathByModeId(ac.currentSystemMode), - SelectedImagePath = ACControlBase.GetModeSelectedImagePathByModeId(ac.currentSystemMode), - IsSelected = ACControlBase.IsOpen(ac) - }; - itemView.AddChidren(modeBtn); - - switchBtn = new Button() - { - X = Application.GetRealWidth(536), - Y = Application.GetRealHeight(1086), - Width = Application.GetMinRealAverage(80), - Height = Application.GetMinRealAverage(80), - UnSelectedImagePath = "AC/OpenOrClose.png", - SelectedImagePath = "AC/OpenOrCloseSelected.png", - IsSelected = ACControlBase.IsOpen(ac) - }; - itemView.AddChidren(switchBtn); - - fanModeBtn = new Button() - { - X = Application.GetRealWidth(729), - Y = Application.GetRealHeight(1086), - Width = Application.GetMinRealAverage(80), - Height = Application.GetMinRealAverage(80), - UnSelectedImagePath = ACControlBase.GetFanModeUnSelectedImagePathByFanModeId(ac.currentFanMode), - SelectedImagePath = ACControlBase.GetFanModeSelectedImagePathByFanModeId(ac.currentFanMode), - IsSelected = ACControlBase.IsOpen(ac) - }; - itemView.AddChidren(fanModeBtn); - - if (ac.UseSwingFunction) - { - itemView.AddChidren(FanSwingModeBtn); - } - else - { - modeBtn.X = Application.GetRealWidth(207); - switchBtn.X = Application.GetRealWidth(444); - fanModeBtn.X = Application.GetRealWidth(677); - } - - - var roomBG = new Button - { - Y = Application.GetRealHeight(1322 - 50), - Height = Application.GetRealHeight(138 + 50), - BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor, - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius) - }; - itemView.AddChidren(roomBG); - - var roomBG2 = new Button - { - Y = Application.GetRealHeight(1322 - 50), - Height = Application.GetRealHeight(50), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - itemView.AddChidren(roomBG2); - - roomBtn = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(1351), - Width = Application.GetMinReal(80), - Height = Application.GetMinReal(80), - UnSelectedImagePath = "Item/Room.png" - }; - itemView.AddChidren(roomBtn); - - roomName = new Button() - { - X = Application.GetRealWidth(150), - Y = Application.GetRealHeight(1368), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(50), - Text = room.Name, - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize=12 - }; - itemView.AddChidren(roomName); - } - - #endregion - - #region 鈼� 缁戝畾浜嬩欢________________________ - - /// <summary> - /// 缁戝畾鎸夐挳鐨勪簨浠� - /// </summary> - private void BindEvent() - { - switchBtn.MouseUpEventHandler += Switch_MouseUpEvent; - collectionBtn.MouseUpEventHandler += Collection; - fanModeBtn.MouseUpEventHandler += ShowChangeFan_MouseUpEvent; - modeBtn.MouseUpEventHandler += ShowChangeMode_MouseUpEvent; - FanSwingModeBtn.MouseUpEventHandler += ShowChangeFanSwing_MouseUpEvent; - reduceTemperatureBtn.MouseUpEventHandler += Reduce_MouseUpEvent; - addTemperatureBtn.MouseUpEventHandler += Add_MouseUpEvent; - } - - #endregion - - #region 鈼� 寮�鍏砡_________________________ - - /// <summary> - /// 寮�鍏� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void Switch_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - switchBtn.IsSelected = !switchBtn.IsSelected; - mArcScaleSeekBar.IsClickable = switchBtn.IsSelected; - if (switchBtn.IsSelected == true) - { - ac.Open(); - modeBtn.IsSelected = true; - fanModeBtn.IsSelected = true; - FanSwingModeBtn.IsSelected = true; - mArcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCArcScaleSeekBarStartColor, ZigbeeColor.Current.GXCArcScaleSeekBarEndColor); - } - else - { - ac.Close(); - modeBtn.IsSelected = false; - fanModeBtn.IsSelected = false; - FanSwingModeBtn.IsSelected = false; - mArcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); - } - } - - #endregion - - #region 鈼� 鍒囨崲椋庨�焈______________________ - - /// <summary> - /// 鍒囨崲椋庨�� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void ShowChangeFan_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - int fanItem_X = 80; - int fanItem_Height = 150; - int fanItem_Width = 449; - - fanModeDialog = new Dialog(); - fanModeDialog.Show(); - var closeBGview = new FrameLayout(); - fanModeDialog.AddChidren(closeBGview); - closeBGview.MouseUpEventHandler += (send1, e1) => - { - fanModeDialog.Close(); - }; - - var changeFanModeBG = new Button() - { - X = Application.GetRealWidth(600), - Y = Application.GetRealHeight(750), - Height = Application.GetRealHeight(625), - Width = Application.GetRealWidth(fanItem_Width), - UnSelectedImagePath = "AC/SelectedFanModeBG.png" - }; - closeBGview.AddChidren(changeFanModeBG); - - var changeFanModeFL = new VerticalScrolViewLayout() - { - X = Application.GetRealWidth(600), - Y = Application.GetRealHeight(750), - Height = Application.GetRealHeight(600), - Width = Application.GetRealWidth(fanItem_Width), - ScrollEnabled=false, - VerticalScrollBarEnabled=false - }; - closeBGview.AddChidren(changeFanModeFL); - - var changeFanBtn = new Button() - { - X = Application.GetRealWidth(fanItem_X), - Width = Application.GetRealWidth(fanItem_Width - fanItem_X), - Height = Application.GetRealHeight(fanItem_Height), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextID = R.MyInternationalizationString.SelectFanMode, - TextAlignment = TextAlignment.CenterLeft, - TextSize=14, - IsBold=true - }; - changeFanModeFL.AddChidren(changeFanBtn); - - var fan_Low = new LeftIconButtonRow(); - fan_Low.Tag = ZigBee.Device.AC.FanMode.Low; - fan_Low.Init("AC/Fan_Low.png", "AC/Fan_LowSelected.png", Language.StringByID(R.MyInternationalizationString.Fan_Low)); - fan_Low.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor_FanModel); - changeFanModeFL.AddChidren(fan_Low); - - var fan_Middle = new LeftIconButtonRow(); - fan_Middle.Tag = ZigBee.Device.AC.FanMode.Medium; - fan_Middle.Init("AC/Fan_Middle.png", "AC/Fan_MiddleSelected.png", Language.StringByID(R.MyInternationalizationString.Fan_Middle)); - fan_Middle.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor_FanModel); - changeFanModeFL.AddChidren(fan_Middle); - - var fan_Height = new LeftIconButtonRow(); - fan_Height.Tag = ZigBee.Device.AC.FanMode.High; - fan_Height.Init("AC/Fan_Height.png", "AC/Fan_HeightSelected.png", Language.StringByID(R.MyInternationalizationString.Fan_Height), false); - fan_Height.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor_FanModel); - changeFanModeFL.AddChidren(fan_Height); - - fan_Low.ButtonClickEvent += ChangeFan_MouseUpEvent; - fan_Middle.ButtonClickEvent += ChangeFan_MouseUpEvent; - fan_Height.ButtonClickEvent += ChangeFan_MouseUpEvent; - - if (ACControlBase.IsOpen(ac)) - { - if (ac.currentFanMode == 1) - { - fan_Low.IsSelected=true; - } - else if (ac.currentFanMode == 2) - { - fan_Middle.IsSelected=true; - } - else - { - fan_Height.IsSelected=true; - } - } - } - - /// <summary> - /// 鍒囨崲椋庨�� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void ChangeFan_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - var tag = (sender as LeftIconButtonRow).Tag.ToString(); - ZigBee.Device.AC.FanMode mode = ZigBee.Device.AC.FanMode.Low; - if (tag == "Low") - { - mode = ZigBee.Device.AC.FanMode.Low; - } - else if (tag == "Medium") - { - mode = ZigBee.Device.AC.FanMode.Medium; - } - else if (tag == "High") - { - mode = ZigBee.Device.AC.FanMode.High; - } - - ChangeFan(mode); - } - - /// <summary> - /// 鍒囨崲椋庨�� - /// </summary> - /// <param name="fanMode">Fan mode.</param> - private void ChangeFan(ZigBee.Device.AC.FanMode fanMode) - { - fanModeDialog.Close(); - if (ACControlBase.IsOpen(ac) == false) - { - ACControlBase.ShowACIsCloseTip(); - return; - } - fanModeBtn.IsSelected = true; - fanModeBtn.SelectedImagePath = ACControlBase.GetFanModeSelectedImagePathByFanMode(fanMode); - fanModeBtn.UnSelectedImagePath = ACControlBase.GetFanModeUnSelectedImagePathByFanMode(fanMode); - ac.currentFanMode = (int)(fanMode); - - ac.SetFanModeAsync(fanMode); - } - - #endregion - - #region 鈼� 鍒囨崲妯″紡_______________________ - /// <summary> - /// 鍒囨崲妯″紡 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void ShowChangeMode_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - if (HadSupportModel() == false) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.AC_Model_None)); - return; - } - - int modeItem_X = 80; - int modeItem_Height = 150; - int modeItem_Width = 449; - - acModeDialog = new Dialog(); - acModeDialog.Show(); - var closeBGview = new FrameLayout(); - acModeDialog.AddChidren(closeBGview); - closeBGview.MouseUpEventHandler += (send1, e1) => - { - acModeDialog.Close(); - }; - - var changeModeBG = new Button() - { - X = Application.GetRealWidth(230), - Y = Application.GetRealHeight(450), - Height = Application.GetRealHeight(933), - Width = Application.GetRealWidth(modeItem_Width), - UnSelectedImagePath = "AC/SelectedModeBG.png" - }; - closeBGview.AddChidren(changeModeBG); - - var changeModeFL = new VerticalScrolViewLayout() - { - X = Application.GetRealWidth(230), - Y = Application.GetRealHeight(450), - Height = Application.GetRealHeight(900), - Width = Application.GetRealWidth(modeItem_Width), - ScrollEnabled = false, - VerticalScrollBarEnabled = false - }; - closeBGview.AddChidren(changeModeFL); - - var changeModeBtn = new Button() - { - X = Application.GetRealWidth(modeItem_X), - Width = Application.GetRealWidth(modeItem_Width - modeItem_X), - Height = Application.GetRealHeight(modeItem_Height), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextID = R.MyInternationalizationString.SelectMode, - TextAlignment = TextAlignment.CenterLeft, - TextSize = 14, - IsBold = true - }; - changeModeFL.AddChidren(changeModeBtn); - - var mode_Auto = new LeftIconButtonRow(); - mode_Auto.Tag = ZigBee.Device.AC.AcMode.Auto; - mode_Auto.Init("AC/Mode_Auto.png", "AC/Mode_AutoSelected.png", Language.StringByID(R.MyInternationalizationString.Mode_Auto)); - mode_Auto.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCTextBlackColor); - if (ac.listSupportMode[4] == 1) - { - changeModeFL.AddChidren(mode_Auto); - } - - var mode_Cool = new LeftIconButtonRow(); - mode_Cool.Tag = ZigBee.Device.AC.AcMode.Cool; - mode_Cool.Init("AC/Mode_Cool.png", "AC/Mode_CoolSelected.png", Language.StringByID(R.MyInternationalizationString.Mode_Cool)); - mode_Cool.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor_Cool); - if (ac.listSupportMode[0] == 1) - { - changeModeFL.AddChidren(mode_Cool); - } - - var mode_Heat = new LeftIconButtonRow(); - mode_Heat.Tag = ZigBee.Device.AC.AcMode.Heat; - mode_Heat.Init("AC/Mode_Heat.png", "AC/Mode_HeatSelected.png", Language.StringByID(R.MyInternationalizationString.Mode_Heat)); - mode_Heat.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor_Heat); - if (ac.listSupportMode[1] == 1) - { - changeModeFL.AddChidren(mode_Heat); - } - - var mode_Dry = new LeftIconButtonRow(); - mode_Dry.Tag = ZigBee.Device.AC.AcMode.Dry; - mode_Dry.Init("AC/Mode_Dry.png", "AC/Mode_DrySelected.png", Language.StringByID(R.MyInternationalizationString.Mode_Dry)); - mode_Dry.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor_Dry); - if (ac.listSupportMode[3] == 1) - { - changeModeFL.AddChidren(mode_Dry); - } - - var mode_Fan = new LeftIconButtonRow(); - mode_Fan.Tag = ZigBee.Device.AC.AcMode.FanOnly; - mode_Fan.Init("AC/Mode_Fan.png", "AC/Mode_FanSelected.png", Language.StringByID(R.MyInternationalizationString.Mode_FanOnly), false); - mode_Fan.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor_Fan); - if (ac.listSupportMode[2] == 1) - { - changeModeFL.AddChidren(mode_Fan); - } - - - mode_Auto.ButtonClickEvent += ChangeMode_MouseUpEvent; - mode_Cool.ButtonClickEvent += ChangeMode_MouseUpEvent; - mode_Heat.ButtonClickEvent += ChangeMode_MouseUpEvent; - mode_Dry.ButtonClickEvent += ChangeMode_MouseUpEvent; - mode_Fan.ButtonClickEvent += ChangeMode_MouseUpEvent; - - if (ACControlBase.IsOpen(ac)) - { - if (ac.currentSystemMode == 1) - { - mode_Auto.IsSelected = true; - } - else if (ac.currentSystemMode == 3) - { - mode_Cool.IsSelected = true; - } - else if (ac.currentSystemMode == 4) - { - mode_Heat.IsSelected = true; - } - else if (ac.currentSystemMode == 8) - { - mode_Dry.IsSelected = true; - } - else if (ac.currentSystemMode == 7) - { - mode_Fan.IsSelected = true; - } - } - } - - /// <summary> - /// 鍒囨崲妯″紡 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void ChangeMode_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - var tag = (sender as LeftIconButtonRow).Tag.ToString(); - ZigBee.Device.AC.AcMode mode = ZigBee.Device.AC.AcMode.Cool; - - if (tag == "Auto") - { - mode = ZigBee.Device.AC.AcMode.Auto; - } - else if (tag == "Cool") - { - mode = ZigBee.Device.AC.AcMode.Cool; - } - else if (tag == "Heat") - { - mode = ZigBee.Device.AC.AcMode.Heat; - } - else if (tag == "Dry") - { - mode = ZigBee.Device.AC.AcMode.Dry; - } - else if (tag == "FanOnly") - { - mode = ZigBee.Device.AC.AcMode.FanOnly; - } - - ChangeMode(mode); - } - - /// <summary> - /// 鍒囨崲妯″紡 - /// </summary> - /// <param name="acMode">Ac mode.</param> - private void ChangeMode(ZigBee.Device.AC.AcMode acMode) - { - acModeDialog.Close(); - if (ACControlBase.IsOpen(ac) == false) - { - ACControlBase.ShowACIsCloseTip(); - return; - } - - modeBtn.SelectedImagePath = ACControlBase.GetModeSelectedImagePathByMode(acMode); - modeBtn.UnSelectedImagePath = ACControlBase.GetModeUnSelectedImagePathByMode(acMode); - modeBtn.IsSelected = true; - currentModeBtn.Text = ACControlBase.GetModeNameByMode(acMode); - ac.currentSystemMode = (int)acMode; - mArcScaleSeekBar.Progress = ACControlBase.GetCurrentModeTemperature(ac); - ac.SetSystemModeAsync(acMode); - } - - /// <summary> - /// 鏄惁閰嶇疆浜嗘ā寮� - /// </summary> - /// <returns></returns> - private bool HadSupportModel() - { - bool hadMode = false; - foreach (var m in ac.listSupportMode) - { - if (m == 1) - { - hadMode = true; - break; - } - } - return hadMode; - } - - #endregion - - #region 鈼� 鍒囨崲鎵______________________ - - - /// <summary> - /// 鍒囨崲鎵 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void ShowChangeFanSwing_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - int fanItem_X = 80; - int fanItem_Height = 150; - int fanItem_Width = 449; - - fanModeDialog = new Dialog(); - fanModeDialog.Show(); - var closeBGview = new FrameLayout(); - fanModeDialog.AddChidren(closeBGview); - closeBGview.MouseUpEventHandler += (send1, e1) => - { - fanModeDialog.Close(); - }; - - var changeFanModeBG = new Button() - { - X = Application.GetRealWidth(35), - Y = Application.GetRealHeight(297), - Height = Application.GetRealHeight(1089), - Width = Application.GetRealWidth(fanItem_Width), - UnSelectedImagePath = "AC/SwingBackground.png" - }; - closeBGview.AddChidren(changeFanModeBG); - - var changeFanModeFL = new VerticalScrolViewLayout() - { - X = Application.GetRealWidth(35), - Y = Application.GetRealHeight(297), - Height = Application.GetRealHeight(1050), - Width = Application.GetRealWidth(fanItem_Width), - VerticalScrollBarEnabled = false, - ScrollEnabled = false - }; - closeBGview.AddChidren(changeFanModeFL); - - var changeFanBtn = new Button() - { - X = Application.GetRealWidth(fanItem_X), - Width = Application.GetRealWidth(fanItem_Width - fanItem_X), - Height = Application.GetRealHeight(fanItem_Height), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextID = R.MyInternationalizationString.SelectSwing, - TextAlignment = TextAlignment.CenterLeft, - TextSize = 14, - IsBold = true - }; - changeFanModeFL.AddChidren(changeFanBtn); - - var swing_First = new LeftIconButtonRow { }; - swing_First.Tag = ZigBee.Device.AC.FanSwingMode.First; - swing_First.Init("AC/Swing_1.png", "AC/Swing_1Selected.png", Language.StringByID(R.MyInternationalizationString.Swing_First)); - swing_First.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor2); - changeFanModeFL.AddChidren(swing_First); - - var swing_Second = new LeftIconButtonRow(); - swing_Second.Tag = ZigBee.Device.AC.FanSwingMode.Second; - swing_Second.Init("AC/Swing_2.png", "AC/Swing_2Selected.png", Language.StringByID(R.MyInternationalizationString.Swing_Second)); - swing_Second.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor2); - changeFanModeFL.AddChidren(swing_Second); - - var swing_Thrid = new LeftIconButtonRow(); - swing_Thrid.Tag = ZigBee.Device.AC.FanSwingMode.Thrid; - swing_Thrid.Init("AC/Swing_3.png", "AC/Swing_3Selected.png", Language.StringByID(R.MyInternationalizationString.Swing_Thrid)); - swing_Thrid.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor2); - changeFanModeFL.AddChidren(swing_Thrid); - - var swing_Fourth = new LeftIconButtonRow(); - swing_Fourth.Tag = ZigBee.Device.AC.FanSwingMode.Fourth; - swing_Fourth.Init("AC/Swing_4.png", "AC/Swing_4Selected.png", Language.StringByID(R.MyInternationalizationString.Swing_Fourth)); - swing_Fourth.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor2); - changeFanModeFL.AddChidren(swing_Fourth); - - var swing_Fifth = new LeftIconButtonRow(); - swing_Fifth.Tag = ZigBee.Device.AC.FanSwingMode.Fifth; - swing_Fifth.Init("AC/Swing_5.png", "AC/Swing_5Selected.png", Language.StringByID(R.MyInternationalizationString.Swing_Fifth)); - swing_Fifth.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor2); - changeFanModeFL.AddChidren(swing_Fifth); - - var swing_Auto = new LeftIconButtonRow(); - swing_Auto.Tag = ZigBee.Device.AC.FanSwingMode.Auto; - swing_Auto.Init("AC/Swing_Auto.png", "AC/Swing_AutoSelected.png", Language.StringByID(R.MyInternationalizationString.Swing_Auto), false); - swing_Auto.SetTitleColor(ZigbeeColor.Current.GXCTextGrayColor, ZigbeeColor.Current.GXCACSelectedTextColor2); - changeFanModeFL.AddChidren(swing_Auto); - - swing_First.ButtonClickEvent += ChangeFanSwing_MouseUpEvent; - swing_Second.ButtonClickEvent += ChangeFanSwing_MouseUpEvent; - swing_Thrid.ButtonClickEvent += ChangeFanSwing_MouseUpEvent; - swing_Fourth.ButtonClickEvent += ChangeFanSwing_MouseUpEvent; - swing_Fifth.ButtonClickEvent += ChangeFanSwing_MouseUpEvent; - swing_Auto.ButtonClickEvent += ChangeFanSwing_MouseUpEvent; - - if (ACControlBase.IsOpen(ac)) - { - if (ac.currentFanSwingMode == 0) - { - swing_First.IsSelected = true; - } - else if (ac.currentFanSwingMode == 1) - { - swing_Second.IsSelected = true; - } - else if (ac.currentFanSwingMode == 2) - { - swing_Thrid.IsSelected = true; - } - else if (ac.currentFanSwingMode == 3) - { - swing_Fourth.IsSelected = true; - } - else if (ac.currentFanSwingMode == 4) - { - swing_Fifth.IsSelected = true; - } - else if (ac.currentFanSwingMode == 7) - { - swing_Auto.IsSelected = true; - } - } - } - - /// <summary> - /// 鍒囨崲鎵 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void ChangeFanSwing_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - var tag = (sender as LeftIconButtonRow).Tag.ToString(); - ZigBee.Device.AC.FanSwingMode mode = ZigBee.Device.AC.FanSwingMode.Auto; - if (tag == "First") - { - mode = ZigBee.Device.AC.FanSwingMode.First; - } - else if (tag == "Second") - { - mode = ZigBee.Device.AC.FanSwingMode.Second; - } - else if (tag == "Thrid") - { - mode = ZigBee.Device.AC.FanSwingMode.Thrid; - } - else if(tag=="Fourth") - { - mode = ZigBee.Device.AC.FanSwingMode.Fourth; - } - else if (tag == "Fifth") - { - mode = ZigBee.Device.AC.FanSwingMode.Fifth; - } - - ChangeFanSwing(mode); - } - - /// <summary> - /// 鍒囨崲鎵 - /// </summary> - /// <param name="fanSwingMode">Fan mode.</param> - private void ChangeFanSwing(ZigBee.Device.AC.FanSwingMode fanSwingMode) - { - fanModeDialog.Close(); - if (ACControlBase.IsOpen(ac) == false) - { - ACControlBase.ShowACIsCloseTip(); - return; - } - FanSwingModeBtn.IsSelected = true; - FanSwingModeBtn.SelectedImagePath = ACControlBase.GetFanSwingModeSelectedImagePathByFanSwingMode(fanSwingMode); - FanSwingModeBtn.UnSelectedImagePath = ACControlBase.GetFanSwingModeUnSelectedImagePathByFanSwingMode(fanSwingMode); - ac.currentFanSwingMode = (int)fanSwingMode; - - ac.SetFanSwingAsyncMode(fanSwingMode); - } - - - #endregion - - #region 鈼� 鍗囨俯__________________________ - /// <summary> - /// 鍗囨俯 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void Add_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - if (ACControlBase.IsOpen(ac) == false) - { - ACControlBase.ShowACIsCloseTip(); - return; - } - if (ac.currentSystemMode == 3 || ac.currentSystemMode == 8) - { - if (ac.currentCoolingSetpoint >= ACControlBase.Temperature_High) - { - return; - } - ac.currentCoolingSetpoint += 1; - ac.SetCoolingTemperatureAsync(ac.currentCoolingSetpoint * 100); - mArcScaleSeekBar.Progress = ac.currentCoolingSetpoint; - } - else if (ac.currentSystemMode == 4) - { - if (ac.currentHeatingSetpoint >= ACControlBase.Temperature_High) - { - return; - } - ac.currentHeatingSetpoint += 1; - ac.SetHeatingTemperatureAsync(ac.currentHeatingSetpoint * 100); - mArcScaleSeekBar.Progress = ac.currentHeatingSetpoint; - } - else if (ac.currentSystemMode == 1) - { - if (ac.currentAutoSetpoint >= ACControlBase.Temperature_High) - { - return; - } - ac.currentAutoSetpoint += 1; - ac.SetAutoTemperatureAsync(ac.currentAutoSetpoint * 100); - mArcScaleSeekBar.Progress = ac.currentAutoSetpoint; - } - } - - #endregion - - #region 鈼� 闄嶆俯__________________________ - - /// <summary> - /// 闄嶆俯 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void Reduce_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) - { - if (ACControlBase.IsOpen(ac) == false) - { - ACControlBase.ShowACIsCloseTip(); - return; - } - if (ac.currentSystemMode == 3 || ac.currentSystemMode == 8) - { - if (ac.currentCoolingSetpoint <= ACControlBase.Temperature_Low) - { - return; - } - ac.currentCoolingSetpoint -= 1; - ac.SetCoolingTemperatureAsync(ac.currentCoolingSetpoint * 100); - mArcScaleSeekBar.Progress = ac.currentCoolingSetpoint; - } - else if (ac.currentSystemMode == 4) - { - if (ac.currentHeatingSetpoint <= ACControlBase.Temperature_Low) - { - return; - } - ac.currentHeatingSetpoint -= 1; - ac.SetHeatingTemperatureAsync(ac.currentHeatingSetpoint * 100); - mArcScaleSeekBar.Progress = ac.currentHeatingSetpoint; - } - else if (ac.currentSystemMode == 1) - { - if (ac.currentAutoSetpoint <= ACControlBase.Temperature_Low) - { - return; - } - ac.currentAutoSetpoint -= 1; - ac.SetAutoTemperatureAsync(ac.currentAutoSetpoint * 100); - mArcScaleSeekBar.Progress = ac.currentAutoSetpoint; - } - } - - #endregion - - #region 鈼� 鎺у埗鍙嶉_________________________ - - /// <summary> - /// 鏄剧ず璁惧鎺у埗鐘舵�� - /// </summary> - /// <param name="command">Command.</param> - /// <param name="objValue">Object value.</param> - private void UpdateDeviceControllStatu(string command, object objValue) - { - if (command != "DeviceDefaultAck" || objValue == null) - { - return; - } - var tempDevice = (CommonDevice)objValue; - if (tempDevice.DeviceEpoint != this.device.DeviceEpoint || tempDevice.DeviceAddr != this.device.DeviceAddr) - { - //涓嶆槸褰撳墠璁惧鐨勬帹閫侊紝鍒欎笉澶勭悊 - return; - } - //鏍囪宸茬粡鍙戦�佹帶鍒跺懡浠ゅ埌缃戝叧 - sendedControlCommand = true; - //鎴愬姛涓嶆彁绀� - //DeviceUI.ShowStatuTip(R.MyInternationalizationString.Success); - } - - /// <summary> - /// 绉婚櫎鏇存柊鎺у埗璁惧鐨刟ction - /// </summary> - private void RemoveUpdateControlDeviceStatuAction() - { - if (zbGateway != null) - { - zbGateway.ReportAction -= UpdateDeviceControllStatu; - } - } - - #endregion - - #region 鈼� 鏇村璁剧疆________________________ - - /// <summary> - /// 鏇村璁剧疆 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void More(object sender, MouseEventArgs e) - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(device, room); - detailInfo.EditAction += (curDev, curRoom) => - { - Show(curDev, curRoom); - }; - } - - #endregion - - #region 鈼� 鏀惰棌鍒颁富椤礯______________________ - - /// <summary> - /// 鏀惰棌鍒颁富椤� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void Collection(object sender, MouseEventArgs e) - { - if (collectionBtn.IsSelected) - { - UserCenter.HdlRoomLogic.Current.DeleteLoveDevice(device); - collectionBtn.IsSelected = false; - } - else - { - UserCenter.HdlRoomLogic.Current.AddLoveDevice(device); - collectionBtn.IsSelected = true; - } - } - - #endregion - - #region 鈼� 鍥炲埌涓婚〉________________________ - - /// <summary> - /// 鍥炲埌涓婚〉 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void BackToRoomHandler(object sender, MouseEventArgs mouseEventArgs) - { - //backToRoom - } - - #endregion - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Category/Category.cs b/ZigbeeApp/Shared/Phone/Device/Category/Category.cs deleted file mode 100755 index 252f21c..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Category/Category.cs +++ /dev/null @@ -1,2907 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.UserView; -using Shared.R; -using ZigBee.Device; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.AC; -using Shared.Phone.UserCenter.DoorLock; -using Shared.Phone.Device.DeviceLogic; -using Shared.Phone.UserCenter; - -namespace Shared.Phone.Device.Category -{ - /// <summary> - /// Category. - /// </summary> - public class Category : FrameLayout, ZigBee.Common.IStatus - { - - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// The instance. - /// </summary> - public static Category instance; - /// <summary> - /// low_High - /// </summary> - private const int low_High = 127; - /// <summary> - /// 鍔熻兘 - /// </summary> - private ButtonLineForm functionBtn; - /// <summary> - /// 鍦烘櫙 - /// </summary> - private ButtonLineForm sceneBtn; - /// <summary> - /// 鑷姩鍖� - /// </summary> - private ButtonLineForm automationBtn; - /// <summary> - /// 鍦烘櫙鍔熻兘涓儴鑳屾櫙bodyView - /// </summary> - public FrameLayout functionSceneBodyView; - /// <summary> - /// 涓儴鑳屾櫙bodyView - /// </summary> - public FrameLayout functionSceneAutoBodyView; - /// <summary> - /// 鐩稿悓鐨勮澶囧垪琛� - /// </summary> - public VerticalScrolViewLayout deviceListScrolView; - /// <summary> - /// 璁惧鏄惁鍦ㄧ嚎鏍囪瘑--Online - /// </summary> - private readonly string deviceStatus_Online = "Online"; - /// <summary> - /// 璁惧鐘舵�佸紑鍏虫爣璇�--Switch - /// </summary> - private readonly string deviceStatus_OnOffStatus = "Switch"; - /// <summary> - /// 鍙充笂瑙掓坊鍔犳寜閽� - /// </summary> - private Device.CommonForm.SelectedStatuButton addBtn; - /// <summary> - /// 缃戝叧 - /// </summary> - private ZbGateway zbGateway = null; - /// <summary> - /// 缃戝叧鍒楄〃 - /// </summary> - private List<ZbGateway> zbGatewayList = new List<ZbGateway> { }; - /// <summary> - /// 璁惧鍒楄〃 - /// </summary> - private List<CommonDevice> commonDeviceList = new List<CommonDevice> { }; - /// <summary> - /// 鏄惁鍙戦�佹帶鍒跺懡浠ゆ垚鍔熶簡 - /// </summary> - private bool sendedControlCommand = false; - /// <summary> - /// 褰撳墠鍔熻兘绫诲瀷鎸夐挳 - /// </summary> - private FunctionButton tempFunctionTypeBtn; - /// <summary> - /// 鍔熻兘绫诲瀷鎸夐挳 - /// </summary> - //private FunctionButton functionTypeIMG; - /// <summary> - /// 鍔熻兘绫诲瀷 - /// </summary> - private HorizontalScrolViewLayout functionTypeScrowView; - /// <summary> - /// 璁惧绫诲瀷RowLayout - /// </summary> - //private FrameLayout typeRowLayout; - /// <summary> - /// 妤煎眰 - /// </summary> - private Button floorBtn; - /// <summary> - /// 閫夋嫨妤煎眰 - /// </summary> - private Button selectFloorBtn; - - /// <summary> - /// 鐩稿悓绫诲瀷鐨勮澶囧垪琛� - /// </summary> - private Dictionary<int, List<CommonDevice>> typeDeviceDic; - /// <summary> - /// 璁惧绫诲瀷鐨勫浘id - /// </summary> - private Dictionary<int, DeviceConcreteType> typeIdDic; - /// <summary> - /// dList - /// </summary> - private List<CommonDevice> devList; - /// <summary> - /// sceneList - /// </summary> - private List<SceneUI> sceneList; - #endregion - - #region 鈼� 鎺ュ彛____________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - //璁惧涓婃姤鐘舵�佷腑 褰揅luterID=3,灏辫瘉鏄庤璁惧鍦ㄧ嚎锛岀洿鎺ユ爣璁� - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - if (common.DeviceStatusReport.AttriBute == null || common.DeviceStatusReport.AttriBute.Count == 0) - { - return; - } - for (int i = 0; deviceListScrolView != null && i < deviceListScrolView.ChildrenCount; i++) - { - var rowLayout = deviceListScrolView.GetChildren(i) as RowLayout; - var deviceUI = LocalDevice.Current.GetDevice(rowLayout.Tag.ToString()); - if (deviceUI == null) - { - continue; - } - if (deviceUI.DeviceAddr != common.DeviceAddr || deviceUI.DeviceEpoint != common.DeviceEpoint) - { - continue; - } - switch (deviceUI.Type) - { - case DeviceType.OnOffOutput: - //寮�鍏冲姛鑳� - if (common.DeviceStatusReport.CluterID == 6) - { - var light = deviceUI as ToggleLight; - light.DeviceStatusReport = common.DeviceStatusReport; - light.OnOffStatus = light.DeviceStatusReport.AttriBute[0].AttriButeData; - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.IsSelected = light.OnOffStatus == 1; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - light.LastDateTime = DateTime.Now; - } - if (common.DeviceStatusReport.CluterID == 3) - { - deviceUI.IsOnline = 1; - deviceUI.LastDateTime = DateTime.Now; - } - break; - - case DeviceType.AirSwitch: - //寮�鍏冲姛鑳� - if (common.DeviceStatusReport.CluterID == 6) - { - var airSwitch = deviceUI as ZigBee.Device.AirSwitch; - airSwitch.DeviceStatusReport = common.DeviceStatusReport; - airSwitch.OnOffStatus = airSwitch.DeviceStatusReport.AttriBute[0].AttriButeData; - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.IsSelected = airSwitch.OnOffStatus == 1; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - airSwitch.LastDateTime = DateTime.Now; - } - if (common.DeviceStatusReport.CluterID == 3) - { - deviceUI.IsOnline = 1; - deviceUI.LastDateTime = DateTime.Now; - } - break; - case DeviceType.WindowCoveringDevice: - - if (common.DeviceStatusReport.CluterID == 258) - { - if (common.DeviceStatusReport.AttriBute[0].AttributeId == 0) - { - //绐楀笜绫诲瀷 - var rollerShade = deviceUI as Rollershade; - rollerShade.DeviceStatusReport = common.DeviceStatusReport; - rollerShade.WcdType = common.DeviceStatusReport.AttriBute[0].AttriButeData; - rollerShade.LastDateTime = DateTime.Now; - } - if (common.DeviceStatusReport.AttriBute[0].AttributeId == 8) - { - var row = rowLayout.GetChildren(0) as CategoryFunctionForWinRow; - //绐楀笜鐧惧垎姣� - var rollerShade = deviceUI as Rollershade; - rollerShade.DeviceStatusReport = common.DeviceStatusReport; - rollerShade.WcdCurrentPositionLiftPercentage = common.DeviceStatusReport.AttriBute[0].AttriButeData; - row.SetStatuText($"{Language.StringByID(R.MyInternationalizationString.Current)} { HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)}"); - row.IsSelected = rollerShade.WcdCurrentPositionLiftPercentage != 0; - rollerShade.LastDateTime = DateTime.Now; - } - } - if (common.DeviceStatusReport.CluterID == 3) - { - deviceUI.IsOnline = 1; - deviceUI.LastDateTime = DateTime.Now; - } - break; - - case DeviceType.Thermostat: - //AC鍔熻兘 - if (common.DeviceStatusReport.CluterID == 513) - { - var attriButeList = common.DeviceStatusReport.AttriBute; - var ac = deviceUI as ZigBee.Device.AC; - ac.DeviceStatusReport = common.DeviceStatusReport; - foreach (var attList in attriButeList) - { - var curTemp = (attList.AttriButeData / 100 < ACControlBase.Temperature_High && attList.AttriButeData / 100 > ACControlBase.Temperature_Low) ? attList.AttriButeData / 100 : ACControlBase.Temperature_Default; - switch (attList.AttributeId) - { - case 0: - ac.currentLocalTemperature = curTemp; - ac.LastDateTime = DateTime.Now; - break; - case 17: - ac.currentCoolingSetpoint = curTemp; - ac.LastDateTime = DateTime.Now; - break; - case 18: - ac.currentHeatingSetpoint = curTemp; - ac.LastDateTime = DateTime.Now; - break; - case 4096: - ac.currentAutoSetpoint = curTemp; - ac.LastDateTime = DateTime.Now; - break; - case 28: - ac.currentSystemMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - break; - case 4097: - //杩囪檻缃戞竻娲楁爣蹇�:42 - ac.CleanStatu = attList.AttriButeData == 42; - break; - } - } - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.IsSelected = ac.currentSystemMode != 0; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - } - - if (common.DeviceStatusReport.CluterID == 514) - { - var ac = deviceUI as ZigBee.Device.AC; - var attriButeList = common.DeviceStatusReport.AttriBute; - ac.DeviceStatusReport = common.DeviceStatusReport; - foreach (var attList in attriButeList) - { - switch (attList.AttributeId) - { - case 0: - ac.currentFanMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - break; - case 4096: - ac.currentFanSwingMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - break; - } - } - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.IsSelected = ac.currentSystemMode != 0; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - } - - if (common.DeviceStatusReport.CluterID == 3) - { - var ac = deviceUI as ZigBee.Device.AC; - ac.IsOnline = 1; - ac.LastDateTime = DateTime.Now; - } - break; - case DeviceType.DimmableLight: - //璋冨厜鐏姛鑳� - if (common.DeviceStatusReport.CluterID == 6) - { - var dimmableLight = deviceUI as DimmableLight; - dimmableLight.DeviceStatusReport = common.DeviceStatusReport; - dimmableLight.OnOffStatus = dimmableLight.DeviceStatusReport.AttriBute[0].AttriButeData; - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.IsSelected = dimmableLight.OnOffStatus == 1; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - dimmableLight.LastDateTime = DateTime.Now; - } - if (common.DeviceStatusReport.CluterID == 8) - { - var dimmableLight = deviceUI as DimmableLight; - dimmableLight.DeviceStatusReport = common.DeviceStatusReport; - dimmableLight.Level = dimmableLight.DeviceStatusReport.AttriBute[0].AttriButeData; - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.IsSelected = dimmableLight.OnOffStatus == 1; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - dimmableLight.LastDateTime = DateTime.Now; - } - if (common.DeviceStatusReport.CluterID == 3) - { - deviceUI.IsOnline = 1; - deviceUI.LastDateTime = DateTime.Now; - } - break; - - case DeviceType.TemperatureSensor: - //娓╁害 - if (common.DeviceStatusReport.CluterID == 1026) - { - var tempera = deviceUI as TemperatureSensor; - foreach (var data in common.DeviceStatusReport.AttriBute) - { - if (data.AttributeId == (int)ZigBee.Device.AttriButeId.MeasuredValue) - { - if (data.AttriButeData == 0) - { - tempera.Temperatrue = 0; - } - else if (data.AttriButeData > 32767) - { - //璐熸暟(鐗规畩澶勭悊) - string strValue = (data.AttriButeData - 65536).ToString(); - //灏忔暟鐐归渶瑕佷竴浣� - strValue = strValue.Substring(0, strValue.Length - 1); - tempera.Temperatrue = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - } - else - { - //灏忔暟鐐归渶瑕佷竴浣� - string strValue = data.AttriButeData.ToString(); - strValue = strValue.Substring(0, strValue.Length - 1); - tempera.Temperatrue = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - } - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - } - } - } - //婀垮害 - if (common.DeviceStatusReport.CluterID == 1029) - { - var tempera = deviceUI as TemperatureSensor; - foreach (var data in common.DeviceStatusReport.AttriBute) - { - if (data.AttributeId == (int)ZigBee.Device.AttriButeId.MeasuredValue) - { - if (data.AttriButeData == 0) - { - tempera.Humidity = 0; - } - else - { - //灏忔暟鐐归渶瑕佷竴浣�(婀垮害娌℃湁璐熸暟) - string strValue = data.AttriButeData.ToString(); - strValue = strValue.Substring(0, strValue.Length - 1); - tempera.Humidity = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - tempera.LastDateTime = DateTime.Now; - } - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - } - } - } - break; - } - } - } - catch (Exception ex) - { - System.Console.WriteLine($"鍒嗙被璁惧鐘舵��-Error:{ex.Message}"); - } - }); - } - else if (typeTag == "OnlineStatusChange") - { - Application.RunOnMainThread(() => - { - try - { - for (int i = 0; deviceListScrolView != null && i < deviceListScrolView.ChildrenCount; i++) - { - var rowLayout = deviceListScrolView.GetChildren(i) as RowLayout; - var deviceUI = LocalDevice.Current.GetDevice(rowLayout.Tag.ToString()); - if (deviceUI == null) - { - continue; - } - if (deviceUI.DeviceAddr != common.DeviceAddr || deviceUI.DeviceEpoint != common.DeviceEpoint) - { - continue; - } - switch (deviceUI.Type) - { - case DeviceType.OnOffOutput: - deviceUI.IsOnline = common.IsOnline; - deviceUI.LastDateTime = DateTime.Now; - break; - - case DeviceType.AirSwitch: - deviceUI.IsOnline = common.IsOnline; - deviceUI.LastDateTime = DateTime.Now; - break; - - case DeviceType.WindowCoveringDevice: - deviceUI.LastDateTime = DateTime.Now; - deviceUI.IsOnline = common.IsOnline; - break; - - case DeviceType.DimmableLight: - deviceUI.LastDateTime = DateTime.Now; - deviceUI.IsOnline = common.IsOnline; - break; - - case DeviceType.Thermostat: - deviceUI.LastDateTime = DateTime.Now; - deviceUI.IsOnline = common.IsOnline; - break; - } - } - } - catch (Exception ex) - { - System.Console.WriteLine($"鍒嗙被璁惧鐘舵��-Error:{ex.Message}"); - } - }); - } - else if (typeTag == "IASInfoReport") - { - Application.RunOnMainThread(() => - { - try - { - for (int i = 0; deviceListScrolView != null && i < deviceListScrolView.ChildrenCount; i++) - { - var rowLayout = deviceListScrolView.GetChildren(i) as RowLayout; - var deviceUI = LocalDevice.Current.GetDevice(rowLayout.Tag.ToString()); - if (deviceUI == null) - { - continue; - } - if (deviceUI.DeviceAddr != common.DeviceAddr || deviceUI.DeviceEpoint != common.DeviceEpoint) - { - continue; - } - switch (deviceUI.Type) - { - case DeviceType.IASZone: - //寮�鍏冲姛鑳� - var ias = common as IASZone; - var iAS = deviceUI as ZigBee.Device.IASZone; - iAS.iASInfo = ias.iASInfo; - var row = rowLayout.GetChildren(0) as CategoryFunctionRow; - row.IsSelected = iAS.iASInfo?.Alarm1 == 1; - row.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - iAS.LastDateTime = DateTime.Now; - break; - } - } - } - catch (Exception ex) - { - System.Console.WriteLine($"鍒嗙被璁惧鐘舵��-Error:{ex.Message}"); - } - }); - } - } - #endregion - - #region 鈼� 鍒濆鍖朹_________________________ - /// <summary> - /// Removes from parent. - /// </summary> - public override void RemoveFromParent() - { - ZbGateway.StatusList.Remove(this); - RemoveAllUpdateControlDeviceStatuAction(); - base.RemoveFromParent(); - } - - /// <summary> - /// 鏋勯�犳柟娉� - /// </summary> - public Category() - { - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor; - instance = this; - ZbGateway.StatusList.Add(this); - } - - /// <summary> - /// 鏄剧ず鐣岄潰--榛樿鍦烘櫙鐣岄潰 - /// </summary> - /// <param name="selectedBtn">閫変腑閭d釜鐣岄潰 0--鍔熻兘 1--鍦烘櫙 2--鑷姩鍖� </param> - public void Show(int selectedBtn = 1) - { - InitData(); - - RemoveAll(); - - #region topview - var topView = new FrameLayout() - { - Y = Application.GetRealHeight(104), - Height = Application.GetRealHeight(low_High), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - this.AddChidren(topView); - - var title = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(95), - Width = Application.GetRealWidth(CommonFormResouce.TopTitle_Width), - Gravity = Gravity.CenterVertical, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Category, - TextSize = 24, - TextColor = ZigbeeColor.Current.GXCTextDeepBlackColor, - IsBold = true - }; - topView.AddChidren(title); - - addBtn = new SelectedStatuButton() - { - X = Application.GetRealWidth(953), - Width = Application.GetMinRealAverage(104), - Height = Application.GetMinRealAverage(104), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/Add_Category.png", - SelectedImagePath = "Item/Add_Category.png" - }; - topView.AddChidren(addBtn); - #endregion - - #region midFL - var midFL = new FrameLayout - { - Y = topView.Bottom, - Height = Application.GetRealHeight(1549), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - AddChidren(midFL); - - var functionSceneAutoBG = new FrameLayout() - { - Height = Application.GetRealHeight(low_High), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - midFL.AddChidren(functionSceneAutoBG); - - //鍦烘櫙 - sceneBtn = new ButtonLineForm(CommonFormResouce.X_Left, 34); - functionSceneAutoBG.AddChidren(sceneBtn); - sceneBtn.Init(); - sceneBtn.SetTitle(R.MyInternationalizationString.Scence); - //鍔熻兘 - functionBtn = new ButtonLineForm(CommonFormResouce.X_Left + 150 + 20, 34); - functionSceneAutoBG.AddChidren(functionBtn); - functionBtn.Init(); - functionBtn.SetTitle(R.MyInternationalizationString.Function); - functionBtn.X = sceneBtn.Right; - //鑷姩鍖� - automationBtn = new ButtonLineForm(CommonFormResouce.X_Left + 150 * 2 + 20 + 50, 34); - automationBtn.Init(); - automationBtn.SetTitle(R.MyInternationalizationString.Automation); - automationBtn.X = functionBtn.Right; - //闅愯棌鑷姩鍖� - if (UserCenter.UserCenterResourse.UserInfo.AuthorityNo != 3) - { - functionSceneAutoBG.AddChidren(automationBtn); - } - - floorBtn = new Button() - { - X = Application.GetRealWidth(750), - Width = Application.GetRealWidth(200), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterVertical, - TextAlignment = TextAlignment.CenterRight, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 14, - IsBold = true - }; - - selectFloorBtn = new Button() - { - X = Application.GetRealWidth(950), - Width = Application.GetMinRealAverage(69), - Height = Application.GetMinRealAverage(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/Drop_Down.png" - }; - - if (Config.Instance.Home.FloorDics.Count > 0) - { - floorBtn.Text = Config.Instance.Home.GetCurrentFloorName; - functionSceneAutoBG.AddChidren(floorBtn); - functionSceneAutoBG.AddChidren(selectFloorBtn); - } - - functionSceneAutoBodyView = new FrameLayout - { - Y = functionSceneAutoBG.Bottom, - Height = Application.GetRealHeight(1423), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - midFL.AddChidren(functionSceneAutoBodyView); - - if (selectedBtn == 0) - { - addBtn.Visible = false; - functionBtn.IsSelected = true; - } - else if (selectedBtn == 1) - { - addBtn.Visible = true; - sceneBtn.IsSelected = true; - } - else if (selectedBtn == 2) - { - addBtn.Visible = true; - automationBtn.IsSelected = true; - } - RefreshBodyView(); - - #endregion - //缁戝畾鎸夐挳浜嬩欢 - BindEvent(); - - } - #endregion - - #region 鈼� 鍒囨崲/娣诲姞 鍔熻兘銆佸満鏅�佽嚜鍔ㄥ寲________ - - /// <summary> - /// 缁戝畾鎸夐挳鐨勪簨浠� - /// </summary> - private void BindEvent() - { - //閫夋嫨鍔熻兘鍒嗘爮 - functionBtn.NameBtn.MouseUpEventHandler += FunctionBtn_MouseUpEventHandler; - //閫夋嫨鍦烘櫙鍒嗘爮 - sceneBtn.NameBtn.MouseUpEventHandler += SceneBtn_MouseUpEventHandler; - //閫変腑鑷姩鍖� - automationBtn.NameBtn.MouseUpEventHandler += AutomationBtn_MouseUpEventHandler; - //鍙充笂瑙掓坊鍔犳寜閽� - addBtn.MouseUpEventHandler += AddBtn_MouseUpEventHandler; - - selectFloorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; - floorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; - - } - - /// <summary> - /// 閫夋嫨妤煎眰 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void SelectedFloor_MouseUpEventHandler(object sender, MouseEventArgs mouseEventArgs) - { - var floors = new SelectFloor(); - AddChidren(floors); - floors.Init(580, 330, Direction.Right); - floors.changeFloor = true; - floors.FloorAction += (floorId) => - { - floorBtn.Text = Config.Instance.Home.GetFloorNameById(floorId); - HdlRoomLogic.Current.CurrentRoom = HdlRoomLogic.Current.GetLoveRoom(); - RefreshBodyView(); - }; - } - - /// <summary> - /// 閫夋嫨鍔熻兘鍒嗘爮 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void FunctionBtn_MouseUpEventHandler(object sender, MouseEventArgs mouseEventArgs) - { - functionBtn.IsSelected = true; - sceneBtn.IsSelected = false; - automationBtn.IsSelected = false; - addBtn.Visible = false; - RefreshBodyView(); - } - - /// <summary> - /// 閫夋嫨鍦烘櫙鍒嗘爮 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void SceneBtn_MouseUpEventHandler(object sender, MouseEventArgs mouseEventArgs) - { - functionBtn.IsSelected = false; - sceneBtn.IsSelected = true; - automationBtn.IsSelected = false; - addBtn.Visible = true; - RefreshBodyView(); - } - - /// <summary> - /// 閫変腑鑷姩鍖� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void AutomationBtn_MouseUpEventHandler(object sender, MouseEventArgs mouseEventArgs) - { - Common.Logic.LogicDviceList.Clear(); - if (Common.Logic.LogicDviceList.Count == 0) - { - Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); - } - functionBtn.IsSelected = false; - sceneBtn.IsSelected = false; - automationBtn.IsSelected = true; - addBtn.Visible = true; - RefreshBodyView(); - } - - /// <summary> - /// 鍙充笂瑙掓坊鍔犳寜閽簨浠� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void AddBtn_MouseUpEventHandler(object sender, MouseEventArgs mouseEventArgs) - { - if (functionBtn.IsSelected) - { - //鍔熻兘 - } - else if (sceneBtn.IsSelected) - { - //娣诲姞鍦烘櫙 - Add_Scene(); - } - else if (automationBtn.IsSelected) - { - //娣诲姞鑷姩鍖� - Add_Automation(); - } - } - - /// <summary> - /// 娣诲姞鍦烘櫙 - /// </summary> - private void Add_Scene() - { - var scene = new CategoryAddScene(); - UserView.HomePage.Instance.AddChidren(scene); - UserView.HomePage.Instance.PageIndex += 1; - scene.Show(); - scene.AddAction = () => - { - ShowScene(); - }; - } - - /// <summary> - /// 娣诲姞鑷姩鍖� - /// </summary> - private void Add_Automation() - { - //new涓�涓柊閫昏緫瀵硅薄锛� - Common.Logic.CurrentLogic = new Common.Logic(); - Common.Logic.CurrentLogic.IsEnable = 1;//榛樿涓哄紑 - Common.Logic.CurrentLogic.LogicName = Language.StringByID(MyInternationalizationString.automation1); - var addLogicPage = new Shared.Phone.Device.Logic.AddLogicPage(); - UserView.HomePage.Instance.AddChidren(addLogicPage); - UserView.HomePage.Instance.PageIndex += 1; - addLogicPage.Show(); - } - /// <summary> - /// HidenFloor - /// </summary> - /// <param name="statu"></param> - private void HidenFloor(bool statu) - { - selectFloorBtn.Visible = !statu; - floorBtn.Visible = !statu; - } - - #endregion - - #region 鈼� 鍒锋柊____________________________ - /// <summary> - /// 鍒锋柊bodyView - /// </summary> - public void RefreshBodyView() - { - functionSceneAutoBodyView.RemoveAll(); - if (functionBtn.IsSelected) - { - HidenFloor(false); - ShowFunction(); - } - else if (sceneBtn.IsSelected) - { - HidenFloor(false); - ShowScene(); - } - else if (automationBtn.IsSelected) - { - HidenFloor(true); - ShowAutotion(); - } - } - - /// <summary> - /// InitData - /// </summary> - private void InitData() - { - typeDeviceDic = new Dictionary<int, List<CommonDevice>> { }; - typeIdDic = new Dictionary<int, DeviceConcreteType> { }; - } - - /// <summary> - /// RefreshData - /// </summary> - private void RefreshData(Common.Room room) - { - devList = HdlRoomLogic.Current.GetRoomListDevice(room); - sceneList = HdlSceneLogic.Current.GetRoomSceneList(room); - typeDeviceDic.Clear(); - typeIdDic.Clear(); - foreach (var device in devList) - { - var info = Common.LocalDevice.Current.GetDeviceBelongEnumInfo(device); - if (info.BeloneType == DeviceBeloneType.A骞叉帴鐐� || info.BeloneType == DeviceBeloneType.A涓户鍣�) - { - continue; - } - if (typeDeviceDic.ContainsKey(info.BeloneTextId) == false) - { - var sameDevList = new List<CommonDevice> { }; - sameDevList.Add(device); - typeDeviceDic[info.BeloneTextId] = sameDevList; - } - else - { - typeDeviceDic[info.BeloneTextId].Add(device); - } - typeIdDic[info.BeloneTextId] = info.ConcreteType; - } - } - - #endregion - - #region 鈼� 鍔熻兘____________________________ - /// <summary> - /// 鍔熻兘 - /// </summary> - public void ShowFunction() - { - AddRoomView(); - } - - /// <summary> - /// 鎻愮ず娌℃湁鍔熻兘 - /// </summary> - private void ShowNoFunctionTip() - { - var noFunction = new Button() - { - Y = Application.GetRealHeight(320), - Width = Application.GetMinRealAverage(757), - Height = Application.GetMinRealAverage(435), - UnSelectedImagePath = "Item/NoFunction.png", - Gravity = Gravity.CenterHorizontal - }; - functionSceneBodyView.AddChidren(noFunction); - - var noFunctionTip = new Button() - { - Y = noFunction.Bottom + Application.GetRealHeight(32), - Height = Application.GetRealHeight(200), - Width = Application.GetRealWidth(700), - Gravity = Gravity.CenterHorizontal, - Text = Language.StringByID(R.MyInternationalizationString.NoFunction).Replace("{\\r\\n}", "\r\n"), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, - TextAlignment = TextAlignment.Center, - IsMoreLines = true - }; - functionSceneBodyView.AddChidren(noFunctionTip); - } - - /// <summary> - /// RefreshFunction - /// </summary> - /// <param name="room"></param> - private void RefreshFunction(Common.Room room) - { - RefreshData(room); - //绉婚櫎鐩戝惉 - RemoveAllUpdateControlDeviceStatuAction(); - functionSceneBodyView.RemoveAll(); - - if (typeDeviceDic.Count == 0) - { - ShowNoFunctionTip(); - } - else - { - var functionTypeView1 = new FrameLayout - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(160), - Width = Application.GetRealWidth(1028), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - functionSceneBodyView.AddChidren(functionTypeView1); - functionTypeView1.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerTopLeft); - - var functionTypeView2 = new FrameLayout - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(150), - Height = Application.GetRealHeight(279 - 150), - Width = Application.GetRealWidth(1028), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - functionSceneBodyView.AddChidren(functionTypeView2); - functionTypeView2.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerBottomLeft); - - functionTypeScrowView = new HorizontalScrolViewLayout - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(279), - Width = Application.GetRealWidth(1028), - }; - functionSceneBodyView.AddChidren(functionTypeScrowView); - - deviceListScrolView = new VerticalScrolViewLayout - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(35 + 279), - Width = Application.GetRealWidth(1028), - Height = Application.GetRealHeight(942), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - functionSceneBodyView.AddChidren(deviceListScrolView); - deviceListScrolView.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); - - tempFunctionTypeBtn = new FunctionButton(); - tempFunctionTypeBtn.Init("", ""); - - foreach (var deviceType in typeIdDic) - { - var typeRowLayout = new FrameLayout() - { - Width = Application.GetRealWidth(220), - }; - functionTypeScrowView.AddChidren(typeRowLayout); - - var functionTypeIMG = new FunctionButton() - { - Tag = deviceType.Key - }; - string imgPath = string.Empty; - string imgSeletedPath = string.Empty; - Common.LocalDevice.Current.GetDeviceObjectIcon(deviceType.Value, ref imgPath, ref imgSeletedPath); - functionTypeIMG.Init(imgPath, imgSeletedPath); - functionTypeIMG.SetTitle(deviceType.Key); - typeRowLayout.AddChidren(functionTypeIMG); - - functionTypeIMG.ClickBtn.MouseUpEventHandler += ShowSameTypeFunction; - - if (functionTypeScrowView.ChildrenCount == 1) - { - ShowSameTypeFunction(functionTypeIMG.ImageBtn, null); - } - } - } - } - - /// <summary> - /// 鏄剧ず鐩稿悓绫诲瀷鐨勫姛鑳� - /// </summary> - /// <param name="typeSender">typeSender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void ShowSameTypeFunction(object typeSender, MouseEventArgs mouseEventArgs) - { - tempFunctionTypeBtn.IsSelected = false; - tempFunctionTypeBtn = (typeSender as Button).Parent as FunctionButton; - ((typeSender as Button).Parent as FunctionButton).IsSelected = true; - - deviceListScrolView.RemoveAll(); - - var sameTypeList = new List<CommonDevice> { }; - sameTypeList = typeDeviceDic[int.Parse((typeSender as Button).Tag.ToString())]; - - for (int i = 0; i < sameTypeList.Count; i++) - { - var deviceUI = sameTypeList[i]; - new System.Threading.Thread(() => - { - Application.RunOnMainThread(() => - { - try - { - var deviceTypeRowLayout = new RowLayout() - { - Height = Application.GetRealHeight(127 + 35), - LineColor = ZigbeeColor.Current.GXCClearColor, - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI), - SubViewWidth = Application.GetRealWidth(184) - }; - deviceListScrolView.AddChidren(deviceTypeRowLayout); - - if (deviceUI.Type == DeviceType.OnOffOutput) - { - //鐏� - var light = deviceUI as ToggleLight; - if (light.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (light.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(light, () => - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(deviceUI); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇鐘舵�� - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - light.LastDateTime).TotalSeconds) - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(deviceUI); - } - } - }) - { IsBackground = true }.Start(); - - var deviceRow = new CategoryFunctionRow(0, 35); - deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceRow.IsSelected = light.OnOffStatus == 1; - deviceTypeRowLayout.AddChidren(deviceRow); - - deviceRow.SwitchBtn.MouseUpEventHandler += (send2, e2) => - { - zbGateway = deviceUI.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, deviceUI); - (send2 as Button).IsSelected = !(send2 as Button).IsSelected; - deviceRow.IsSelected = (send2 as Button).IsSelected; - if ((send2 as Button).IsSelected) - { - light.SwitchControl(1); - } - else - { - light.SwitchControl(0); - } - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(deviceUI, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - }; - deviceRow.ClickBtn.MouseUpEventHandler += (send2, e2) => - { - var lightControl = new Phone.Device.Light.OnOffControl(); - UserView.HomePage.Instance.AddChidren(lightControl); - UserView.HomePage.Instance.PageIndex += 1; - lightControl.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - lightControl.action += (curDev, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - } - else if (deviceUI.Type == DeviceType.AirSwitch) - { - //绌烘皵寮�鍏� - var airSwitch = deviceUI as AirSwitch; - if (airSwitch.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (airSwitch.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(airSwitch, () => - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(deviceUI); - }); - } - else - { - if ((DateTime.Now - airSwitch.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(deviceUI); - } - } - }) - { IsBackground = true }.Start(); - - var deviceRow = new CategoryFunctionRow(0, 35); - deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.IsSelected = airSwitch.OnOffStatus == 1; - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceTypeRowLayout.AddChidren(deviceRow); - deviceRow.SwitchBtn.MouseUpEventHandler += (send2, e2) => - { - zbGateway = deviceUI.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, deviceUI); - (send2 as Button).IsSelected = !(send2 as Button).IsSelected; - deviceRow.IsSelected = (send2 as Button).IsSelected; - if ((send2 as Button).IsSelected) - { - airSwitch.SwitchControl(1); - } - else - { - airSwitch.SwitchControl(0); - } - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(deviceUI, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - }; - deviceRow.ClickBtn.MouseUpEventHandler += (send2, e2) => - { - - var lightControl = new Phone.Device.Light.AirSwitchControl(); - UserView.HomePage.Instance.AddChidren(lightControl); - UserView.HomePage.Instance.PageIndex += 1; - lightControl.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - lightControl.action += (curDev, curRoom) => - { - - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - - }; - }; - - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - } - else if (deviceUI.Type == DeviceType.DimmableLight) - { - //璋冨厜鐏� - var dimmableLight = deviceUI as ZigBee.Device.DimmableLight; - if (dimmableLight.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (dimmableLight.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(dimmableLight, () => - { - ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(deviceUI); - }); - } - else - { - if ((DateTime.Now - dimmableLight.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(deviceUI); - } - } - }) - { IsBackground = true }.Start(); - - var deviceRow = new CategoryFunctionRow(0, 35); - deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceRow.IsSelected = dimmableLight.OnOffStatus == 1; - deviceTypeRowLayout.AddChidren(deviceRow); - - deviceRow.SwitchBtn.MouseUpEventHandler += (send2, e2) => - { - zbGateway = deviceUI.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, deviceUI); - (send2 as Button).IsSelected = !(send2 as Button).IsSelected; - deviceRow.IsSelected = (send2 as Button).IsSelected; - if ((send2 as Button).IsSelected) - { - dimmableLight.SwitchControl(1); - } - else - { - dimmableLight.SwitchControl(0); - } - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(deviceUI, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - }; - - deviceRow.ClickBtn.MouseUpEventHandler += (send2, e2) => - { - var dimmableLightControl = new Phone.Device.Light.DimmableLightControl(); - UserView.HomePage.Instance.AddChidren(dimmableLightControl); - UserView.HomePage.Instance.PageIndex += 1; - UserView.HomePage.Instance.ScrollEnabled = false; - dimmableLightControl.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - dimmableLightControl.action += (curDev, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - - }; - - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - } - else if (deviceUI.Type == DeviceType.Thermostat) - { - //绌鸿皟 - var ac = deviceUI as ZigBee.Device.AC; - if (ac.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (ac.Gateway.IsVirtual) - { - //鍙戦�佽鍙栫姸鎬佸懡浠� - UserView.UserHomeView.ReadStatus(ac, () => - { - ReadDeviceAttributeLogic.Instance.SendACStatuComand(deviceUI); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇璁惧鐘舵�� - if ((DateTime.Now - ac.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendACStatuComand(deviceUI); - } - } - }) - { IsBackground = true }.Start(); - - var deviceRow = new CategoryFunctionRow(0, 35); - deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceRow.IsSelected = ac.currentSystemMode != 1; - deviceTypeRowLayout.AddChidren(deviceRow); - - deviceRow.SwitchBtn.MouseUpEventHandler += (send2, e2) => - { - zbGateway = deviceUI.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, deviceUI); - - (send2 as Button).IsSelected = !(send2 as Button).IsSelected; - deviceRow.IsSelected = (send2 as Button).IsSelected; - if ((send2 as Button).IsSelected) - { - ac.Open(); - } - else - { - ac.Close(); - } - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(deviceUI, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - }; - deviceRow.ClickBtn.MouseUpEventHandler += (send2, e2) => - { - var acControl = new Phone.Device.AC.ACControl(); - UserView.HomePage.Instance.AddChidren(acControl); - UserView.HomePage.Instance.PageIndex += 1; - UserView.HomePage.Instance.ScrollEnabled = false; - acControl.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - acControl.action += (curDev, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - - }; - }; - - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - } - else if (deviceUI.Type == DeviceType.WindowCoveringDevice) - { - //鍗峰笜 - var rollerShade = deviceUI as ZigBee.Device.Rollershade; - if (rollerShade.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (rollerShade.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(rollerShade, () => - { - ReadDeviceAttributeLogic.Instance.SendCurtainStatuComand(deviceUI); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇 - if ((DateTime.Now - rollerShade.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendCurtainStatuComand(deviceUI); - } - } - }) - { IsBackground = true }.Start(); - - var deviceRow = new CategoryFunctionForWinRow(0, 35); - deviceRow.Init(deviceUI); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceRow.IsSelected = rollerShade.WcdCurrentPositionLiftPercentage != 0; - deviceRow.SetRollerShadeIcon(rollerShade.WcdType); - deviceTypeRowLayout.AddChidren(deviceRow); - - if (rollerShade.WcdType == -1) - { - CommonPage.Loading.Start(); - new System.Threading.Thread(() => - { - Rollershade.ReadWcdTypeAction(rollerShade, () => - { - Application.RunOnMainThread(() => - { - deviceRow.SetRollerShadeIcon(rollerShade.WcdType); - CommonPage.Loading.Hide(); - }); - }); - }) - { IsBackground = true }.Start(); - } - - deviceRow.ClickBtn.MouseUpEventHandler += (send2, e2) => - { - var rollerShadeControl = new Phone.Device.Curtain.RollerShadeControl(); - UserView.HomePage.Instance.AddChidren(rollerShadeControl); - UserView.HomePage.Instance.PageIndex += 1; - UserView.HomePage.Instance.ScrollEnabled = false; - rollerShadeControl.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - rollerShadeControl.action += (curDev, curRoom) => - { - ReFreshDeviceActionForWin(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceActionForWin(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - } - else if (deviceUI.Type == DeviceType.DoorLock) - { - var deviceRow = new CategoryFunctionRow(0, 35); - deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceRow.HideSwitchBtn(true); - deviceTypeRowLayout.AddChidren(deviceRow); - - deviceRow.ClickBtn.MouseUpEventHandler += (send2, e2) => - { - var userDoorLockPage = new UserDoorLockPage(HdlRoomLogic.Current.CurrentRoom, deviceUI); - HomePage.Instance.AddChidren(userDoorLockPage); - HomePage.Instance.PageIndex += 1; - userDoorLockPage.Show(); - }; - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - else if (deviceUI.Type == DeviceType.IASZone) - { - var deviceRow = new CategoryFunctionRow(0, 35); - deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceRow.IsSelected = (deviceUI as IASZone).iASInfo?.Alarm1 == 1; - deviceRow.HideSwitchBtn(true); - deviceTypeRowLayout.AddChidren(deviceRow); - - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - else if (deviceUI.Type == DeviceType.TemperatureSensor) - { - var tempera = deviceUI as TemperatureSensor; - if (tempera.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (tempera.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(tempera, () => - { - if (tempera.SensorDiv == 1) - { - ReadDeviceAttributeLogic.Instance.SendTemperatureStatuComand(deviceUI); - } - else if (tempera.SensorDiv == 2) - { - ReadDeviceAttributeLogic.Instance.SendHumidityStatuComand(deviceUI); - } - }); - } - else - { - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - tempera.LastDateTime).TotalSeconds) - { - if (tempera.SensorDiv == 1) - { - ReadDeviceAttributeLogic.Instance.SendTemperatureStatuComand(deviceUI); - } - else if (tempera.SensorDiv == 2) - { - ReadDeviceAttributeLogic.Instance.SendHumidityStatuComand(deviceUI); - } - } - } - }) - { IsBackground = true }.Start(); - - var deviceRow = new CategoryFunctionRow(0, 35); - deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceRow.IsSelected = false; - deviceRow.HideSwitchBtn(true); - deviceTypeRowLayout.AddChidren(deviceRow); - - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - } - else - { - var deviceRow = new CategoryFunctionRow(0, 35); - deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - deviceRow.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)); - deviceRow.HideSwitchBtn(true); - deviceTypeRowLayout.AddChidren(deviceRow); - - EventHandler<MouseEventArgs> deviceDetailHandler = (send2, e2) => - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(deviceUI, HdlRoomLogic.Current.CurrentRoom); - detailInfo.EditAction += (curDevice, curRoom) => - { - ReFreshDeviceAction(deviceUI, curRoom, sameTypeList, deviceListScrolView, deviceRow); - }; - }; - var editBtn = new CommonForm.RowLayoutEditButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(editBtn); - editBtn.MouseUpEventHandler += deviceDetailHandler; - } - } - - //鍒犻櫎璁惧 - EventHandler<MouseEventArgs> delEvent = (delSender, delE) => - { - var alert = new UserCenter.ShowMsgControl(ShowMsgType.Confirm, Language.StringByID(R.MyInternationalizationString.DeleteFunction)); - alert.Show(); - alert.ConfirmClickEvent += () => - { - if (HdlRoomLogic.Current.CurrentRoom.IsLove) - { - HdlRoomLogic.Current.DeleteLoveDevice(deviceUI); - deviceListScrolView.RemoveViewByTag((delSender as Button).Tag); - sameTypeList.Remove(deviceUI); - } - else - { - HdlRoomLogic.Current.DeleteDevice(deviceUI); - deviceListScrolView.RemoveViewByTag((delSender as Button).Tag); - sameTypeList.Remove(deviceUI); - - HdlRoomLogic.Current.DeleteLoveDevice(deviceUI); - } - if (sameTypeList.Count == 0) - { - RefreshBodyView(); - } - }; - }; - var delBtn = new CommonForm.RowLayoutDeleteButton() - { - Tag = LocalDevice.Current.GetDeviceMainKeys(deviceUI) - }; - if (HdlRoomLogic.Current.CurrentRoom.IsSharedRoom == false) - { - deviceTypeRowLayout.AddRightView(delBtn); - delBtn.MouseUpEventHandler += delEvent; - } - } - catch { } - }); - }) - { IsBackground = true }.Start(); - } - } - - /// <summary> - /// ReFreshDeviceAction - /// </summary> - /// <param name="curRoom"></param> - /// <param name="sameTypeList"></param> - /// <param name="devListScrolView"></param> - /// <param name="deviceRow"></param> - private void ReFreshDeviceAction(CommonDevice deviceUI, Common.Room curRoom, List<CommonDevice> sameTypeList, VerticalScrolViewLayout devListScrolView, CategoryFunctionRow deviceRow) - { - if (HdlRoomLogic.Current.CurrentRoom.IsLove) - { - deviceRow.SetDeviceIcon(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - if (HdlRoomLogic.Current.IsCollectInRoom(deviceUI) == false) - { - devListScrolView.RemoveViewByTag(deviceUI); - sameTypeList.Remove(deviceUI); - if (sameTypeList.Count == 0) - { - RefreshFunction(HdlRoomLogic.Current.CurrentRoom); - } - } - } - else - { - if (curRoom.Id != HdlRoomLogic.Current.CurrentRoom.Id) - { - HdlRoomLogic.Current.DeleteDevice(deviceUI); - devListScrolView.RemoveViewByTag(deviceUI); - sameTypeList.Remove(deviceUI); - if (sameTypeList.Count == 0) - { - RefreshFunction(HdlRoomLogic.Current.CurrentRoom); - } - } - else - { - deviceRow.SetDeviceIcon(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - } - } - } - - /// <summary> - /// ReFreshDeviceAction - /// </summary> - /// <param name="curRoom"></param> - /// <param name="sameTypeList"></param> - /// <param name="devListScrolView"></param> - /// <param name="deviceRow"></param> - private void ReFreshDeviceActionForWin(CommonDevice deviceUI, Common.Room curRoom, List<CommonDevice> sameTypeList, VerticalScrolViewLayout devListScrolView, CategoryFunctionForWinRow deviceRow) - { - if (HdlRoomLogic.Current.CurrentRoom.IsLove) - { - deviceRow.SetDeviceIcon(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - if (HdlRoomLogic.Current.IsCollectInRoom(deviceUI) == false) - { - devListScrolView.RemoveViewByTag(deviceUI); - sameTypeList.Remove(deviceUI); - if (sameTypeList.Count == 0) - { - RefreshFunction(HdlRoomLogic.Current.CurrentRoom); - } - } - } - else - { - if (curRoom.Id != HdlRoomLogic.Current.CurrentRoom.Id) - { - HdlRoomLogic.Current.DeleteDevice(deviceUI); - devListScrolView.RemoveViewByTag(deviceUI); - sameTypeList.Remove(deviceUI); - if (sameTypeList.Count == 0) - { - RefreshFunction(HdlRoomLogic.Current.CurrentRoom); - } - } - else - { - deviceRow.SetDeviceIcon(deviceUI.IconPath, deviceUI.OnlineIconPath); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI)); - } - } - } - - - /// <summary> - /// AddRoomView - /// </summary> - private void AddRoomView() - { - var roomFL = new HorizontalScrolViewLayout() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(170), - Width = Application.GetRealWidth(CommonPage.AppRealWidth - CommonFormResouce.X_Left), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - functionSceneAutoBodyView.AddChidren(roomFL); - - //鍔熻兘鍜屽満鏅痓odyView - functionSceneBodyView = new FrameLayout() - { - Y = roomFL.Bottom, - Height = Application.GetRealHeight(973 + 279), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - functionSceneAutoBodyView.AddChidren(functionSceneBodyView); - - RoomButton curBtn = new RoomButton(0, 0); - var lisrRoom = HdlRoomLogic.Current.GetRoomsByCurrentFloorIdAppendLoveRoom(); - foreach (var room in lisrRoom) - { - var row = new FrameLayout() - { - Width = Application.GetRealWidth(255), - Height = Application.GetRealHeight(167) - }; - roomFL.AddChidren(row); - - RoomButton roomBtn = new RoomButton(0, 0); - roomBtn.Gravity = Gravity.Center; - roomBtn.Init(); - roomBtn.SetTitle(room.Name); - row.AddChidren(roomBtn); - - if (room.Id == HdlRoomLogic.Current.CurrentRoom.Id) - { - roomBtn.IsSelected = true; - curBtn = roomBtn; - if (sceneBtn.IsSelected) - { - RefreshScene(room); - } - else - { - RefreshFunction(room); - } - } - - roomBtn.ButtonClickEvent += (sender, e) => - { - if (sender == curBtn) - { - return; - } - sender.IsSelected = true; - curBtn.IsSelected = false; - curBtn = sender; - HdlRoomLogic.Current.CurrentRoom = room; - if (sceneBtn.IsSelected) - { - RefreshScene(room); - } - else - { - RefreshFunction(room); - } - }; - } - } - - #endregion - - #region 鈼� 鍦烘櫙____________________________ - /// <summary> - /// 閫夋嫨鍦烘櫙--鎵�鏈夋埧闂寸殑鎵�鏈夊満鏅� - /// </summary> - public void ShowScene() - { - AddRoomView(); - } - - /// <summary> - /// RefreshScene - /// </summary> - /// <param name="room"></param> - public void RefreshScene(Common.Room room) - { - RefreshData(room); - functionSceneBodyView.RemoveAll(); - if (sceneList.Count == 0) - { - ShowNoSceneTip(); - } - else - { - var sceneScrolView = new VerticalScrolViewLayout { }; - functionSceneBodyView.AddChidren(sceneScrolView); - foreach (var scene in sceneList) - { - var sceneView = new SceneCategoryView(); - sceneScrolView.AddChidren(sceneView); - sceneView.InitControl(scene, room); - } - GetDelayScene(sceneScrolView); - } - } - - /// <summary> - /// 鏄剧ず娌℃湁鍦烘櫙 - /// </summary> - private void ShowNoSceneTip() - { - var noFunction = new Button() - { - Y = Application.GetRealHeight(320), - Width = Application.GetMinRealAverage(757), - Height = Application.GetMinRealAverage(435), - UnSelectedImagePath = "Item/NoFunction.png", - Gravity = Gravity.CenterHorizontal - }; - functionSceneBodyView.AddChidren(noFunction); - - var noScenceTip = new Button() - { - Y = noFunction.Bottom + Application.GetRealHeight(32), - Height = Application.GetRealHeight(200), - Width = Application.GetRealWidth(700), - Gravity = Gravity.CenterHorizontal, - Text = Language.StringByID(R.MyInternationalizationString.NoScene).Replace("{\\r\\n}", "\r\n"), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, - TextAlignment = TextAlignment.Center, - IsMoreLines = true - }; - functionSceneBodyView.AddChidren(noScenceTip); - } - - - /// <summary> - /// GetDelayScene - /// </summary> - /// <param name="scrolViewLayout"></param> - private async void GetDelayScene(VerticalScrolViewLayout scrolViewLayout) - { - var catDelaySceneResponseAllData = await Scene.CatDelaySceneAsync(); - if (catDelaySceneResponseAllData == null) - { - return; - } - var catDelaySceneResponseData = catDelaySceneResponseAllData.catDelaySceneResponseData; - if (catDelaySceneResponseData == null || catDelaySceneResponseData.DelayScenesList.Count == 0) - { - return; - } - var delayList = catDelaySceneResponseData.DelayScenesList; - - for (int i = 0; scrolViewLayout != null && i < scrolViewLayout.ChildrenCount; i++) - { - var sceneView = scrolViewLayout.GetChildren(i) as SceneCategoryView; - if (sceneView == null) - { - continue; - } - foreach (var delayScenesListResponseInfo in delayList) - { - if (delayScenesListResponseInfo.ScenesId == sceneView.scene.Id) - { - sceneView.scene.RemainTime = delayScenesListResponseInfo.RemainTime; - var remainTime = delayScenesListResponseInfo.RemainTime; - if (remainTime > 0) - { - //寮�鍚唴閮ㄥ欢鏃舵椂闂寸嚎绋�(鏃ㄥ湪鍏ㄩ儴鍦版柟鐨勫悓涓�鍦烘櫙鏃堕棿鍚屾) - HdlSceneLogic.Current.StartDelayTimeThread(sceneView.scene); - new System.Threading.Thread(() => - { - while (remainTime > 0 && this.Parent != null) - { - System.Threading.Thread.Sleep(1000); - Application.RunOnMainThread(() => - { - sceneView.SetTimeText(CommonFormResouce.GetTimeString(remainTime)); - }); - remainTime--; - } - Application.RunOnMainThread(() => - { - if (this.Parent != null) - { - sceneView.SetTimeImage(); - } - }); - }) - { IsBackground = true }.Start(); - } - break; - } - } - } - } - - #endregion - - #region 鈼� 鑷姩鍖朹_________________________ - - /// <summary> - /// 鑷姩鍖栧姛鑳戒唬鐮佸叆鍙� - /// </summary> - private void ShowAutotion() - { - // functionSceneAutoBodyView.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; - - var bjFrameLayout = new FrameLayout - { - Width = Application.GetRealWidth(1080 - 58), - Height = Application.GetRealHeight(170), - BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, - X = Application.GetRealWidth(58), - //Radius = (uint)Application.GetRealHeight(50), - Y = Application.GetRealHeight(30), - }; - functionSceneAutoBodyView.AddChidren(bjFrameLayout); - bjFrameLayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerBottomLeft); - var sigBtn = new Button - { - Width = Application.GetMinRealAverage(84), - Height = Application.GetMinRealAverage(84), - UnSelectedImagePath = "ZigeeLogic/sign.png", - X = Application.GetRealWidth(58), - Gravity = Gravity.CenterVertical, - }; - bjFrameLayout.AddChidren(sigBtn); - - var recommendtextBtn = new Button - { - Width = Application.GetMinRealAverage(300), - Height = Application.GetMinRealAverage(84), - X = sigBtn.Right + Application.GetRealWidth(35), - TextAlignment = TextAlignment.CenterLeft, - //Text = "鎺ㄨ崘妯℃澘", - TextID = MyInternationalizationString.logictemplate, - Gravity = Gravity.CenterVertical, - TextColor = ZigbeeColor.Current.LogicBtnSelectedColor, - TextSize = 15, - }; - bjFrameLayout.AddChidren(recommendtextBtn); - - var recommendswitchBtn = new Button - { - Width = Application.GetMinRealAverage(104), - Height = Application.GetMinRealAverage(63), - UnSelectedImagePath = "ZigeeLogic/logicclose.png", - SelectedImagePath = "ZigeeLogic/logicopen.png", - X = bjFrameLayout.Width - Application.GetRealWidth(104 + 58), - Gravity = Gravity.CenterVertical, - }; - bjFrameLayout.AddChidren(recommendswitchBtn); - - - var scenehorizontalScrol = new HorizontalScrolViewLayout - { - Width = Application.GetRealWidth(1080 - 58), - X = Application.GetRealWidth(58), - Y = bjFrameLayout.Bottom + Application.GetRealHeight(30), - Height = Application.GetRealHeight(0), - }; - functionSceneAutoBodyView.AddChidren(scenehorizontalScrol); - - var logicScrolView = new VerticalRefreshLayout//VerticalScrolViewLayout - { - Height = functionSceneAutoBodyView.Height - bjFrameLayout.Height - bjFrameLayout.Y - scenehorizontalScrol.Height - Application.GetRealHeight(30), - //BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor,/ - X = Application.GetRealWidth(58), - Y = scenehorizontalScrol.Bottom, - }; - functionSceneAutoBodyView.AddChidren(logicScrolView); - logicScrolView.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); - bool no = false; - recommendswitchBtn.MouseUpEventHandler += (sender, e) => - { - int Yheight = 0; - recommendswitchBtn.IsSelected = !recommendswitchBtn.IsSelected; - scenehorizontalScrol.RemoveAll(); - if (recommendswitchBtn.IsSelected) - { - no = true; - scenehorizontalScrol.Height = Application.GetRealHeight(246); - Yheight = 20; - for (int i = 1; i < 4; i++) - { - - var frameLayout = new FrameLayout - { - Width = Application.GetMinRealAverage(369 + 46), - Height = Application.GetMinRealAverage(246), - }; - scenehorizontalScrol.AddChidren(frameLayout); - var logiciocnBtn = new Button - { - Width = Application.GetMinRealAverage(369), - Height = Application.GetMinRealAverage(246), - UnSelectedImagePath = "ZigeeLogic/" + i + ".png", - Tag = i, - }; - frameLayout.AddChidren(logiciocnBtn); - - var logicnameBtn = new Button - { - Width = Application.GetMinRealAverage(250), - Height = Application.GetMinRealAverage(80), - X = Application.GetRealWidth(23), - Y = Application.GetRealHeight(246 - 23 - 80), - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, - TextSize = 14, - }; - frameLayout.AddChidren(logicnameBtn); - - if (i == 1) - { - logicnameBtn.Text = Language.StringByID(MyInternationalizationString.onlight); - } - else if (i == 2) - { - logicnameBtn.Text = Language.StringByID(MyInternationalizationString.offlight); - } - else if (i == 3) - { - logicnameBtn.Text = Language.StringByID(MyInternationalizationString.automation1); - } - - - EventHandler<MouseEventArgs> iconclick = (sender1, e1) => - { - Common.Logic.CurrentLogic = new Common.Logic(); - Common.Logic.CurrentLogic.IsEnable = 1;//榛樿涓哄紑 - if (logiciocnBtn.Tag.ToString() == "3") - { - Common.Logic.CurrentLogic.LogicName = logicnameBtn.Text; - //Common.Logic.CurrentLogic.LogicCustomPushText = Common.Logic.CurrentLogic.LogicName + Language.StringByID(MyInternationalizationString.defaulttext); - var addLogicPage = new Logic.AddLogicPage(); - HomePage.Instance.AddChidren(addLogicPage); - HomePage.Instance.PageIndex += 1; - addLogicPage.Show(); - } - else - { - - Common.Logic.CurrentLogic.LogicName = logicnameBtn.Text; - //Common.Logic.CurrentLogic.LogicCustomPushText = Common.Logic.CurrentLogic.LogicName + Language.StringByID(MyInternationalizationString.defaulttext); - Logic.TemplatePage templatePage = new Logic.TemplatePage(); - Logic.TemplatePage.s = logiciocnBtn.Tag.ToString(); - HomePage.Instance.AddChidren(templatePage); - HomePage.Instance.PageIndex += 1; - templatePage.Show(); - } - }; - logiciocnBtn.MouseUpEventHandler += iconclick; - logicnameBtn.MouseUpEventHandler += iconclick; - } - } - else - { - no = false; - scenehorizontalScrol.Height = Application.GetRealHeight(0); - Yheight = 0; - } - logicScrolView.Y = scenehorizontalScrol.Bottom + Yheight; - logicScrolView.Height = functionSceneAutoBodyView.Height - bjFrameLayout.Height - bjFrameLayout.Y - scenehorizontalScrol.Height - Application.GetRealHeight(30) - Yheight; - Automationview(logicScrolView, no); - }; - logicScrolView.BeginHeaderRefreshingAction += () => - { - //閲嶆柊鍒锋柊logic鍒楄〃 - Common.Logic.LogicList.Clear(); - Read(logicScrolView, no); - //鍏抽棴鍒锋柊View锛� - logicScrolView.EndHeaderRefreshing(); - }; - - Read(logicScrolView, no); - - } - /// <summary> - /// 璇诲彇鑷姩鍖栧垪琛ㄦ暟鎹紱 - /// </summary> - /// <param name="logicScrolView"></param> - private async void Read(VerticalRefreshLayout logicScrolView, bool no) - { - CommonPage.Loading.Start(); - if (Common.Logic.LogicList.Count == 0) - { - var Idlist = await Logic.Send.GetLogicId(0); - if (Idlist.Count != 0) - { - var listlogic = await Logic.Send.ReadList(Idlist.Count, 0); - //foreach鍙兘闆嗗悎宸茶淇敼,鏋氫妇鎿嶄綔鍙兘涓嶄細鎵ц,鍙兘鍑虹幇宕╂簝(寤鸿for)銆� - for (int j = 0; j < listlogic.Count; j++) - { - var logic = listlogic[j]; - if (logic.LogicType != 0) - { - continue; - } - Common.Logic.LogicList.Add(logic); - } - } - } - //鑷姩鍖� - Automationview(logicScrolView, no); - CommonPage.Loading.Hide(); - } - /// <summary> - /// 鍔犺浇鑷姩鍖栧垪琛ㄧ晫闈� - /// </summary> - /// <param name="refresview">Refresview.</param> - private async void Automationview(VerticalRefreshLayout refresview, bool no) - { - refresview.RemoveAll(); - if (Common.Logic.LogicList.Count == 0 && no == false) - { - //灏辨槸涓轰簡鏄剧ず寮曞娣诲姞鍥炬爣; - refresview.BackgroundColor = 0x00000000; - var noFrameLayout = new FrameLayout - { - Height = Application.GetRealHeight(434 + 200 + 32 + 160), - //BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, - }; - refresview.AddChidren(noFrameLayout); - - - var noIconBtn = new Button - { - Y = Application.GetRealHeight(160), - Width = Application.GetMinRealAverage(756), - Height = Application.GetMinRealAverage(434), - UnSelectedImagePath = "Item/NoFunction.png", - X = Application.GetRealWidth(104), - }; - noFrameLayout.AddChidren(noIconBtn); - - var noTextBtn = new Button() - { - Y = noIconBtn.Bottom, - Height = Application.GetRealHeight(200) + Application.GetRealHeight(32), - Width = Application.GetRealWidth(700), - //Gravity = Gravity.CenterHorizontal, - Text = Language.StringByID(MyInternationalizationString.automationaddtext).Replace("{\\r\\n}", "\r\n"), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, - TextAlignment = TextAlignment.Center, - IsMoreLines = true, - X = Application.GetRealWidth(190 - 58), - }; - noFrameLayout.AddChidren(noTextBtn); - - } - else - { - - if (Common.Logic.LogicList.Count == 0 && no == true) - { - ///鏀瑰彉婊戝姩view鐨勯鑹诧紱 - refresview.BackgroundColor = 0x00000000; - } - else - { - refresview.BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor; - } - } - foreach (var logic in Common.Logic.LogicList) - { - - - var logicRowlayout = new RowLayout - { - Height = Application.GetRealHeight(190 + 30), - Width = Application.GetRealWidth(1080 - 58), - LineColor = ZigbeeColor.Current.LogicBackgroundColor, - BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, - - }; - refresview.AddChidren(logicRowlayout); - - - - var logicnameBtn = new Button - { - Height = Application.GetRealHeight(58), - Width = Application.GetRealWidth(350), - Text = logic.LogicName, - X = Application.GetRealWidth(12 + 46), - Y = Application.GetRealHeight(30), - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.LogicTextBlackColor, - TextSize = 14, - }; - logicRowlayout.AddChidren(logicnameBtn); - - - var logicswitchBtn = new Button - { - Width = Application.GetMinRealAverage(104), - Height = Application.GetMinRealAverage(63), - UnSelectedImagePath = "ZigeeLogic/logicclose.png", - SelectedImagePath = "ZigeeLogic/logicopen.png", - X = logicRowlayout.Width - Application.GetRealWidth(104 + 58), - Y = Application.GetRealHeight(58 + 30 + 9 + 30), - }; - logicRowlayout.AddChidren(logicswitchBtn); - - - - logicswitchBtn.MouseUpEventHandler += (sender1, e1) => - { - logicswitchBtn.IsSelected = !logicswitchBtn.IsSelected; - if (logicswitchBtn.IsSelected) - { - //閫昏緫寮� - logic.IsEnable = 1; - StatusColor(logic, logicRowlayout, 1); - } - else - { - //閫昏緫鍏� - logic.IsEnable = 0; - StatusColor(logic, logicRowlayout, 0); - } - Logic.Send.LogicControlSwitch(logic); - //Logic.Send.AddModifyLogic(logic); - }; - if (logic.IsEnable == 1) - { - logicswitchBtn.IsSelected = true; - StatusColor(logic, logicRowlayout, 1); - } - else if (logic.IsEnable == 0) - { - logicswitchBtn.IsSelected = false; - StatusColor(logic, logicRowlayout, 0); - } - ///缂栬緫 - var edit = new Button - { - BackgroundColor = ZigbeeColor.Current.LogicEditBlackColor1, - Text = Language.StringByID(MyInternationalizationString.edit), - TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, - }; - logicRowlayout.AddRightView(edit); - edit.MouseUpEventHandler += (sender, e) => - { - Common.Logic.CurrentLogic = logic; - var logicCommunalPage = new Logic.LogicCommunalPage(); - HomePage.Instance.AddChidren(logicCommunalPage); - HomePage.Instance.PageIndex += 1; - logicCommunalPage.Show(() => { - logicnameBtn.Text = logic.LogicName; - Automationview(refresview, no); - }); - - }; - - - ///鍒犻櫎 - var del = new Button - { - BackgroundColor = ZigbeeColor.Current.LogicDelBlackColor1, - Text = Language.StringByID(MyInternationalizationString.del), - TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, - }; - logicRowlayout.AddRightView(del); - del.MouseUpEventHandler += (sender, e) => - { - var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Confirm, - Language.StringByID(MyInternationalizationString.doyouwanttodelete), - Language.StringByID(MyInternationalizationString.confrim)); - alert.Show(); - alert.ConfirmClickEvent += () => - { - Common.Logic.LogicList.Remove(logic); - Automationview(refresview, no); - Logic.Send.DelLogic(logic.LogicId); - }; - - }; - var line = new Button - { - Y = Application.GetRealHeight(215), - Height = Application.GetRealHeight(5), - Width = Application.GetRealWidth(1080 - 58), - BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor, - X = Application.GetRealWidth(58), - }; - logicRowlayout.AddChidren(line); - } - - } - /// <summary> - /// 鏄剧ず鑷姩鍖栬緭鍑哄姛鑳芥ā鍧楀浘鏍囩殑棰滆壊 - /// </summary> - /// <param name="logic"></param> - /// <param name="logicRowlayout"></param> - /// <param name="intvalue"></param> - private void StatusColor(Common.Logic logic, RowLayout logicRowlayout, int intvalue) - { - - var logictimeBtn = new Button - { - Height = Application.GetRealHeight(58), - Width = logicRowlayout.Width - Application.GetRealWidth(58 + 12 + 350), - Y = Application.GetRealHeight(30), - X = Application.GetRealWidth(365), - TextAlignment = TextAlignment.CenterRight, - TextColor = ZigbeeColor.Current.LogicListWeekTextColor, - }; - logicRowlayout.AddChidren(logictimeBtn); - - ///鏄剧ず鎵ц鍛ㄦ湡 - switch (logic.TimeAttribute.Repeat) - { - ///0:鍙墽琛屼竴娆★紝鎵ц鍚嶪sEnable鍊肩疆;1,浠婂勾鍐呮墽琛�;2锛氭瘡澶╂墽琛�;3锛氭瘡鏈堟墽琛�;4锛氭瘡骞存墽琛�;5锛氬懆閲嶅銆� - case 0: - { - logictimeBtn.Text = Language.StringByID(MyInternationalizationString.executeonce); - }; break; - case 1: { }; break; - case 2: - { - logictimeBtn.Text = Language.StringByID(MyInternationalizationString.everyday); - }; break; - case 3: - { - - string len = "", value = ""; - var stringvalue = Convert.ToString(logic.TimeAttribute.MonthDate, 2); - var str = stringvalue.Insert(0, new string('0', 32 - stringvalue.Length)); - for (int j = 31; j >= 0; j--) - { - len += str.Substring(j, 1); - } - for (int j = 0; j < len.Length; j++) - { - var strvalue = len.Substring(j, 1); - if (strvalue == "1") - { - value += (j + 1).ToString() + ","; - } - } - logictimeBtn.Text = Language.StringByID(MyInternationalizationString.monthly) + value.TrimEnd(',') + Language.StringByID(MyInternationalizationString.day); - - }; break; - case 4: - { - - Dictionary<int, int> dictionary = new Dictionary<int, int>(); - ///鎵惧嚭鎵ц鐨勬湀浠藉拰澶╂暟 - if (logic.TimeAttribute.SelectMonDate.Count != 0) - { - for (int i = 0; i < logic.TimeAttribute.SelectMonDate.Count; i++) - { - var dayvalue = logic.TimeAttribute.SelectMonDate[i]; - if (dayvalue != 0) - { - dictionary.Add(i + 1, dayvalue); - } - } - } - if (dictionary.Count != 0 && dictionary.Count == 1) - { - string len = "", leng = ""; - int minvalue = 0, Maximum = 0; - foreach (var value in dictionary) - { - ///鍙栧嚭鏈堜唤 - var month = value.Key; - ///鍙栧嚭鏃ユ暟 - var day = value.Value; - var maxvalue = Convert.ToString(day, 2); - var str = maxvalue.Insert(0, new string('0', 32 - maxvalue.Length)); - for (int j = 31; j >= 0; j--) - { - len += str.Substring(j, 1); - } - - for (int j = 0; j < len.Length; j++) - { - var strvalue = len.Substring(j, 1); - if (strvalue == "1") - { - minvalue = j + 1; - break; - } - } - for (int j = 0; j < len.Length; j++) - { - var strvalue = len.Substring(j, 1); - if (strvalue == "1") - { - Maximum = j + 1; - } - } - - if (month.ToString().Length < 2) - { - leng = "0" + month.ToString(); - } - else - { - leng = month.ToString(); - } - if (minvalue == Maximum) - { - logictimeBtn.Text = Language.StringByID(MyInternationalizationString.everyyear) + leng + "/" + (minvalue.ToString().Length < 2 ? "0" + minvalue.ToString() : minvalue.ToString()); - } - else - { - logictimeBtn.Text = Language.StringByID(MyInternationalizationString.everyyear) + leng + "/" + (minvalue.ToString().Length < 2 ? "0" + minvalue.ToString() : minvalue.ToString()) + "-" + leng + "/" + (Maximum.ToString().Length < 2 ? "0" + Maximum.ToString() : Maximum.ToString()); - } - } - - } - else - { - int b = 0; - string stringtext = ""; - foreach (var value in dictionary) - { - string len = "", leng = ""; - int minvalue = 0, Maximum = 0; - ///鍙栧嚭鏈堜唤 - var month = value.Key; - ///鍙栧嚭鏃ユ暟 - var day = value.Value; - var maxvalue = Convert.ToString(day, 2); - var str = maxvalue.Insert(0, new string('0', 32 - maxvalue.Length)); - for (int j = 31; j >= 0; j--) - { - len += str.Substring(j, 1); - } - - - if (month.ToString().Length < 2) - { - leng = "0" + month.ToString(); - } - else - { - leng = month.ToString(); - } - - - - if (b == 0) - { - for (int j = 0; j < len.Length; j++) - { - var strvalue = len.Substring(j, 1); - if (strvalue == "1") - { - minvalue = j + 1; - break; - } - } - stringtext += leng + "/" + (minvalue.ToString().Length < 2 ? "0" + minvalue.ToString() : minvalue.ToString()) + "-"; - - } - - if (b == dictionary.Count - 1) - { - for (int j = 0; j < len.Length; j++) - { - var strvalue = len.Substring(j, 1); - if (strvalue == "1") - { - Maximum = j + 1; - } - } - stringtext += leng + "/" + (Maximum.ToString().Length < 2 ? "0" + Maximum.ToString() : Maximum.ToString()); - - } - b++; - } - logictimeBtn.Text = Language.StringByID(MyInternationalizationString.everyyear) + stringtext; - } - - }; break; - case 5: - { - string len = "", text = ""; - List<int> listvalueInt = new List<int>(); - listvalueInt.Clear(); - var maxvalue = Convert.ToString(logic.TimeAttribute.WeekDay, 2); - var str = maxvalue.Insert(0, new string('0', 8 - maxvalue.Length)); - for (int j = 7; j >= 0; j--) - { - len += str.Substring(j, 1); - } - - for (int j = 0; j < len.Length; j++) - { - var strvalue = len.Substring(j, 1); - if (strvalue == "1") - { - listvalueInt.Add(j + 1); - - - if ((j + 1) == 1) - { - text += Language.StringByID(MyInternationalizationString.week1) + Language.StringByID(MyInternationalizationString.mon1) + ","; - //text += Language.StringByID(MyInternationalizationString.mon) + ","; - } - else if ((j + 1) == 2) - { - text += Language.StringByID(MyInternationalizationString.week1) + Language.StringByID(MyInternationalizationString.tue1) + ","; - //text += Language.StringByID(MyInternationalizationString.tue) + ","; - } - else if ((j + 1) == 3) - { - text += Language.StringByID(MyInternationalizationString.week1) + Language.StringByID(MyInternationalizationString.wed1) + ","; - //text += Language.StringByID(MyInternationalizationString.wed) + ","; - } - else if ((j + 1) == 4) - { - text += Language.StringByID(MyInternationalizationString.week1) + Language.StringByID(MyInternationalizationString.thu1) + ","; - //text += Language.StringByID(MyInternationalizationString.thu) + ","; - } - else if ((j + 1) == 5) - { - text += Language.StringByID(MyInternationalizationString.week1) + Language.StringByID(MyInternationalizationString.frl1) + ","; - //text += Language.StringByID(MyInternationalizationString.frl) + ","; - } - else if ((j + 1) == 6) - { - text += Language.StringByID(MyInternationalizationString.week1) + Language.StringByID(MyInternationalizationString.sat1) + ","; - //text += Language.StringByID(MyInternationalizationString.sat) + ","; - } - else if ((j + 1) == 7) - { - text += Language.StringByID(MyInternationalizationString.week1) + Language.StringByID(MyInternationalizationString.sun1) + ","; - //text += Language.StringByID(MyInternationalizationString.sun) + ","; - } - - - } - } - //鏆傛椂闅愯棌鎺夛紝闇�瑕佹樉绀哄懆鏈拰宸ヤ綔鏃ュ啀鏀惧紑锛� - //if (listvalueInt.Count == 5 && !listvalueInt.Contains(6) && !listvalueInt.Contains(7)) - //{ - // btndisplaycycle.Text = Language.StringByID(MyInternationalizationString.workingday); - //} - //else if (listvalueInt.Count == 2 && listvalueInt.Contains(6) && listvalueInt.Contains(7)) - //{ - // btndisplaycycle.Text = Language.StringByID(MyInternationalizationString.weekend); - //} - //else if (listvalueInt.Count == 7) - //{ - // btndisplaycycle.Text = Language.StringByID(MyInternationalizationString.everyday); - //} - //else - //{ - // btndisplaycycle.Text = Language.StringByID(MyInternationalizationString.week1) + text.Replace(Language.StringByID(MyInternationalizationString.week1), "").TrimEnd(','); - //} - logictimeBtn.Text = Language.StringByID(MyInternationalizationString.week1) + text.Replace(Language.StringByID(MyInternationalizationString.week1), "").TrimEnd(','); - //btndisplaycycle.Text = text.TrimEnd(','); - }; break; - } - - List<string> indexlist = new List<string>(); - List<string> iconIndexlist = new List<string>(); - for (int i = 0; i < logic.Actions.Count; i++) - { - var linkType = logic.Actions[i]["LinkType"].ToString(); - var d = indexlist.Find((value) => { return value == linkType; }); - if (d == null) - { - indexlist.Add(linkType); - } - } - if (indexlist.Contains("0")) - { - iconIndexlist.Add("0"); - } - if (indexlist.Contains("2")) - { - iconIndexlist.Add("2"); - } - if (indexlist.Contains("6")) - { - iconIndexlist.Add("6"); - } - if (indexlist.Contains("7")) - { - iconIndexlist.Add("7"); - } - for (int i = 0; i < iconIndexlist.Count; i++) - { - var iconindex = iconIndexlist[i]; - var typebjBtn = new FrameLayout - { - Width = Application.GetRealWidth(82), - Height = Application.GetRealHeight(82), - X = Application.GetRealWidth(58) + Application.GetRealWidth(12 + (12 + 82 + 45 + 12) * i), - Y = Application.GetRealHeight(58 + 30 + 30), - Radius = (uint)Application.GetRealHeight(41), - BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, - }; - logicRowlayout.AddChidren(typebjBtn); - - var typeIconBtn = new Button - { - Width = Application.GetRealWidth(58), - Height = Application.GetRealHeight(58), - Gravity = Gravity.Center, - - }; - typebjBtn.AddChidren(typeIconBtn); - - var connectIconBtn = new Button - { - Y = typebjBtn.Y + Application.GetRealHeight(35), - X = Application.GetRealWidth(58) + Application.GetRealWidth((12 + 82 + 12) + (12 + 45 + 82 + 12) * i), - Width = Application.GetRealWidth(48), - Height = Application.GetRealHeight(15), - UnSelectedImagePath = "ZigeeLogic/connect.png", - }; - logicRowlayout.AddChidren(connectIconBtn); - if (iconIndexlist.Count - 1 == i) - { - connectIconBtn.Visible = false; - } - switch (iconindex) - { - case "0": - { - if (intvalue == 1) - { - typeIconBtn.UnSelectedImagePath = "ZigeeLogic/function1.png"; - typebjBtn.BackgroundColor = ZigbeeColor.Current.LogicFunction1Color; - } - else - { - typeIconBtn.UnSelectedImagePath = "ZigeeLogic/nofunction.png"; - typebjBtn.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; - } - } - break; - case "2": - { - - if (intvalue == 1) - { - typeIconBtn.UnSelectedImagePath = "ZigeeLogic/scene1.png"; - typebjBtn.BackgroundColor = ZigbeeColor.Current.LogicScene1Color; - } - else - { - typeIconBtn.UnSelectedImagePath = "ZigeeLogic/noscene.png"; - typebjBtn.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; - } - - } - break; - case "6": - { - if (intvalue == 1) - { - typeIconBtn.UnSelectedImagePath = "ZigeeLogic/security1.png"; - typebjBtn.BackgroundColor = ZigbeeColor.Current.LogicSecurity1Color; - - } - else - { - typeIconBtn.UnSelectedImagePath = "ZigeeLogic/nosecurity.png"; - typebjBtn.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; - } - - } - break; - case "7": - { - if (intvalue == 1) - { - typeIconBtn.UnSelectedImagePath = "ZigeeLogic/delay1.png"; - typebjBtn.BackgroundColor = ZigbeeColor.Current.LogicDelay1Color; - } - else - { - typeIconBtn.UnSelectedImagePath = "ZigeeLogic/nodelay.png"; - typebjBtn.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; - } - - } - break; - - } - } - } - - #endregion - - #region 鈼� 鎺у埗鐘舵�乢________________________ - - /// <summary> - /// 鏄剧ず璁惧鎺у埗鐘舵�� - /// </summary> - /// <param name="command">Command.</param> - /// <param name="objValue">Object value.</param> - private void UpdateDeviceControllStatu(string command, object objValue) - { - if (command != "DeviceDefaultAck" || objValue == null) - { - return; - } - var tempDevice = (CommonDevice)objValue; - if (null == commonDeviceList.Find((obj) => obj.DeviceEpoint == tempDevice.DeviceEpoint && obj.DeviceAddr == tempDevice.DeviceAddr)) - { - return; - } - //鏍囪宸茬粡鍙戦�佹帶鍒跺懡浠ゅ埌缃戝叧 - sendedControlCommand = true; - //DeviceUI.ShowStatuTip(R.MyInternationalizationString.Success); - } - - /// <summary> - /// 绉婚櫎鍏ㄩ儴鏇存柊鎺у埗璁惧鐨刟ction - /// </summary> - private void RemoveAllUpdateControlDeviceStatuAction() - { - foreach (var gateway in zbGatewayList) - { - //绉婚櫎action - if (gateway != null) - { - gateway.ReportAction -= UpdateDeviceControllStatu; - } - } - } - - /// <summary> - /// 绉婚櫎鍗曚釜鎺у埗璁惧鐨勬洿鏂扮姸鎬乤ction - /// </summary> - /// <param name="gateway">Gateway.</param> - private void RemoveUpdateControlDeviceStatuAction(ZbGateway gateway) - { - //绉婚櫎action - if (gateway != null) - { - gateway.ReportAction -= UpdateDeviceControllStatu; - } - } - - /// <summary> - /// 娣诲姞闇�瑕佺洃鎺у洖璋冪姸鎬佺殑缃戝叧鍜岃澶� - /// </summary> - /// <param name="gatewayList">Gateway list.</param> - /// <param name="gateway">Gateway.</param> - /// <param name="deviceList">Device list.</param> - /// <param name="common">Common.</param> - private void AddZbGateway(List<ZbGateway> gatewayList, ZbGateway gateway, List<CommonDevice> deviceList, CommonDevice common) - { - if (null == gatewayList.Find((obj) => obj.getGatewayBaseInfo.gwID == gateway.getGatewayBaseInfo.gwID)) - { - gatewayList.Add(gateway); - } - if (null == commonDeviceList.Find((obj) => obj.DeviceEpoint == common.DeviceEpoint && obj.DeviceAddr == common.DeviceAddr)) - { - commonDeviceList.Add(common); - } - } - - #endregion - - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Category/CategoryAddScene.cs b/ZigbeeApp/Shared/Phone/Device/Category/CategoryAddScene.cs deleted file mode 100755 index 4da2ebb..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Category/CategoryAddScene.cs +++ /dev/null @@ -1,1912 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Globalization; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.Room; -using Shared.Phone.UserCenter; -using ZigBee.Device; -using static ZigBee.Device.Scene; - -namespace Shared.Phone.Device.Category -{ - public class CategoryAddScene : FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - ///// <summary> - ///// floorIds - ///// </summary> - //List<string> floorIds = new List<string> { }; - ///// <summary> - ///// floorNames - ///// </summary> - //List<string> floorNames = new List<string> { }; - ///// <summary> - ///// roomNames - ///// </summary> - //List<List<string>> roomNames = new List<List<string>> { }; - ///// <summary> - ///// roomNames - ///// </summary> - //List<List<Common.Room>> rooms = new List<List<Common.Room>> { }; - /// <summary> - /// ImagePath - /// </summary> - private string ImagePath = "SceneIcon/1.png"; - /// <summary> - /// 鍥剧墖鏉ユ簮 0--鏈湴鍥惧簱 1--鎷嶇収 2--绯荤粺鍥惧簱 - /// </summary> - public int IconPathType = 0; - /// <summary> - /// curRoom - /// </summary> - private Common.Room curRoom; - /// <summary> - /// sceneTargetDevicesList - /// </summary> - private List<SceneTargetDeviceUI> sceneTargetDevicesList = new List<SceneTargetDeviceUI> { }; - /// <summary> - /// 娣诲姞鐩爣鍚庣殑灞曠ず鍒楄〃 - /// </summary> - public FrameLayout TargetListScrolView; - /// <summary> - /// The confirm button. - /// </summary> - private CommonForm.CompleteButton confirmBtn; - - /// <summary> - /// backGround - /// </summary> - private ImageView backGround; - - /// <summary> - /// 鏄惁淇敼 - /// </summary> - public bool isModify; - /// <summary> - /// 淇敼鐨勫満鏅� - /// </summary> - public SceneUI modifySceneUI; - /// <summary> - /// 璁板綍缂栬緫鍓嶇殑璁惧鍒楄〃 - /// </summary> - public List<SceneTargetDeviceUI> modifySceneTargetDevicesList; - /// <summary> - /// modifyRoom - /// </summary> - public Common.Room modifyRoom; - - /// <summary> - /// OldBackgroundImagePath - /// </summary> - private string OldBackgroundImagePath; - /// <summary> - /// OldIconPathType - /// </summary> - public int OldIconPathType; - - /// <summary> - /// selectedTimeAction - /// </summary> - private Action<SceneTargetDeviceUI> selectedAction; - /// <summary> - /// 淇敼鍦烘櫙action - /// </summary> - public Action<SceneUI, Common.Room> EditorAction; - /// <summary> - /// 娣诲姞鍦烘櫙action - /// </summary> - public Action AddAction; - - #endregion - - /// <summary> - /// CategoryAddScene - /// </summary> - public CategoryAddScene() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - /// <summary> - /// RemoveFromParent - /// </summary> - public override void RemoveFromParent() - { - UserView.HomePage.Instance.ScrollEnabled = true; - base.RemoveFromParent(); - } - /// <summary> - ///鍒锋柊娣诲姞鐩爣鍚庣殑灞曠ず鍒楄〃 - /// </summary> - public void RefreshTargetListView() - { - UserView.HomePage.Instance.ScrollEnabled = false; - TargetListScrolView.RemoveAll(); - TargetListScrolView.Height = Application.GetRealHeight(173); - var TargetListScrolBackView = new FrameLayout() - { - Height = Application.GetRealHeight(173), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - TargetListScrolView.AddChidren(TargetListScrolBackView); - - if (sceneTargetDevicesList.Count > 0) - { - if (sceneTargetDevicesList.Count > 1) - { - TargetListScrolView.Height = Application.GetRealHeight(140 * sceneTargetDevicesList.Count) + Application.GetRealHeight(200); - TargetListScrolBackView.Height = Application.GetRealHeight(140 * sceneTargetDevicesList.Count + 13); - } - - for (int i = 0; i < sceneTargetDevicesList.Count; i++) - { - var targetDevice = sceneTargetDevicesList[i]; - var targetRowLayout = new RowLayout() - { - Y = Application.GetRealHeight(i * 140), - Height = Application.GetRealHeight(140), - LineColor = ZigbeeColor.Current.GXCClearColor, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - SubViewWidth = Application.GetRealWidth(184) - }; - TargetListScrolView.AddChidren(targetRowLayout); - string devImgPath = string.Empty; - string devNameText = string.Empty; - if (targetDevice.Type == 0) - { - if (targetDevice.DeviceUI == null) continue; - devImgPath = targetDevice.DeviceUI.IconPath; - devNameText = Common.LocalDevice.Current.GetDeviceEpointName(targetDevice.DeviceUI); - - var targetRow = new SceneTargetFunctionRow(13); - targetRow.Init(); - targetRow.SetIcon(devImgPath); - targetRow.SetNameText(devNameText); - targetRow.SetZoneText(HdlRoomLogic.Current.GetRoomNameByDevice(targetDevice.DeviceUI, ",")); - targetRow.SetStatuText(targetDevice.GetDeviceStatu()); - targetRowLayout.AddChidren(targetRow); - if (i == sceneTargetDevicesList.Count - 1) - { - targetRow.HideLine(true); - } - } - else if (targetDevice.Type == 2) - { - devNameText = CommonFormResouce.GetTimeString(targetDevice.DelayTime); - devNameText += Language.StringByID(R.MyInternationalizationString.Later); - var targetRow = new SceneTargetTimeRow(13); - targetRow.Init(); - targetRow.SetTitle(devNameText); - targetRowLayout.AddChidren(targetRow); - if (i == sceneTargetDevicesList.Count - 1) - { - targetRow.HideLine(true); - } - } - else if (targetDevice.Type == 1) - { - devImgPath = "Scene/SceneIcon.png"; - devNameText = targetDevice.SceneName; - - var targetRow = new SceneTargetFunctionRow(13); - targetRow.Init(); - targetRow.SetIcon(devImgPath); - targetRow.SetNameText(devNameText); - targetRow.SetZoneText(HdlSceneLogic.Current.GetZoneById(targetDevice.SceneUI.Id)); - targetRowLayout.AddChidren(targetRow); - if (i == sceneTargetDevicesList.Count - 1) - { - targetRow.HideLine(true); - } - } - - var editBtn = new RowLayoutEditButton(); - targetRowLayout.AddRightView(editBtn); - //缂栬緫璁惧 - editBtn.MouseUpEventHandler += detailMouseUpEventHandler; - var delBtn = new RowLayoutDeleteButton(); - targetRowLayout.AddRightView(delBtn); - //鍒犻櫎璁惧 - delBtn.MouseUpEventHandler += (sender, e) => - { - sceneTargetDevicesList.Remove(targetDevice); - RefreshTargetListView(); - }; - - //璁惧璇︾粏璁剧疆鐣岄潰 - void detailMouseUpEventHandler(object sender, MouseEventArgs e) - { - if (targetDevice.Type == 0) - { - if (targetDevice.DeviceUI == null) - { - return; - } - - ShowSelectAction(targetDevice.DeviceUI, targetDevice); - selectedAction = (selectedDevice) => - { - var targetDeviceUI = sceneTargetDevicesList.Find((obj) => obj.SceneTargetDeviceUIID == selectedDevice.SceneTargetDeviceUIID); - if (targetDeviceUI != null) - { - targetDeviceUI.DeviceUI = selectedDevice.DeviceUI; - targetDeviceUI.TaskList = selectedDevice.TaskList; - } - RefreshTargetListView(); - }; - - } - else if (targetDevice.Type == 2) - { - var delayTimeView = new SelectDelayTime(); - UserView.HomePage.Instance.AddChidren(delayTimeView); - UserView.HomePage.Instance.PageIndex += 1; - delayTimeView.sceneTargetDevice = targetDevice; - delayTimeView.totalSecond = targetDevice.DelayTime; - delayTimeView.Show(); - delayTimeView.selectedTimeAction = (second) => - { - var targetDeviceUI = sceneTargetDevicesList.Find((obj) => obj.SceneTargetDeviceUIID == second.SceneTargetDeviceUIID); - if (targetDeviceUI != null) - { - targetDeviceUI.DelayTime = second.DelayTime; - } - RefreshTargetListView(); - }; - } - else if (targetDevice.Type == 1) - { - var sceneView = new SelectScene(); - UserView.HomePage.Instance.AddChidren(sceneView); - UserView.HomePage.Instance.PageIndex += 1; - sceneView.sceneTargetDevice = targetDevice; - sceneView.sceneUI = targetDevice.SceneUI; - sceneView.currentSceneUI = modifySceneUI; - sceneView.Show(); - sceneView.selectedAction = (selectedScene) => - { - var targetDeviceUI = sceneTargetDevicesList.Find((obj) => obj.SceneTargetDeviceUIID == selectedScene.SceneTargetDeviceUIID); - if (targetDeviceUI != null) - { - targetDeviceUI.SceneName = selectedScene.SceneName; - targetDevice.SceneUI = selectedScene.SceneUI; - targetDevice.ElseScenesId = selectedScene.ElseScenesId; - } - RefreshTargetListView(); - }; - } - } - } - } - } - /// <summary> - /// Show this instance. - /// </summary> - public void Show() - { - Init(); - - AddTop(); - - AddBodyView(); - - } - - #region Add____________________________________ - - /// <summary> - /// Init - /// </summary> - private void Init() - { - - } - - /// <summary> - /// AddTop - /// </summary> - private void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - if (isModify) - { - top.SetTopTitle(R.MyInternationalizationString.EditorScene); - } - else - { - top.SetTopTitle(R.MyInternationalizationString.AddScence); - } - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - } - - /// <summary> - /// AddBodyView - /// </summary> - private void AddBodyView() - { - var bodyScrolView = new VerticalScrolViewLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyScrolView); - - bodyFrameLayout = new FrameLayout() - { - Height = Application.GetRealHeight(1086 + 127), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - bodyScrolView.AddChidren(bodyFrameLayout); - - var imgFL = new FrameLayout - { - Height = Application.GetRealHeight(559), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(imgFL); - - var backGround1 = new ImageView() - { - Y = Application.GetRealHeight(46), - Width = Application.GetMinRealAverage(916), - Height = Application.GetMinRealAverage(487), - Gravity = Gravity.CenterHorizontal, - ImagePath = "Room/Room_Rectangle.png" - }; - imgFL.AddChidren(backGround1); - - backGround = new ImageView() - { - Y = Application.GetRealHeight(46), - Width = Application.GetMinRealAverage(887), - Height = Application.GetMinRealAverage(444), - Gravity = Gravity.CenterHorizontal, - Radius = (uint)Application.GetMinRealAverage(CommonFormResouce.BigFormRadius), - ImagePath = "SceneIcon/3.png" - }; - imgFL.AddChidren(backGround); - - var infoFL = new FrameLayout - { - Y = imgFL.Bottom + Application.GetRealHeight(23), - Height = Application.GetRealHeight(418), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(infoFL); - - var infoEdit = new Button - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(130), - Width = Application.GetRealWidth(700), - TextID = R.MyInternationalizationString.EditInfo, - TextColor = ZigbeeColor.Current.GXCTextDeepBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize = 15, - //IsBold=true - }; - infoFL.AddChidren(infoEdit); - - - var nameRow = new DeviceInfoEditRow(130); - nameRow.Init(); - nameRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.SceneName)}:"); - nameRow.SetPlaceHoldText(R.MyInternationalizationString.PleaseInputSceneName); - infoFL.AddChidren(nameRow); - - var zoneRow = new DeviceInfoRow(257); - zoneRow.Y = nameRow.Bottom + Application.GetRealHeight(14); - zoneRow.Init(); - zoneRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.BelongZone)}:"); - //zoneRow.SetTitle(curRoom.Name); - infoFL.AddChidren(zoneRow); - zoneRow.HideLine(true); - - var targetFL = new FrameLayout() - { - Y = infoFL.Bottom + Application.GetRealHeight(23), - Height = Application.GetRealHeight(346) - }; - bodyFrameLayout.AddChidren(targetFL); - - var targetBG = new FrameLayout - { - Height = Application.GetRealHeight(334), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - targetFL.AddChidren(targetBG); - - var addTargetFL = new FrameLayout - { - Y = Application.GetRealHeight(46), - Height = Application.GetRealHeight(127), - }; - targetFL.AddChidren(addTargetFL); - - var target = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(127) - 1, - Width = Application.GetRealWidth(600), - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextID = R.MyInternationalizationString.AddScentTargetAction, - Gravity = Gravity.CenterVertical, - TextSize = 15 - }; - addTargetFL.AddChidren(target); - - var targetAdd = new Button - { - X = Application.GetRealWidth(950), - Y = Application.GetRealHeight(46), - Width = Application.GetMinRealAverage(72), - Height = Application.GetMinRealAverage(72), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/Add.png", - }; - addTargetFL.AddChidren(targetAdd); - var targetLine = new Button() - { - Y = target.Bottom, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - addTargetFL.AddChidren(targetLine); - - TargetListScrolView = new FrameLayout() - { - Height = Application.GetRealHeight(173) - }; - bodyScrolView.AddChidren(TargetListScrolView); - - - - confirmBtn = new CommonForm.CompleteButton(1656, 907, 127); - confirmBtn.TextID = R.MyInternationalizationString.uFinish; - AddChidren(confirmBtn); - - if (isModify) - { - IconPathType = modifySceneUI.IconPathType; - OldIconPathType = modifySceneUI.IconPathType; - if (IconPathType != 0) - { - OldBackgroundImagePath = modifySceneUI.IconPath; - } - if (modifySceneUI.IconPathType == 0) - { - backGround.ImagePath = modifySceneUI.IconPath; - } - else - { - backGround.ImagePath = System.IO.Path.Combine(Config.Instance.FullPath, modifySceneUI.IconPath); - } - nameRow.SetTitle(modifySceneUI.Name); - if (Config.Instance.Home.FloorDics.Count == 0) - { - zoneRow.SetTitle($"{modifyRoom.Name}"); - } - else - { - zoneRow.SetTitle($"{Config.Instance.Home.GetFloorNameById(modifyRoom.FloorId)}锛寋modifyRoom.Name}"); - } - curRoom = modifyRoom; - sceneTargetDevicesList.AddRange(modifySceneTargetDevicesList); - } - - RefreshTargetListView(); - - #region event - - EventHandler<MouseEventArgs> backGroundIMGHander = (sender, e) => - { - if (curRoom != null && curRoom.IsSharedRoom) - { - RoomCommon.ShowTipRoomIsShared(); - return; - } - - int selectRow_Height = 150; - int selectRow_Width = 1034; - var selectFL = new FrameLayout() - { - BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor - }; - AddChidren(selectFL); - - var itemFL = new FrameLayout() - { - Y = Application.GetRealHeight(1276), - Height = Application.GetRealHeight(450), - Width = Application.GetRealWidth(selectRow_Width), - Gravity = Gravity.CenterHorizontal, - Radius = (uint)Application.GetRealHeight(35), - BackgroundColor = ZigbeeColor.Current.GXCTextWhiteColor - }; - selectFL.AddChidren(itemFL); - //itemFL.Animate = Animate.DownToUp; - - var selectLocalPicture = new Button() - { - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.LocalPicture, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectLocalPicture); - var selectLocalLine = new Button() - { - Y = selectLocalPicture.Bottom, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - itemFL.AddChidren(selectLocalLine); - - var selectPhotographBtn = new Button() - { - Y = selectLocalLine.Bottom, - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.Photograph, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectPhotographBtn); - var selectPhotographLine = new Button() - { - Y = selectPhotographBtn.Bottom, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - itemFL.AddChidren(selectPhotographLine); - - var selectAblumsBtn = new Button() - { - Y = selectPhotographLine.Bottom, - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.MyAblums, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectAblumsBtn); - - var cancelBtn = new Button() - { - Y = Application.GetRealHeight(1742), - Height = Application.GetRealHeight(selectRow_Height), - Width = Application.GetRealWidth(selectRow_Width), - Gravity = Gravity.CenterHorizontal, - TextID = R.MyInternationalizationString.Cancel, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - BackgroundColor = ZigbeeColor.Current.GXCTextWhiteColor, - Radius = (uint)Application.GetRealHeight(35), - TextSize = 17 - }; - selectFL.AddChidren(cancelBtn); - - selectLocalPicture.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var localPic = new CategorySceneSelectImgByLocal(); - Shared.Phone.UserView.HomePage.Instance.AddChidren(localPic); - Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; - localPic.Show(); - localPic.action = (imgPath) => - { - IconPathType = 0; - backGround.ImageBytes = null; - backGround.ImagePath = imgPath; - }; - }; - selectPhotographBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); - var fileName = $"SceneIcon_{tradeTime}.png"; - //閫氳繃鐩告満鎷嶇収瑁佸壀 - CropImage.TakePicture((imagePath) => - { - if (string.IsNullOrEmpty(imagePath)) - { - return; - } - if (isModify) - { - if (IconPathType != 0) - { - Global.DeleteFilebyHomeId(backGround.ImagePath); - HdlAutoBackupLogic.DeleteFile(backGround.ImagePath); - } - } - - IconPathType = 1; - backGround.ImageBytes = Shared.IO.FileUtils.ReadFile(imagePath); - backGround.ImagePath = imagePath; - System.IO.File.Delete(imagePath); - - }, fileName, 2, 1); - }; - - selectAblumsBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); - var fileName = $"SceneIcon_{tradeTime}.png"; - //浠庣浉鍐岄�夋嫨鍥剧墖瑁佸壀 - CropImage.SelectPicture((imagePath) => - { - if (string.IsNullOrEmpty(imagePath)) - { - return; - } - if (isModify) - { - if (IconPathType != 0) - { - Global.DeleteFilebyHomeId(backGround.ImagePath); - HdlAutoBackupLogic.DeleteFile(backGround.ImagePath); - } - } - - IconPathType = 2; - backGround.ImageBytes = Shared.IO.FileUtils.ReadFile(imagePath); - backGround.ImagePath = imagePath; - System.IO.File.Delete(imagePath); - - }, fileName, 2, 1); - }; - - cancelBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - }; - selectFL.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - }; - }; - backGround.MouseUpEventHandler += backGroundIMGHander; - - //鍖哄煙 - EventHandler<MouseEventArgs> zoneHander = (sender, e) => - { - var zone = new SelectZone(); - zone.Init(); - zone.ZoneAction += (selectRoom) => - { - curRoom = selectRoom; - zoneRow.SetTitle(HdlRoomLogic.Current.GetZoneName(selectRoom)); - }; - }; - zoneRow.ClickBtn.MouseUpEventHandler += zoneHander; - - //鎵ц鐩爣-娣诲姞鎵ц璁惧 - EventHandler<MouseEventArgs> targetAddHander = (sender, e) => - { - - //if (curRoom == null) - //{ - // RoomCommon.ShowTipNoRoom(); - // return; - //} - if (curRoom != null) - { - if (curRoom.IsSharedRoom) - { - RoomCommon.ShowTipRoomIsShared(); - return; - } - } - - int selectRow_Height = 150; - int selectRow_Width = 1034; - var selectFL = new FrameLayout() - { - BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor - }; - AddChidren(selectFL); - - var itemFL = new FrameLayout() - { - Y = Application.GetRealHeight(1276), - Height = Application.GetRealHeight(450), - Width = Application.GetRealWidth(selectRow_Width), - Gravity = Gravity.CenterHorizontal, - Radius = (uint)Application.GetRealHeight(35), - BackgroundColor = ZigbeeColor.Current.GXCTextWhiteColor - }; - selectFL.AddChidren(itemFL); - //itemFL.Animate = Animate.DownToUp; - - var selectedFunctionBtn = new Button() - { - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.Function, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectedFunctionBtn); - var selectedFunctionLine = new Button() - { - Y = selectedFunctionBtn.Bottom, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - itemFL.AddChidren(selectedFunctionLine); - - var selectedSceneBtn = new Button() - { - Y = selectedFunctionLine.Bottom, - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.Scence, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectedSceneBtn); - var selectedSceneLine = new Button() - { - Y = selectedSceneBtn.Bottom, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - itemFL.AddChidren(selectedSceneLine); - - var selectedTimerBtn = new Button() - { - Y = selectedSceneLine.Bottom, - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.Delay, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectedTimerBtn); - - - var cancelBtn = new Button() - { - Y = Application.GetRealHeight(1742), - Height = Application.GetRealHeight(selectRow_Height), - Width = Application.GetRealWidth(selectRow_Width), - Gravity = Gravity.CenterHorizontal, - TextID = R.MyInternationalizationString.Cancel, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - BackgroundColor = ZigbeeColor.Current.GXCTextWhiteColor, - Radius = (uint)Application.GetRealHeight(35), - TextSize = 17 - }; - selectFL.AddChidren(cancelBtn); - - //娣诲姞鍔熻兘 - selectedFunctionBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var deviceView = new SelectDevice(); - UserView.HomePage.Instance.AddChidren(deviceView); - UserView.HomePage.Instance.PageIndex += 1; - deviceView.beforeSceneTargetDeviceUIs = sceneTargetDevicesList; - deviceView.Show(); - deviceView.selectedAction = (selectedDevice) => - { - sceneTargetDevicesList.Add(selectedDevice); - RefreshTargetListView(); - }; - }; - //娣诲姞鍦烘櫙 - selectedSceneBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var sceneView = new SelectScene(); - UserView.HomePage.Instance.AddChidren(sceneView); - UserView.HomePage.Instance.PageIndex += 1; - sceneView.beforeSceneTargetDeviceUIs = sceneTargetDevicesList; - sceneView.currentSceneUI = modifySceneUI; - sceneView.Show(); - sceneView.selectedAction = (selectedScene) => - { - sceneTargetDevicesList.Add(selectedScene); - RefreshTargetListView(); - }; - - }; - //娣诲姞鏃堕棿闂撮殧 - selectedTimerBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var delayTimeView = new SelectDelayTime(); - UserView.HomePage.Instance.AddChidren(delayTimeView); - UserView.HomePage.Instance.PageIndex += 1; - delayTimeView.Show(); - delayTimeView.selectedTimeAction = (second) => - { - sceneTargetDevicesList.Add(second); - RefreshTargetListView(); - }; - }; - - cancelBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - }; - selectFL.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - }; - }; - targetAdd.MouseUpEventHandler += targetAddHander; - targetFL.MouseUpEventHandler += targetAddHander; - target.MouseUpEventHandler += targetAddHander; - addTargetFL.MouseUpEventHandler += targetAddHander; - //纭畾娣诲姞鐩爣 - confirmBtn.MouseUpEventHandler += async (sender, e) => - { - if (curRoom == null) - { - RoomCommon.ShowTipNoRoom(); - return; - } - if (curRoom.IsSharedRoom) - { - RoomCommon.ShowTipRoomIsShared(); - return; - } - - if (isModify) - { - if (string.IsNullOrEmpty(nameRow.NameText.Text)) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.SceneNameCannotBeNull)); - return; - } - else - { - try - { - var tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); - var fileName = $"SceneIcon_{tradeTime}.png"; - if (modifySceneUI.Name != nameRow.NameText.Text.Trim()) - { - if (HdlSceneLogic.Current.GetSameFloorScenes(curRoom.FloorId).Find(s => s.Name == nameRow.NameText.Text.Trim()) != null) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.TheSceneHadExist)); - return; - } - var r = await ZigBee.Device.Scene.RenameSceneAsync(modifySceneUI.Id, nameRow.NameText.Text.Trim()); - var reName = r.sceneRenameResponseData.Result; - if (reName == 0) - { - return; - } - else if (reName == 1) - { - modifySceneUI.Name = nameRow.NameText.Text.Trim(); - - } - else if (reName == 2) - { - return; - } - } - if (OldIconPathType != 0) - { - Shared.IO.FileUtils.DeleteFile(System.IO.Path.Combine(Config.Instance.FullPath, OldBackgroundImagePath)); - HdlAutoBackupLogic.DeleteFile(OldBackgroundImagePath); - } - if (IconPathType == 1 || IconPathType == 2) - { - Shared.IO.FileUtils.WriteFileByBytes(System.IO.Path.Combine(Config.Instance.FullPath, fileName), backGround.ImageBytes); - HdlAutoBackupLogic.AddOrEditorFile(fileName); - modifySceneUI.IconPath = fileName; - } - else - { - modifySceneUI.IconPath = backGround.ImagePath; - } - modifySceneUI.IconPathType = IconPathType; - - CommonPage.Loading.Start(); - var memberDataList = new List<ZigBee.Device.Scene.AddSceneMemberData>(); - for (int i = 0; i < sceneTargetDevicesList.Count; i++) - { - var sceneTarget = sceneTargetDevicesList[i]; - - if (sceneTarget.Type == 0) - { - if (sceneTarget.DeviceUI == null) - { - continue; - } - var memberData = new AddSceneMemberData - { - Type = 0, - ScenesId = 0, - DeviceAddr = sceneTarget.DeviceUI.DeviceAddr, - Epoint = sceneTarget.DeviceUI.DeviceEpoint, - TaskList = sceneTarget.TaskList, - DelayTime = 0, - MemberNumber = i + 1 - }; - memberDataList.Add(memberData); - } - else if (sceneTarget.Type == 1) - { - var memberData = new AddSceneMemberData - { - Type = 1, - ScenesId = 0, - ElseScenesId = sceneTarget.ElseScenesId, - DelayTime = 0, - MemberNumber = i + 1 - }; - memberDataList.Add(memberData); - } - else if (sceneTarget.Type == 2) - { - var memberData = new AddSceneMemberData - { - Type = 2, - ScenesId = 0, - DelayTime = sceneTarget.DelayTime, - MemberNumber = i + 1 - }; - memberDataList.Add(memberData); - } - } - - var sceneRemoveMemberData = new SceneRemoveMemberData { }; - var removeSceneDeviceListInfoList = new List<RemoveSceneDeviceListInfo> { }; - for (int i = 0; i < modifySceneTargetDevicesList.Count; i++) - { - var sceneTarget = modifySceneTargetDevicesList[i]; - if (sceneTarget.Type == 0) - { - if (sceneTarget.DeviceUI == null) - { - continue; - } - var removeDevice = new RemoveSceneDeviceListInfo - { - Type = 0, - DeviceAddr = sceneTarget.DeviceUI.DeviceAddr, - Epoint = sceneTarget.DeviceUI.DeviceEpoint, - MemberNumber = sceneTarget.DelayTimeSerialNumber - }; - removeSceneDeviceListInfoList.Add(removeDevice); - } - else if (sceneTarget.Type == 1) - { - var removeDevice = new ZigBee.Device.Scene.RemoveSceneDeviceListInfo - { - Type = 1, - ElseScenesId = sceneTarget.ElseScenesId, - MemberNumber = sceneTarget.DelayTimeSerialNumber - }; - removeSceneDeviceListInfoList.Add(removeDevice); - } - else - { - var removeDevice = new ZigBee.Device.Scene.RemoveSceneDeviceListInfo - { - Type = 2, - DelayTime = sceneTarget.DelayTime, - MemberNumber = sceneTarget.DelayTimeSerialNumber - }; - removeSceneDeviceListInfoList.Add(removeDevice); - } - } - sceneRemoveMemberData.DeviceList = removeSceneDeviceListInfoList; - sceneRemoveMemberData.ScenesId = modifySceneUI.Id; - //var result = await HdlSceneLogic.Current.ModifyScene(modifySceneUI, sceneRemoveMemberData, memberDataList); - //if (result == 1) - //{ - // if (modifyRoom != curRoom) - // { - // modifyRoom.ListSceneId.Remove(modifySceneUI.Id); - // curRoom.ListSceneId.Add(modifySceneUI.Id); - // modifyRoom.Save(); - // curRoom.Save(); - // } - // EditorAction?.Invoke(modifySceneUI, curRoom); - // RemoveFromParent(); - //} - //else if (result == 0) - //{ - // CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.FailedPleaseTryAgain)); - //} - //else if (result == -1) - //{ - // CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.TheSceneHadExist)); - //} - } - catch (Exception ex) - { - System.Console.WriteLine($"鍒嗙被娣诲姞鍦烘櫙鍑洪敊{ex.Message}"); - } - finally - { - CommonPage.Loading.Hide(); - } - } - } - else - { - //鏂板 - if (string.IsNullOrEmpty(nameRow.NameText.Text)) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.SceneNameCannotBeNull)); - return; - } - else - { - try - { - var tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); - var fileName = $"SceneIcon_{tradeTime}.png"; - string imgPath; - if (IconPathType == 1 || IconPathType == 2) - { - Shared.IO.FileUtils.WriteFileByBytes(System.IO.Path.Combine(Config.Instance.FullPath, fileName), backGround.ImageBytes); - HdlAutoBackupLogic.AddOrEditorFile(fileName); - imgPath = fileName; - } - else - { - imgPath = backGround.ImagePath; - } - //if (Common.Room.CurrentRoom.GetSameFloorScenes(curRoom.FloorId).Find(s => s.Name == nameRow.NameText.Text.Trim()) != null) - //{ - // CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.TheSceneHadExist)); - // return; - //} - CommonPage.Loading.Start(); - var memberDataList = new List<ZigBee.Device.Scene.AddSceneMemberData>(); - for (int i = 0; i < sceneTargetDevicesList.Count; i++) - { - var sceneTarget = sceneTargetDevicesList[i]; - - if (sceneTarget.Type == 0) - { - if (sceneTarget.DeviceUI == null) - { - continue; - } - var memberData = new AddSceneMemberData - { - Type = 0, - ScenesId = 0, - DeviceAddr = sceneTarget.DeviceUI.DeviceAddr, - Epoint = sceneTarget.DeviceUI.DeviceEpoint, - TaskList = sceneTarget.TaskList, - DelayTime = 0, - MemberNumber = i + 1 - }; - memberDataList.Add(memberData); - } - else if (sceneTarget.Type == 1) - { - var memberData = new AddSceneMemberData - { - Type = 1, - ScenesId = 0, - ElseScenesId = sceneTarget.ElseScenesId, - DelayTime = 0, - MemberNumber = i + 1 - }; - memberDataList.Add(memberData); - } - else if (sceneTarget.Type == 2) - { - var memberData = new AddSceneMemberData - { - Type = 2, - ScenesId = 0, - DelayTime = sceneTarget.DelayTime, - MemberNumber = i + 1 - }; - memberDataList.Add(memberData); - } - } - - //var result = await HdlSceneLogic.Current.AddScene(curRoom, nameRow.NameText.Text, imgPath, memberDataList, IconPathType); - //if (result == 1) - //{ - // AddAction?.Invoke(); - // RemoveFromParent(); - //} - //else if (result == 0) - //{ - // CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.AddSceneFail)); - //} - //else if (result == -1) - //{ - // CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.TheSceneHadExist)); - //} - } - catch (Exception ex) - { - System.Console.WriteLine($"鍒嗙被娣诲姞鍦烘櫙鍑洪敊{ex.Message}"); - } - finally - { - CommonPage.Loading.Hide(); - } - } - } - - }; - #endregion - } - - #endregion - - #region 缂栬緫璁惧____________________________________ - - /// <summary> - /// ShowSelectAction - /// </summary> - /// <param name="device"></param> - private void ShowSelectAction(CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var dialog = new FrameLayout() - { - BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor - }; - AddChidren(dialog); - - dialog.MouseUpEventHandler += (sender, e) => - { - dialog.RemoveFromParent(); - }; - - if (device.Type == ZigBee.Device.DeviceType.OnOffOutput) - { - SelectOnoffOutput(dialog, device, sceneTarget); - } - else if (device.Type == ZigBee.Device.DeviceType.AirSwitch) - { - SelectOnoffOutput(dialog, device, sceneTarget); - } - else if (device.Type == ZigBee.Device.DeviceType.DimmableLight) - { - SelectDimmableLight(dialog, device, sceneTarget); - } - else if (device.Type == ZigBee.Device.DeviceType.WindowCoveringDevice) - { - SelectWindowCoveringDevice(dialog, device, sceneTarget); - } - else if (device.Type == ZigBee.Device.DeviceType.Thermostat) - { - SelectThermostat(dialog, device, sceneTarget); - } - } - - /// <summary> - /// 鐏厜 - /// </summary> - /// <param name="dialog"></param> - /// <param name="device"></param> - /// <param name="sceneTarget"></param> - private void SelectOnoffOutput(FrameLayout dialog, CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var selectFL = new FrameLayout - { - Y = Application.GetRealHeight(1391), - Height = Application.GetRealHeight(530), - }; - dialog.AddChidren(selectFL); - //selectFL.Animate = Animate.DownToUp; - - var titleBG = new FrameLayout - { - Height = Application.GetRealHeight(138 * 2), - Radius = (uint)Application.GetRealHeight(58), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(titleBG); - - var titleFL = new FrameLayout - { - Height = Application.GetRealHeight(138), - }; - selectFL.AddChidren(titleFL); - - var line = new Button - { - Y = titleFL.Height - 1, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - titleFL.AddChidren(line); - - var cancleBtn = new Button - { - X = Application.GetRealWidth(80), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Cancel - }; - titleFL.AddChidren(cancleBtn); - - var deviceName = new Button - { - Width = Application.GetRealWidth(600), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 16, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device) - }; - titleFL.AddChidren(deviceName); - - var comfrimBtn = new Button - { - X = Application.GetRealWidth(800), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextSize = 14, - TextAlignment = TextAlignment.CenterRight, - TextID = R.MyInternationalizationString.Complete - }; - titleFL.AddChidren(comfrimBtn); - - var itemFL = new FrameLayout - { - Y = titleFL.Bottom, - Height = Application.GetRealHeight(392), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(itemFL); - - var open = new SelectSceneStatuRow(0, 60); - itemFL.AddChidren(open); - open.Init(); - open.SetTitle(R.MyInternationalizationString.Open); - open.IsSelected = true; - - - var shut = new SelectSceneStatuRow(0, 60 + 127 + 30); - itemFL.AddChidren(shut); - shut.Init(); - shut.hideLine(true); - shut.SetTitle(R.MyInternationalizationString.Shut); - - open.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - }; - - shut.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = false; - shut.IsSelected = true; - }; - - cancleBtn.MouseUpEventHandler = (sender, e) => - { - dialog.RemoveAll(); - dialog.RemoveFromParent(); - }; - - if (sceneTarget.TaskList.Count > 0) - { - if (sceneTarget.TaskList[0].Data1 == 1) - { - open.IsSelected = true; - shut.IsSelected = false; - } - else - { - open.IsSelected = false; - shut.IsSelected = true; - } - } - - comfrimBtn.MouseUpEventHandler = (sender, e) => - { - var taskList = new List<Safeguard.TaskListInfo> { }; - int taskType = 1; - int data1 = 0; - int data2 = 0; - - if (open.IsSelected) - { - //寮� - data1 = 1; - data2 = 0; - } - else - { - //鍏� - data1 = 0; - data2 = 0; - } - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = data1, - Data2 = data2 - }; - taskList.Add(taskInfo); - - sceneTarget.TaskList = taskList; - sceneTarget.DeviceUI = device; - selectedAction?.Invoke(sceneTarget); - dialog.RemoveFromParent(); - }; - } - /// <summary> - /// 绐楀笜 - /// </summary> - /// <param name="dialog"></param> - /// <param name="device"></param> - /// <param name="sceneTarget"></param> - private void SelectWindowCoveringDevice(FrameLayout dialog, CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var selectFL = new FrameLayout - { - Y = Application.GetRealHeight(1169), - Height = Application.GetRealHeight(752), - }; - dialog.AddChidren(selectFL); - //selectFL.Animate = Animate.DownToUp; - - var titleBG = new FrameLayout - { - Height = Application.GetRealHeight(138 * 2), - Radius = (uint)Application.GetRealHeight(58), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(titleBG); - - var titleFL = new FrameLayout - { - Height = Application.GetRealHeight(138), - }; - selectFL.AddChidren(titleFL); - - var line = new Button - { - Y = titleFL.Height - 1, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - titleFL.AddChidren(line); - - var cancleBtn = new Button - { - X = Application.GetRealWidth(80), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Cancel - }; - titleFL.AddChidren(cancleBtn); - - var deviceName = new Button - { - Width = Application.GetRealWidth(600), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 16, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device) - }; - titleFL.AddChidren(deviceName); - - var comfrimBtn = new Button - { - X = Application.GetRealWidth(800), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextSize = 14, - TextAlignment = TextAlignment.CenterRight, - TextID = R.MyInternationalizationString.Complete - }; - titleFL.AddChidren(comfrimBtn); - - var itemFL = new FrameLayout - { - Y = titleFL.Bottom, - Height = Application.GetRealHeight(613), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(itemFL); - - var open = new SelectDeviceWithSeekBarRow(0, 60); - itemFL.AddChidren(open); - open.Init(); - open.SetTitle(R.MyInternationalizationString.Open); - open.IsSelected = true; - - var shut = new SelectSceneStatuRow(0, 60 + 348 + 30); - itemFL.AddChidren(shut); - shut.Init(); - shut.hideLine(true); - shut.SetTitle(R.MyInternationalizationString.Shut); - - open.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - }; - - shut.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = false; - shut.IsSelected = true; - }; - - cancleBtn.MouseUpEventHandler = (sender, e) => - { - dialog.RemoveAll(); - dialog.RemoveFromParent(); - }; - - open.SeekBar.OnProgressChangedEvent += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - open.SetSeekBarTitle(); - }; - - if (sceneTarget.TaskList.Count > 0) - { - if (sceneTarget.TaskList[0].Data1 == 1) - { - open.IsSelected = false; - shut.IsSelected = true; - } - else - { - open.IsSelected = true; - shut.IsSelected = false; - open.SetSeekBarProgress(sceneTarget.TaskList[0].Data2); - } - } - - comfrimBtn.MouseUpEventHandler = (sender, e) => - { - var taskList = new List<Safeguard.TaskListInfo> { }; - - int taskType = 6; - int data1 = 0; - int data2 = 0; - - if (shut.IsSelected) - { - //鍏� - data1 = 1; - data2 = 0; - } - else - { - //鐧惧垎姣� - data1 = 5; - data2 = open.SeekBar.Progress; - } - - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = data1, - Data2 = data2 - }; - taskList.Add(taskInfo); - - sceneTarget.TaskList = taskList; - sceneTarget.DeviceUI = device; - selectedAction?.Invoke(sceneTarget); - dialog.RemoveFromParent(); - }; - } - /// <summary> - /// 璋冨厜鐏� - /// </summary> - /// <param name="dialog"></param> - /// <param name="device"></param> - /// <param name="sceneTarget"></param> - private void SelectDimmableLight(FrameLayout dialog, CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var selectFL = new FrameLayout - { - Y = Application.GetRealHeight(1169), - Height = Application.GetRealHeight(752), - }; - dialog.AddChidren(selectFL); - //selectFL.Animate = Animate.DownToUp; - - var titleBG = new FrameLayout - { - Height = Application.GetRealHeight(138 * 2), - Radius = (uint)Application.GetRealHeight(58), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(titleBG); - - var titleFL = new FrameLayout - { - Height = Application.GetRealHeight(138), - }; - selectFL.AddChidren(titleFL); - - var line = new Button - { - Y = titleFL.Height - 1, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - titleFL.AddChidren(line); - - var cancleBtn = new Button - { - X = Application.GetRealWidth(80), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Cancel - }; - titleFL.AddChidren(cancleBtn); - - var deviceName = new Button - { - Width = Application.GetRealWidth(600), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 16, - TextAlignment = TextAlignment.CenterLeft, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device) - }; - titleFL.AddChidren(deviceName); - - var comfrimBtn = new Button - { - X = Application.GetRealWidth(800), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextSize = 14, - TextAlignment = TextAlignment.CenterRight, - TextID = R.MyInternationalizationString.Complete - }; - titleFL.AddChidren(comfrimBtn); - - var itemFL = new FrameLayout - { - Y = titleFL.Bottom, - Height = Application.GetRealHeight(613), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(itemFL); - - var open = new SelectDeviceWithSeekBarRow(0, 60); - itemFL.AddChidren(open); - open.Init(254); - open.SetTitle(R.MyInternationalizationString.Open); - open.IsSelected = true; - - var shut = new SelectSceneStatuRow(0, 60 + 348 + 30); - itemFL.AddChidren(shut); - shut.Init(); - shut.hideLine(true); - shut.SetTitle(R.MyInternationalizationString.Shut); - - open.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - }; - - shut.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = false; - shut.IsSelected = true; - }; - - cancleBtn.MouseUpEventHandler = (sender, e) => - { - dialog.RemoveAll(); - dialog.RemoveFromParent(); - }; - - open.SeekBar.OnProgressChangedEvent += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - open.SetSeekBarTitle(); - }; - - if (sceneTarget.TaskList.Count > 0) - { - if (sceneTarget.TaskList[0].Data1 == 0) - { - open.IsSelected = false; - shut.IsSelected = true; - } - else - { - open.IsSelected = true; - shut.IsSelected = false; - open.SetSeekBarProgress(sceneTarget.TaskList[0].Data1); - } - } - - comfrimBtn.MouseUpEventHandler = (sender, e) => - { - var taskList = new List<Safeguard.TaskListInfo> { }; - - int taskType = 3; - int data1 = 0; - int data2 = 0; - - if (shut.IsSelected) - { - //鍏� - data1 = 0; - data2 = 0; - } - else - { - //鐧惧垎姣� - data1 = open.SeekBar.Progress; - data2 = 0; - } - - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = data1, - Data2 = data2 - }; - taskList.Add(taskInfo); - - sceneTarget.TaskList = taskList; - sceneTarget.DeviceUI = device; - selectedAction?.Invoke(sceneTarget); - dialog.RemoveFromParent(); - }; - } - /// <summary> - /// 绌鸿皟 - /// </summary> - /// <param name="dialog"></param> - /// <param name="device"></param> - /// <param name="sceneTarget"></param> - private void SelectThermostat(FrameLayout dialog, CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - /// 娓╁害 - int tempId = 0; - /// 妯″紡 - int modelId = 0; - /// 椋庨�� - int fanid = 0; - - var selectFL = new FrameLayout - { - Y = Application.GetRealHeight(815), - Height = Application.GetRealHeight(1106), - }; - dialog.AddChidren(selectFL); - //selectFL.Animate = Animate.DownToUp; - - var titleBG = new FrameLayout - { - Height = Application.GetRealHeight(138 * 2), - Radius = (uint)Application.GetRealHeight(58), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(titleBG); - - var titleFL = new FrameLayout - { - Height = Application.GetRealHeight(138), - }; - selectFL.AddChidren(titleFL); - - var line = new Button - { - Y = titleFL.Height - 1, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - titleFL.AddChidren(line); - - var cancleBtn = new Button - { - X = Application.GetRealWidth(80), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Cancel - }; - titleFL.AddChidren(cancleBtn); - - var deviceName = new Button - { - Width = Application.GetRealWidth(600), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 16, - TextAlignment = TextAlignment.CenterLeft, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device) - }; - titleFL.AddChidren(deviceName); - - var comfrimBtn = new Button - { - X = Application.GetRealWidth(800), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextSize = 14, - TextAlignment = TextAlignment.CenterRight, - TextID = R.MyInternationalizationString.Complete - }; - titleFL.AddChidren(comfrimBtn); - - var itemFL = new FrameLayout - { - Y = titleFL.Bottom, - Height = Application.GetRealHeight(968), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(itemFL); - - var open = new SelectDeviceWithPickViewRow(0, 60); - itemFL.AddChidren(open); - open.Init(); - open.SetTitle(R.MyInternationalizationString.Open); - open.IsSelected = true; - - open.pickerView.OnSelectChangeEvent = (l1, l2, l3) => - { - tempId = l1; - modelId = l2; - fanid = l3; - }; - - var shut = new SelectSceneStatuRow(0, 60 + 703 + 30); - itemFL.AddChidren(shut); - shut.Init(); - shut.hideLine(true); - shut.SetTitle(R.MyInternationalizationString.Shut); - - open.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - }; - - shut.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = false; - shut.IsSelected = true; - }; - - cancleBtn.MouseUpEventHandler = (sender, e) => - { - dialog.RemoveAll(); - dialog.RemoveFromParent(); - }; - - if (sceneTarget.TaskList.Count > 0) - { - if (sceneTarget.TaskList.Count == 1) - { - open.IsSelected = false; - shut.IsSelected = true; - } - else - { - open.IsSelected = true; - shut.IsSelected = false; - - for (int i = 0; i < sceneTarget.TaskList.Count; i++) - { - var tasklist = sceneTarget.TaskList[i]; - if (tasklist.Data1 == 6) - { - fanid = open.fanList.IndexOf(tasklist.Data2); - } - if (tasklist.Data1 == 3) - { - modelId = open.modeList.IndexOf(tasklist.Data2); - } - if (tasklist.Data1 == 4 || tasklist.Data1 == 5) - { - tempId = open.temperatureList.IndexOf(tasklist.Data2 / 100); - } - } - open.pickerView.setCurrentItems(tempId, modelId, fanid); - } - } - - comfrimBtn.MouseUpEventHandler = (sender, e) => - { - - var taskList = new List<Safeguard.TaskListInfo> { }; - - int taskType = 5; - int data1 = 0; - int data2 = 0; - - if (shut.IsSelected) - { - //鍏� - data1 = 3; - data2 = 0; - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = data1, - Data2 = data2 - }; - taskList.Add(taskInfo); - } - else - { - //fan - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = 6, - Data2 = open.fanList[fanid] - }; - taskList.Add(taskInfo); - - //mode - var taskInfo2 = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = 3, - Data2 = open.modeList[modelId] - }; - taskList.Add(taskInfo2); - - //tem - if (open.modeList[modelId] == 4) - { - //heat - var taskInfo3 = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = 4, - Data2 = open.temperatureList[tempId] * 100 - }; - taskList.Add(taskInfo3); - - } - else - { - //heat - var taskInfo3 = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = 5, - Data2 = open.temperatureList[tempId] * 100 - }; - taskList.Add(taskInfo3); - } - } - - sceneTarget.TaskList = taskList; - sceneTarget.DeviceUI = device; - selectedAction?.Invoke(sceneTarget); - dialog.RemoveFromParent(); - }; - } - - #endregion - - } -} \ No newline at end of file diff --git a/ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs b/ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs deleted file mode 100755 index 15e3c8f..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs +++ /dev/null @@ -1,108 +0,0 @@ -锘縰sing System; -using Shared.Common; -using Shared.Phone.Device.CommonForm; - -namespace Shared.Phone.Device.Category -{ - public class CategorySceneSelectImgByLocal:FrameLayout - { - - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - - public Action<string> action; - - public CategorySceneSelectImgByLocal() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - public override void RemoveFromParent() - { - base.RemoveFromParent(); - } - - public void Show() - { - - AddTop(); - - AddBodyView(); - } - - - #region Add____________________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.SelectScenePic); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - } - - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView() - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - AddChidren(bodyFrameLayout); - - //FunctionIconButton - var scrollView = new VerticalScrolViewLayout() - { - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - bodyFrameLayout.AddChidren(scrollView); - - int k = 0; - for (int j = 0; j < 7; j++) - { - var itemView = new FrameLayout() - { - Height = Application.GetRealHeight(311 + 58) - }; - scrollView.AddChidren(itemView); - for (int i = 0; i < 2; i++) - { - var icon = new ImageView() - { - X=Application.GetRealWidth(58+i*(467+32)), - Y=Application.GetRealHeight(58), - Width=Application.GetRealWidth(467), - Height=Application.GetRealHeight(311), - ImagePath = $"SceneIcon/{k}.png", - Radius =(uint)Application.GetRealHeight(17) - }; - itemView.AddChidren(icon); - icon.SetViewShadow(true); - k++; - - EventHandler<MouseEventArgs> selectIcon = (sender, e) => - { - action?.Invoke(icon.ImagePath); - action = null; - this.RemoveFromParent(); - }; - icon.MouseUpEventHandler += selectIcon; - } - } - } - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Category/SelectDelayTime.cs b/ZigbeeApp/Shared/Phone/Device/Category/SelectDelayTime.cs deleted file mode 100755 index 7e3008e..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Category/SelectDelayTime.cs +++ /dev/null @@ -1,212 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; - -namespace Shared.Phone.Device.Category -{ - public class SelectDelayTime : FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// totalSecond - /// </summary> - public int totalSecond; - /// <summary> - /// selectedTimeAction - /// </summary> - public Action<SceneTargetDeviceUI> selectedTimeAction; - - #endregion - - /// <summary> - /// SelectDelayTime - /// </summary> - public SelectDelayTime() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - //Tag = "categoryAddScene"; - } - /// <summary> - /// RemoveFromParent - /// </summary> - public override void RemoveFromParent() - { - base.RemoveFromParent(); - } - /// <summary> - /// sceneTargetDevice - /// </summary> - public SceneTargetDeviceUI sceneTargetDevice; - - /// <summary> - /// Show - /// </summary> - public void Show() - { - if (sceneTargetDevice == null) - { - sceneTargetDevice = new SceneTargetDeviceUI { Type = 2 }; - } - AddTop(); - - AddBodyView(); - } - - - #region Add____________________________________ - /// <summary> - /// AddTop - /// </summary> - private void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.AddDelayTime); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - } - - /// <summary> - /// AddBodyView - /// </summary> - private void AddBodyView() - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var bg1 = new FrameLayout - { - Y = Application.GetRealHeight(118), - Height = Application.GetMinRealAverage(207), - Width = Application.GetMinRealAverage(207), - Gravity = Gravity.CenterHorizontal, - Radius = (uint)Application.GetMinRealAverage(207 / 2), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - bodyFrameLayout.AddChidren(bg1); - - var bg2 = new FrameLayout - { - Height = Application.GetMinRealAverage(184), - Width = Application.GetMinRealAverage(184), - Gravity = Gravity.Center, - Radius = (uint)Application.GetMinRealAverage(184 / 2), - BackgroundColor = ZigbeeColor.Current.GXCSelectedBackgroundColor, - }; - bg1.AddChidren(bg2); - - var timeImg = new Button - { - Height = Application.GetMinRealAverage(124), - Width = Application.GetMinRealAverage(124), - Gravity = Gravity.Center, - Radius = (uint)Application.GetRealHeight(58), - UnSelectedImagePath = "Item/Timer.png" - }; - bg1.AddChidren(timeImg); - - var tip = new Button - { - Y = Application.GetRealHeight(350), - Width = Application.GetRealWidth(700), - Height = Application.GetRealHeight(120), - Gravity = Gravity.CenterHorizontal, - TextID = R.MyInternationalizationString.SelectTimeForAction, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize=15, - IsMoreLines = true - }; - bodyFrameLayout.AddChidren(tip); - - var midFL = new FrameLayout - { - Y = Application.GetRealHeight(611), - Height = Application.GetRealHeight(1126), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - Radius = (uint)Application.GetRealHeight(58), - }; - bodyFrameLayout.AddChidren(midFL); - - var timeFL = new FrameLayout - { - Y = Application.GetRealHeight(127), - Height = Application.GetRealHeight(1126 - 127), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - midFL.AddChidren(timeFL); - - var pickView = new UIPickerView - { - Height = Application.GetRealHeight(153 * 3), - }; - timeFL.AddChidren(pickView); - - //鍒� - string strMinute = Language.StringByID(R.MyInternationalizationString.uMinute); - //绉� - string strSecond = Language.StringByID(R.MyInternationalizationString.uSecond); - var listfirst = new List<string>(); - var listSecond = new List<List<string>>(); - for (int i = 0; i <= 59; i++) - { - listfirst.Add(i.ToString().PadLeft(2, '0') + strMinute); - var listTemp = new List<string>(); - for (int j = 0; j <= 59; j++) - { - if (i == 0 && j == 0) - { - continue; - } - listTemp.Add(j.ToString().PadLeft(2, '0') + strSecond); - } - listSecond.Add(listTemp); - } - //鍔犱竴涓�60鍒嗛挓鍚� - listfirst.Add("60" + strMinute); - var listTemp2 = new List<string>() { "00" + strSecond }; - listSecond.Add(listTemp2); - - pickView.setPicker(listfirst, listSecond); - pickView.setCurrentItems(totalSecond / 60, totalSecond % 60, 0); - pickView.OnSelectChangeEvent += (value1, value2, value3) => - { - int minute = Convert.ToInt32(listfirst[value1].Substring(0, 2)); - int second = Convert.ToInt32(listSecond[value1][value2].Substring(0, 2)); - totalSecond = minute * 60 + second; - }; - - var confirmBtn = new CommonForm.CompleteButton(1656, 907, 127); - AddChidren(confirmBtn); - confirmBtn.SetTitle(R.MyInternationalizationString.Save); - confirmBtn.MouseUpEventHandler += (sender, e) => - { - if (totalSecond == 0) - { - RemoveFromParent(); - } - else - { - sceneTargetDevice.DelayTime = totalSecond; - selectedTimeAction?.Invoke(sceneTargetDevice); - RemoveFromParent(); - } - }; - } - - #endregion - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Category/SelectDevice.cs b/ZigbeeApp/Shared/Phone/Device/Category/SelectDevice.cs deleted file mode 100755 index 266fff7..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Category/SelectDevice.cs +++ /dev/null @@ -1,1245 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.UserView; -using ZigBee.Device; - -namespace Shared.Phone.Device.Category -{ - public class SelectDevice : FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// selectedTimeAction - /// </summary> - public Action<SceneTargetDeviceUI> selectedAction; - /// <summary> - /// sceneTargetDevice - /// </summary> - public SceneTargetDeviceUI sceneTargetDevice; - /// <summary> - /// BeforesceneTargetDeviceUIs - /// </summary> - public List<SceneTargetDeviceUI> beforeSceneTargetDeviceUIs = new List<SceneTargetDeviceUI> { }; - /// <summary> - /// 妤煎眰 - /// </summary> - private Button floorBtn; - /// <summary> - /// 褰撳墠妤煎眰id - /// </summary> - private string curFloorId; - /// <summary> - /// 閫夋嫨妤煎眰 - /// </summary> - private Button selectFloorBtn; - /// <summary> - /// 鍦烘櫙鍔熻兘涓儴鑳屾櫙bodyView - /// </summary> - public FrameLayout functionSceneBodyView; - /// <summary> - /// deviceUI - /// </summary> - public CommonDevice deviceUI; - /// <summary> - /// 鍔熻兘绫诲瀷 - /// </summary> - private HorizontalScrolViewLayout functionTypeScrowView; - /// <summary> - /// 鐩稿悓鐨勮澶囧垪琛� - /// </summary> - public VerticalScrolViewLayout deviceListScrolView; - /// <summary> - /// 褰撳墠鍔熻兘绫诲瀷鎸夐挳 - /// </summary> - private FunctionButton tempFunctionTypeBtn; - /// <summary> - /// 璁惧绫诲瀷RowLayout - /// </summary> - //private FrameLayout typeRowLayout; - /// <summary> - /// 鍔熻兘绫诲瀷鎸夐挳 - /// </summary> - //private FunctionButton functionTypeIMG; - /// <summary> - /// 娓╁害 - /// </summary> - private int tempId; - /// <summary> - /// 妯″紡 - /// </summary> - private int modelId; - /// <summary> - /// 椋庨�� - /// </summary> - private int fanid; - - /// <summary> - /// dList - /// </summary> - private List<CommonDevice> devList; - /// <summary> - /// 鐩稿悓绫诲瀷鐨勮澶囧垪琛� - /// </summary> - private Dictionary<int, List<CommonDevice>> typeDeviceDic; - /// <summary> - /// 璁惧绫诲瀷鐨勫浘id - /// </summary> - private Dictionary<int, DeviceConcreteType> typeIdDic; - /// <summary> - /// 褰撳墠閫変腑鎴块棿 - /// </summary> - private Common.Room curRoom; - - #endregion - - /// <summary> - /// RemoveFromParent - /// </summary> - public override void RemoveFromParent() - { - HomePage.Instance.ScrollEnabled = true; - base.RemoveFromParent(); - } - - /// <summary> - /// SelectDevice - /// </summary> - public SelectDevice() - { - HomePage.Instance.ScrollEnabled = false; - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - /// <summary> - /// Show - /// </summary> - public void Show() - { - InitData(); - - if (sceneTargetDevice == null) - { - sceneTargetDevice = new SceneTargetDeviceUI { Type = 0 }; - } - AddTop(); - - AddBodyView(); - - RefreshBodyView(Config.Instance.Home.CurrentFloorId); - } - - /// <summary> - /// InitData - /// </summary> - private void InitData() - { - typeDeviceDic = new Dictionary<int, List<CommonDevice>> { }; - typeIdDic = new Dictionary<int, DeviceConcreteType> { }; - } - - /// <summary> - /// RefreshData - /// </summary> - private void RefreshData(Common.Room room) - { - devList = UserCenter.HdlRoomLogic.Current.GetRoomListDevice(room); - typeDeviceDic.Clear(); - typeIdDic.Clear(); - foreach (var device in devList) - { - var info = Common.LocalDevice.Current.GetDeviceBelongEnumInfo(device); - if (info.BeloneType == DeviceBeloneType.A寮�鍏� || info.BeloneType == DeviceBeloneType.A褰╃伅 - || info.BeloneType == DeviceBeloneType.A鎻掑骇 || info.BeloneType == DeviceBeloneType.A鏅鸿兘绌哄紑 - || info.BeloneType == DeviceBeloneType.A鐏厜 || info.BeloneType == DeviceBeloneType.A绌鸿皟 - || info.BeloneType == DeviceBeloneType.A绐楀笜 || info.BeloneType == DeviceBeloneType.A缁х數鍣� - || info.BeloneType == DeviceBeloneType.A璋冨厜鍣� - ) - { - if (typeDeviceDic.ContainsKey(info.BeloneTextId) == false) - { - var sameDevList = new List<CommonDevice> { }; - sameDevList.Add(device); - typeDeviceDic[info.BeloneTextId] = sameDevList; - } - else - { - typeDeviceDic[info.BeloneTextId].Add(device); - } - typeIdDic[info.BeloneTextId] = info.ConcreteType; - } - } - } - - #region Add____________________________________ - /// <summary> - /// AddTop - /// </summary> - private void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.AddFunction); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - floorBtn = new Button() - { - X = Application.GetRealWidth(750), - Width = Application.GetRealWidth(200), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterVertical, - TextAlignment = TextAlignment.CenterRight, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize=14, - IsBold=true - }; - - selectFloorBtn = new Button() - { - X = Application.GetRealWidth(950), - Width = Application.GetMinRealAverage(69), - Height = Application.GetMinRealAverage(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/Drop_Down.png" - }; - - if (Config.Instance.Home.FloorDics.Count > 0) - { - floorBtn.Text = Config.Instance.Home.GetCurrentFloorName; - top.topView.AddChidren(floorBtn); - top.topView.AddChidren(selectFloorBtn); - floorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; - selectFloorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; - } - } - - /// <summary> - /// 閫夋嫨妤煎眰 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void SelectedFloor_MouseUpEventHandler(object sender, MouseEventArgs mouseEventArgs) - { - var floors = new SelectFloor(); - AddChidren(floors); - floors.changeFloor = false; - floors.CurFloorId = curFloorId; - floors.Init(580, 184, Direction.Right); - floors.FloorAction += (floorId) => - { - curFloorId = floorId; - floorBtn.Text = Config.Instance.Home.GetFloorNameById(floorId); - RefreshBodyView(floorId); - }; - } - /// <summary> - /// AddBodyView - /// </summary> - private void AddBodyView() - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - } - - #endregion - - /// <summary> - /// RefreshBodyView - /// </summary> - private void RefreshBodyView(string floorId) - { - AddRoomView(floorId); - } - - /// <summary> - /// AddRoomView - /// </summary> - private void AddRoomView(string floorId) - { - var roomFL = new HorizontalScrolViewLayout() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(204), - Width = Application.GetRealWidth(CommonPage.AppRealWidth - CommonFormResouce.X_Left), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - bodyFrameLayout.AddChidren(roomFL); - - //鍔熻兘鍜屽満鏅痓odyView - functionSceneBodyView = new FrameLayout() - { - Y = roomFL.Bottom, - Height = Application.GetRealHeight(279+35+1218), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - bodyFrameLayout.AddChidren(functionSceneBodyView); - - RoomButton curBtn = new RoomButton(0, 0); - var lisrRoom = UserCenter.HdlRoomLogic.Current.GetRoomsByFloorIdAppendLoveRoom(floorId); - foreach (var room in lisrRoom) - { - var row = new FrameLayout() - { - Width = Application.GetRealWidth(255), - Height = Application.GetRealHeight(167) - }; - roomFL.AddChidren(row); - - RoomButton roomBtn = new RoomButton(0, 0); - roomBtn.Gravity = Gravity.Center; - roomBtn.Init(); - roomBtn.SetTitle(room.Name); - row.AddChidren(roomBtn); - - if (room.IsLove) - { - roomBtn.IsSelected = true; - curBtn = roomBtn; - this.curRoom = room; - RefreshFunction(room); - } - roomBtn.ButtonClickEvent += (sender, e) => - { - if (sender == curBtn) - { - return; - } - sender.IsSelected = true; - curBtn.IsSelected = false; - curBtn = sender; - this.curRoom = room; - RefreshFunction(room); - }; - } - - if (deviceUI != null) - { - ShowSelectAction(deviceUI, sceneTargetDevice); - } - } - - - /// <summary> - /// RefreshFunction - /// </summary> - /// <param name="room"></param> - private void RefreshFunction(Common.Room room) - { - RefreshData(room); - functionSceneBodyView.RemoveAll(); - - if (typeDeviceDic.Count == 0) - { - ShowNoFunctionTip(); - } - else - { - var functionTypeView1 = new FrameLayout - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(160), - Width = Application.GetRealWidth(1028), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - functionSceneBodyView.AddChidren(functionTypeView1); - functionTypeView1.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerTopLeft); - - var functionTypeView2 = new FrameLayout - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(150), - Height = Application.GetRealHeight(279 - 150), - Width = Application.GetRealWidth(1028), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - functionSceneBodyView.AddChidren(functionTypeView2); - functionTypeView2.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerBottomLeft); - - functionTypeScrowView = new HorizontalScrolViewLayout - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(279), - Width = Application.GetRealWidth(1028) - }; - functionSceneBodyView.AddChidren(functionTypeScrowView); - - deviceListScrolView = new VerticalScrolViewLayout - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(35 + 275), - Width = Application.GetRealWidth(1028), - Height = Application.GetRealHeight(1218), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - functionSceneBodyView.AddChidren(deviceListScrolView); - deviceListScrolView.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); - - tempFunctionTypeBtn = new FunctionButton(); - tempFunctionTypeBtn.Init("",""); - - foreach (var deviceType in typeIdDic) - { - var typeRowLayout = new FrameLayout() - { - Width = Application.GetRealWidth(220), - }; - functionTypeScrowView.AddChidren(typeRowLayout); - - var functionTypeIMG = new FunctionButton() - { - Tag = deviceType.Key - }; - string imgPath = string.Empty; - string imgSeletedPath = string.Empty; - Common.LocalDevice.Current.GetDeviceObjectIcon(deviceType.Value, ref imgPath, ref imgSeletedPath); - functionTypeIMG.Init(imgPath, imgSeletedPath); - functionTypeIMG.SetTitle(deviceType.Key); - typeRowLayout.AddChidren(functionTypeIMG); - - functionTypeIMG.ClickBtn.MouseUpEventHandler += ShowSameTypeFunction; - - if (functionTypeScrowView.ChildrenCount == 1) - { - ShowSameTypeFunction(functionTypeIMG.ImageBtn, null); - } - } - } - } - - /// <summary> - /// 鏄剧ず鐩稿悓绫诲瀷鐨勫姛鑳� - /// </summary> - /// <param name="typeSender">typeSender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void ShowSameTypeFunction(object typeSender, MouseEventArgs mouseEventArgs) - { - tempFunctionTypeBtn.IsSelected = false; - tempFunctionTypeBtn = (typeSender as Button).Parent as FunctionButton; - ((typeSender as Button).Parent as FunctionButton).IsSelected = true; - - deviceListScrolView.RemoveAll(); - - var sameTypeList = new List<CommonDevice> { }; - sameTypeList = typeDeviceDic[int.Parse((typeSender as Button).Tag.ToString())]; - - foreach (var device in sameTypeList) - { - if (beforeSceneTargetDeviceUIs.Find((obj) => obj.DeviceUI.DeviceEpoint == device.DeviceEpoint && obj.DeviceUI.DeviceAddr == device.DeviceAddr) != null) - { - continue; - } - var deviceTypeRowLayout = new FrameLayout() - { - Height = Application.GetRealHeight(127 + 35), - Tag = device - }; - deviceListScrolView.AddChidren(deviceTypeRowLayout); - - var deviceRow = new FunctionRow(0, 35); - deviceRow.Init(device.IconPath, device.OnlineIconPath, true); - deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(device)); - deviceRow.IsSelected = true; - deviceRow.HideSwitchBtn(false); - deviceRow.NameBtn.BackgroundColor = ZigbeeColor.Current.GXCRedColor; - deviceTypeRowLayout.AddChidren(deviceRow); - - - deviceRow.ClickBtn.MouseUpEventHandler += (sender, e) => - { - ShowSelectAction(device, sceneTargetDevice); - }; - } - } - - - /// <summary> - /// 鎻愮ず娌℃湁鍔熻兘 - /// </summary> - private void ShowNoFunctionTip() - { - var noFunction = new Button() - { - Y = Application.GetRealHeight(320), - Width = Application.GetMinRealAverage(757), - Height = Application.GetMinRealAverage(435), - UnSelectedImagePath = "Item/NoFunction.png", - Gravity = Gravity.CenterHorizontal - }; - functionSceneBodyView.AddChidren(noFunction); - - var noFunctionTip = new Button() - { - Y = noFunction.Bottom + Application.GetRealHeight(32), - Height = Application.GetRealHeight(200), - Width = Application.GetRealWidth(700), - Gravity = Gravity.CenterHorizontal, - Text = Language.StringByID(R.MyInternationalizationString.NoFunction).Replace("{\\r\\n}", "\r\n"), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, - TextAlignment = TextAlignment.Center, - IsMoreLines = true - }; - functionSceneBodyView.AddChidren(noFunctionTip); - } - - /// <summary> - /// ShowSelectAction - /// </summary> - /// <param name="device"></param> - private void ShowSelectAction(CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var dialog = new FrameLayout() - { - BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor - }; - AddChidren(dialog); - - dialog.MouseUpEventHandler += (sender, e) => - { - dialog.RemoveFromParent(); - }; - - if (device.Type == ZigBee.Device.DeviceType.OnOffOutput) - { - SelectOnoffOutput(dialog, device, sceneTarget); - } - else if (device.Type == ZigBee.Device.DeviceType.AirSwitch) - { - SelectOnoffOutput(dialog, device, sceneTarget); - } - else if (device.Type == ZigBee.Device.DeviceType.DimmableLight) - { - SelectDimmableLight(dialog, device, sceneTarget); - } - else if (device.Type == ZigBee.Device.DeviceType.WindowCoveringDevice) - { - SelectWindowCoveringDevice(dialog, device, sceneTarget); - } - else if (device.Type == ZigBee.Device.DeviceType.Thermostat) - { - SelectThermostat(dialog, device, sceneTarget); - } - } - - /// <summary> - /// 鐏厜 - /// </summary> - /// <param name="dialog"></param> - /// <param name="device"></param> - /// <param name="sceneTarget"></param> - private void SelectOnoffOutput(FrameLayout dialog, CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var selectFL = new FrameLayout - { - Y = Application.GetRealHeight(1391), - Height = Application.GetRealHeight(530), - }; - dialog.AddChidren(selectFL); - //selectFL.Animate = Animate.DownToUp; - - var titleBG = new FrameLayout - { - Height = Application.GetRealHeight(138 * 2), - Radius = (uint)Application.GetRealHeight(58), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(titleBG); - - var titleFL = new FrameLayout - { - Height = Application.GetRealHeight(138), - }; - selectFL.AddChidren(titleFL); - - var line = new Button - { - Y = titleFL.Height - 1, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - titleFL.AddChidren(line); - - var cancleBtn = new Button - { - X = Application.GetRealWidth(80), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Cancel - }; - titleFL.AddChidren(cancleBtn); - - var deviceName = new Button - { - Width = Application.GetRealWidth(600), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 16, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device) - }; - titleFL.AddChidren(deviceName); - - var comfrimBtn = new Button - { - X = Application.GetRealWidth(800), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextSize = 14, - TextAlignment = TextAlignment.CenterRight, - TextID = R.MyInternationalizationString.Complete - }; - titleFL.AddChidren(comfrimBtn); - - var itemFL = new FrameLayout - { - Y = titleFL.Bottom, - Height = Application.GetRealHeight(392), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(itemFL); - - var open = new SelectSceneStatuRow(0, 60); - itemFL.AddChidren(open); - open.Init(); - open.SetTitle(R.MyInternationalizationString.Open); - open.IsSelected = true; - - - var shut = new SelectSceneStatuRow(0, 60 + 127 + 30); - itemFL.AddChidren(shut); - shut.Init(); - shut.hideLine(true); - shut.SetTitle(R.MyInternationalizationString.Shut); - - open.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - }; - - shut.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = false; - shut.IsSelected = true; - }; - - cancleBtn.MouseUpEventHandler = (sender, e) => - { - dialog.RemoveAll(); - dialog.RemoveFromParent(); - }; - - if (sceneTarget.TaskList.Count > 0) - { - if (sceneTarget.TaskList[0].Data1 == 1) - { - open.IsSelected = true; - shut.IsSelected = false; - } - else - { - open.IsSelected = false; - shut.IsSelected = true; - } - } - - comfrimBtn.MouseUpEventHandler = (sender, e) => - { - var taskList = new List<Safeguard.TaskListInfo> { }; - int taskType = 1; - int data1 = 0; - int data2 = 0; - - if (open.IsSelected) - { - //寮� - data1 = 1; - data2 = 0; - } - else - { - //鍏� - data1 = 0; - data2 = 0; - } - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = data1, - Data2 = data2 - }; - taskList.Add(taskInfo); - - sceneTargetDevice.TaskList = taskList; - sceneTargetDevice.DeviceUI = device; - selectedAction?.Invoke(sceneTargetDevice); - RemoveFromParent(); - }; - } - /// <summary> - /// 绐楀笜 - /// </summary> - /// <param name="dialog"></param> - /// <param name="device"></param> - /// <param name="sceneTarget"></param> - private void SelectWindowCoveringDevice(FrameLayout dialog, CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var selectFL = new FrameLayout - { - Y = Application.GetRealHeight(1169), - Height = Application.GetRealHeight(752), - }; - dialog.AddChidren(selectFL); - //selectFL.Animate = Animate.DownToUp; - - var titleBG = new FrameLayout - { - Height = Application.GetRealHeight(138 * 2), - Radius = (uint)Application.GetRealHeight(58), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(titleBG); - - var titleFL = new FrameLayout - { - Height = Application.GetRealHeight(138), - }; - selectFL.AddChidren(titleFL); - - var line = new Button - { - Y = titleFL.Height - 1, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - titleFL.AddChidren(line); - - var cancleBtn = new Button - { - X = Application.GetRealWidth(80), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Cancel - }; - titleFL.AddChidren(cancleBtn); - - var deviceName = new Button - { - Width = Application.GetRealWidth(600), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 16, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device) - }; - titleFL.AddChidren(deviceName); - - var comfrimBtn = new Button - { - X = Application.GetRealWidth(800), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextSize = 14, - TextAlignment = TextAlignment.CenterRight, - TextID = R.MyInternationalizationString.Complete - }; - titleFL.AddChidren(comfrimBtn); - - var itemFL = new FrameLayout - { - Y = titleFL.Bottom, - Height = Application.GetRealHeight(613), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(itemFL); - - var open = new SelectDeviceWithSeekBarRow(0, 60); - itemFL.AddChidren(open); - open.Init(); - open.SetTitle(R.MyInternationalizationString.Open); - open.IsSelected = true; - - var shut = new SelectSceneStatuRow(0, 60 + 348 + 30); - itemFL.AddChidren(shut); - shut.Init(); - shut.hideLine(true); - shut.SetTitle(R.MyInternationalizationString.Shut); - - open.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - }; - - shut.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = false; - shut.IsSelected = true; - }; - - cancleBtn.MouseUpEventHandler = (sender, e) => - { - dialog.RemoveAll(); - dialog.RemoveFromParent(); - }; - - open.SeekBar.OnProgressChangedEvent += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - open.SetSeekBarTitle(); - }; - - if (sceneTarget.TaskList.Count > 0) - { - if (sceneTarget.TaskList[0].Data1 == 1) - { - open.IsSelected = false; - shut.IsSelected = true; - } - else - { - open.IsSelected = true; - shut.IsSelected = false; - open.SetSeekBarProgress(sceneTarget.TaskList[0].Data2); - } - } - - comfrimBtn.MouseUpEventHandler = (sender, e) => - { - var taskList = new List<Safeguard.TaskListInfo> { }; - - int taskType = 6; - int data1 = 0; - int data2 = 0; - - if (shut.IsSelected) - { - //鍏� - data1 = 1; - data2 = 0; - } - else - { - //鐧惧垎姣� - data1 = 5; - data2 = open.SeekBar.Progress; - } - - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = data1, - Data2 = data2 - }; - taskList.Add(taskInfo); - - sceneTargetDevice.TaskList = taskList; - sceneTargetDevice.DeviceUI = device; - selectedAction?.Invoke(sceneTargetDevice); - RemoveFromParent(); - }; - } - /// <summary> - /// 璋冨厜鐏� - /// </summary> - /// <param name="dialog"></param> - /// <param name="device"></param> - /// <param name="sceneTarget"></param> - private void SelectDimmableLight(FrameLayout dialog, CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var selectFL = new FrameLayout - { - Y = Application.GetRealHeight(1169), - Height = Application.GetRealHeight(752), - }; - dialog.AddChidren(selectFL); - //selectFL.Animate = Animate.DownToUp; - - var titleBG = new FrameLayout - { - Height = Application.GetRealHeight(138 * 2), - Radius = (uint)Application.GetRealHeight(58), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(titleBG); - - var titleFL = new FrameLayout - { - Height = Application.GetRealHeight(138), - }; - selectFL.AddChidren(titleFL); - - var line = new Button - { - Y = titleFL.Height - 1, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - titleFL.AddChidren(line); - - var cancleBtn = new Button - { - X = Application.GetRealWidth(80), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Cancel - }; - titleFL.AddChidren(cancleBtn); - - var deviceName = new Button - { - Width = Application.GetRealWidth(600), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 16, - TextAlignment = TextAlignment.CenterLeft, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device) - }; - titleFL.AddChidren(deviceName); - - var comfrimBtn = new Button - { - X = Application.GetRealWidth(800), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextSize = 14, - TextAlignment = TextAlignment.CenterRight, - TextID = R.MyInternationalizationString.Complete - }; - titleFL.AddChidren(comfrimBtn); - - var itemFL = new FrameLayout - { - Y = titleFL.Bottom, - Height = Application.GetRealHeight(613), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(itemFL); - - var open = new SelectDeviceWithSeekBarRow(0, 60); - itemFL.AddChidren(open); - open.Init(254); - open.SetTitle(R.MyInternationalizationString.Open); - open.IsSelected = true; - - var shut = new SelectSceneStatuRow(0, 60 + 348 + 30); - itemFL.AddChidren(shut); - shut.Init(); - shut.hideLine(true); - shut.SetTitle(R.MyInternationalizationString.Shut); - - open.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - }; - - shut.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = false; - shut.IsSelected = true; - }; - - cancleBtn.MouseUpEventHandler = (sender, e) => - { - dialog.RemoveAll(); - dialog.RemoveFromParent(); - }; - - open.SeekBar.OnProgressChangedEvent += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - open.SetSeekBarTitle(); - }; - - if (sceneTarget.TaskList.Count > 0) - { - if (sceneTarget.TaskList[0].Data1 == 0) - { - open.IsSelected = false; - shut.IsSelected = true; - } - else - { - open.IsSelected = true; - shut.IsSelected = false; - open.SetSeekBarProgress(sceneTarget.TaskList[0].Data1); - } - } - - comfrimBtn.MouseUpEventHandler = (sender, e) => - { - var taskList = new List<Safeguard.TaskListInfo> { }; - - int taskType = 3; - int data1 = 0; - int data2 = 0; - - if (shut.IsSelected) - { - //鍏� - data1 = 0; - data2 = 0; - } - else - { - //鐧惧垎姣� - data1 = open.SeekBar.Progress; - data2 = 0; - } - - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = data1, - Data2 = data2 - }; - taskList.Add(taskInfo); - - sceneTargetDevice.TaskList = taskList; - sceneTargetDevice.DeviceUI = device; - selectedAction?.Invoke(sceneTargetDevice); - RemoveFromParent(); - }; - } - /// <summary> - /// 绌鸿皟 - /// </summary> - /// <param name="dialog"></param> - /// <param name="device"></param> - /// <param name="sceneTarget"></param> - private void SelectThermostat(FrameLayout dialog, CommonDevice device, SceneTargetDeviceUI sceneTarget) - { - var selectFL = new FrameLayout - { - Y = Application.GetRealHeight(815), - Height = Application.GetRealHeight(1106), - }; - dialog.AddChidren(selectFL); - //selectFL.Animate = Animate.DownToUp; - - var titleBG = new FrameLayout - { - Height = Application.GetRealHeight(138 * 2), - Radius = (uint)Application.GetRealHeight(58), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(titleBG); - - var titleFL = new FrameLayout - { - Height = Application.GetRealHeight(138), - }; - selectFL.AddChidren(titleFL); - - var line = new Button - { - Y = titleFL.Height - 1, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - titleFL.AddChidren(line); - - var cancleBtn = new Button - { - X = Application.GetRealWidth(80), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 14, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Cancel - }; - titleFL.AddChidren(cancleBtn); - - var deviceName = new Button - { - Width = Application.GetRealWidth(600), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 16, - TextAlignment = TextAlignment.CenterLeft, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device) - }; - titleFL.AddChidren(deviceName); - - var comfrimBtn = new Button - { - X = Application.GetRealWidth(800), - Width = Application.GetRealWidth(200), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor2, - TextSize = 14, - TextAlignment = TextAlignment.CenterRight, - TextID = R.MyInternationalizationString.Complete - }; - titleFL.AddChidren(comfrimBtn); - - var itemFL = new FrameLayout - { - Y = titleFL.Bottom, - Height = Application.GetRealHeight(968), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - selectFL.AddChidren(itemFL); - - var open = new SelectDeviceWithPickViewRow(0, 60); - itemFL.AddChidren(open); - open.Init(); - open.SetTitle(R.MyInternationalizationString.Open); - open.IsSelected = true; - open.pickerView.OnSelectChangeEvent = (l1, l2, l3) => - { - tempId = l1; - modelId = l2; - fanid = l3; - }; - - var shut = new SelectSceneStatuRow(0, 60 + 703 + 30); - itemFL.AddChidren(shut); - shut.Init(); - shut.hideLine(true); - shut.SetTitle(R.MyInternationalizationString.Shut); - - open.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = true; - shut.IsSelected = false; - }; - - shut.ClickButton.MouseUpEventHandler += (sender, e) => - { - open.IsSelected = false; - shut.IsSelected = true; - }; - - cancleBtn.MouseUpEventHandler = (sender, e) => - { - dialog.RemoveAll(); - dialog.RemoveFromParent(); - }; - - if (sceneTarget.TaskList.Count > 0) - { - if (sceneTarget.TaskList.Count == 1) - { - open.IsSelected = false; - shut.IsSelected = true; - } - else - { - open.IsSelected = true; - shut.IsSelected = false; - - for (int i = 0; i < sceneTarget.TaskList.Count; i++) - { - var tasklist = sceneTarget.TaskList[i]; - if (tasklist.Data1 == 6) - { - fanid = open.fanList.IndexOf(tasklist.Data2); - } - if (tasklist.Data1 == 3) - { - modelId = open.modeList.IndexOf(tasklist.Data2); - } - if (tasklist.Data1 == 4 || tasklist.Data1 == 5) - { - tempId = open.temperatureList.IndexOf(tasklist.Data2/100); - } - } - open.pickerView.setCurrentItems(tempId, modelId, fanid); - } - } - - comfrimBtn.MouseUpEventHandler = (sender, e) => - { - - var taskList = new List<Safeguard.TaskListInfo> { }; - - int taskType = 5; - int data1 = 0; - int data2 = 0; - - if (shut.IsSelected) - { - //鍏� - data1 = 3; - data2 = 0; - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = data1, - Data2 = data2 - }; - taskList.Add(taskInfo); - } - else - { - //fan - var taskInfo = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = 6, - Data2 = open.fanList[fanid] - }; - taskList.Add(taskInfo); - - //mode - var taskInfo2 = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = 3, - Data2 = open.modeList[modelId] - }; - taskList.Add(taskInfo2); - - //tem - if (open.modeList[modelId] == 4) - { - //heat - var taskInfo3 = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = 4, - Data2 = open.temperatureList[tempId]*100 - }; - taskList.Add(taskInfo3); - - } - else - { - //heat - var taskInfo3 = new Safeguard.TaskListInfo - { - TaskType = taskType, - Data1 = 5, - Data2 = open.temperatureList[tempId]*100 - }; - taskList.Add(taskInfo3); - } - } - - sceneTargetDevice.TaskList = taskList; - sceneTargetDevice.DeviceUI = device; - selectedAction?.Invoke(sceneTargetDevice); - RemoveFromParent(); - }; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Category/SelectScene.cs b/ZigbeeApp/Shared/Phone/Device/Category/SelectScene.cs deleted file mode 100755 index 191ddbd..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Category/SelectScene.cs +++ /dev/null @@ -1,362 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; - -namespace Shared.Phone.Device.Category -{ - public class SelectScene : FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// selectedTimeAction - /// </summary> - public Action<SceneTargetDeviceUI> selectedAction; - /// <summary> - /// sceneTargetDevice - /// </summary> - public SceneTargetDeviceUI sceneTargetDevice; - /// <summary> - /// BeforesceneTargetDeviceUIs - /// </summary> - public List<SceneTargetDeviceUI> beforeSceneTargetDeviceUIs = new List<SceneTargetDeviceUI> { }; - /// <summary> - /// 妤煎眰 - /// </summary> - private Button floorBtn; - /// <summary> - /// 褰撳墠妤煎眰id - /// </summary> - private string curFloorId; - /// <summary> - /// 閫夋嫨妤煎眰 - /// </summary> - private Button selectFloorBtn; - /// <summary> - /// 鍦烘櫙鍔熻兘涓儴鑳屾櫙bodyView - /// </summary> - public FrameLayout functionSceneBodyView; - /// <summary> - /// sceneUI - /// </summary> - public SceneUI sceneUI; - /// <summary> - /// 褰撳墠鍦烘櫙鏈韩锛屾坊鍔犲満鏅椂浣跨敤 - /// </summary> - public SceneUI currentSceneUI; - - #endregion - - /// <summary> - /// SelectScene - /// </summary> - public SelectScene() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - - - /// <summary> - /// Show - /// </summary> - public void Show() - { - if (sceneTargetDevice == null) - { - sceneTargetDevice = new SceneTargetDeviceUI { Type = 1 }; - } - AddTop(); - - AddBodyView(); - - RefreshBodyView(Config.Instance.Home.CurrentFloorId); - } - - - #region Add____________________________________ - /// <summary> - /// AddTop - /// </summary> - private void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.AddScence); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - floorBtn = new Button() - { - X = Application.GetRealWidth(750), - Width = Application.GetRealWidth(200), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterVertical, - TextAlignment = TextAlignment.CenterRight, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 14, - IsBold = true - }; - - selectFloorBtn = new Button() - { - X = Application.GetRealWidth(950), - Width = Application.GetMinRealAverage(69), - Height = Application.GetMinRealAverage(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/Drop_Down.png" - }; - - if (Config.Instance.Home.FloorDics.Count > 0) - { - floorBtn.Text = Config.Instance.Home.GetCurrentFloorName; - top.topView.AddChidren(floorBtn); - top.topView.AddChidren(selectFloorBtn); - floorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; - selectFloorBtn.MouseUpEventHandler += SelectedFloor_MouseUpEventHandler; - } - } - - /// <summary> - /// 閫夋嫨妤煎眰 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void SelectedFloor_MouseUpEventHandler(object sender, MouseEventArgs mouseEventArgs) - { - var floors = new SelectFloor(); - AddChidren(floors); - floors.changeFloor = false; - floors.CurFloorId = curFloorId; - floors.Init(580, 184, Direction.Right); - floors.FloorAction += (floorId) => - { - curFloorId = floorId; - floorBtn.Text = Config.Instance.Home.GetFloorNameById(floorId); - RefreshBodyView(floorId); - }; - } - /// <summary> - /// AddBodyView - /// </summary> - private void AddBodyView() - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var confirmBtn = new CommonForm.CompleteButton(1656, 907, 127); - AddChidren(confirmBtn); - confirmBtn.SetTitle(R.MyInternationalizationString.Save); - confirmBtn.MouseUpEventHandler += (sender, e) => - { - sceneTargetDevice.ElseScenesId = sceneUI.Id; - sceneTargetDevice.SceneUI = sceneUI; - sceneTargetDevice.SceneName = sceneUI.Name; - selectedAction?.Invoke(sceneTargetDevice); - RemoveFromParent(); - }; - } - - #endregion - - /// <summary> - /// RefreshBodyView - /// </summary> - private void RefreshBodyView(string floorId) - { - AddRoomView(floorId); - } - - /// <summary> - /// AddRoomView - /// </summary> - private void AddRoomView(string floorId) - { - var roomFL = new HorizontalScrolViewLayout() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetRealHeight(204), - Width = Application.GetRealWidth(CommonPage.AppRealWidth - CommonFormResouce.X_Left), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - bodyFrameLayout.AddChidren(roomFL); - - //鍔熻兘鍜屽満鏅痓odyView - functionSceneBodyView = new FrameLayout() - { - Y = roomFL.Bottom, - Height = Application.GetRealHeight(1080 + 452), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - bodyFrameLayout.AddChidren(functionSceneBodyView); - - RoomButton curBtn = new RoomButton(0,0); - - foreach (var room in UserCenter.HdlRoomLogic.Current.GetRoomsByFloorIdAppendLoveRoom(floorId)) - { - var row = new FrameLayout() - { - Width = Application.GetRealWidth(255), - Height = Application.GetRealHeight(167) - }; - roomFL.AddChidren(row); - - RoomButton roomBtn = new RoomButton(0, 0); - roomBtn.Gravity = Gravity.Center; - roomBtn.Init(); - roomBtn.SetTitle(room.Name); - row.AddChidren(roomBtn); - - if (room.IsLove) - { - roomBtn.IsSelected = true; - curBtn = roomBtn; - - RefreshScene(room); - } - roomBtn.ButtonClickEvent += (sender, e) => - { - if (sender == curBtn) - { - return; - } - sender.IsSelected = true; - curBtn.IsSelected = false; - curBtn = sender; - - RefreshScene(room); - }; - } - - } - - - /// <summary> - /// RefreshScene - /// </summary> - /// <param name="room"></param> - public void RefreshScene(Common.Room room) - { - functionSceneBodyView.RemoveAll(); - var sceneList = room.ListSceneId; - if (sceneList.Count == 0) - { - ShowNoSceneTip(); - } - else - { - var sceneScrolView = new VerticalScrolViewLayout - { - //Y = Application.GetRealHeight(58) - }; - - functionSceneBodyView.AddChidren(sceneScrolView); - SelectSceneRow tempSceneRow = new SelectSceneRow(); - EventHandler<MouseEventArgs> selectScene = (sender, e) => - { - tempSceneRow.IsSelected = false; - tempSceneRow = ((sender as Button).Parent as SelectSceneRow); - ((sender as Button).Parent as SelectSceneRow).IsSelected = true; - tempSceneRow.IsSelected = true; - sceneUI = (sender as Button).Tag as SceneUI; - }; - - for (int i = 0; i < sceneList.Count; i++) - { - var scene = UserCenter.HdlSceneLogic.Current.GetSceneUIBySceneId(sceneList[i]); - if (scene == null || currentSceneUI?.Id == scene.Id) - { - continue; - } - if (beforeSceneTargetDeviceUIs.Find((obj) => obj.SceneUI.Id == scene.Id) != null) - { - continue; - } - var sceneFL = new FrameLayout() - { - Height = Application.GetRealHeight(127 + 23), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - Tag = scene - }; - sceneScrolView.AddChidren(sceneFL); - var sceneRowLayout = new SelectSceneRow(0, 23); - sceneFL.AddChidren(sceneRowLayout); - sceneRowLayout.Init(); - sceneRowLayout.SetTitle(scene.Name); - sceneRowLayout.ClickButton.Tag = scene; - if (sceneUI == null) - { - if (i == 0) - { - tempSceneRow = sceneRowLayout; - sceneUI = scene; - sceneRowLayout.IsSelected = true; - } - } - else - { - if (sceneUI.Id == scene.Id) - { - tempSceneRow = sceneRowLayout; - sceneUI = scene; - sceneRowLayout.IsSelected = true; - } - } - - sceneRowLayout.ClickButton.MouseUpEventHandler += selectScene; - } - - if (sceneList.Count > 8) - { - var frame = new FrameLayout - { - Height = Application.GetRealHeight(300) - }; - sceneScrolView.AddChidren(frame); - } - - } - } - - - /// <summary> - /// 鏄剧ず娌℃湁鍦烘櫙 - /// </summary> - private void ShowNoSceneTip() - { - var noFunction = new Button() - { - Y = Application.GetRealHeight(320), - Width = Application.GetMinRealAverage(757), - Height = Application.GetMinRealAverage(435), - UnSelectedImagePath = "Item/NoFunction.png", - Gravity = Gravity.CenterHorizontal - }; - functionSceneBodyView.AddChidren(noFunction); - - var noScenceTip = new Button() - { - Y = noFunction.Bottom + Application.GetRealHeight(32), - Height = Application.GetRealHeight(200), - Width = Application.GetRealWidth(700), - Gravity = Gravity.CenterHorizontal, - Text = Language.StringByID(R.MyInternationalizationString.NoScene_Tip).Replace("{\\r\\n}", "\r\n"), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, - TextAlignment = TextAlignment.Center, - IsMoreLines = true - }; - functionSceneBodyView.AddChidren(noScenceTip); - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/ACLeftIconButtonRowLayout.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/ACLeftIconButtonRowLayout.cs deleted file mode 100755 index ee5a66d..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/ACLeftIconButtonRowLayout.cs +++ /dev/null @@ -1,116 +0,0 @@ -锘縰sing System; -namespace Shared.Phone.Device.CommonForm -{ - /// <summary> - /// 鍥剧墖鍦ㄥ乏杈癸紝鏂囧瓧鍦ㄥ彸杈�,甯︿笅鍒掔嚎鐨勮鎺т欢 - /// </summary> - public class ACLeftIconButtonRowLayout : FrameLayout - { - #region 鈼� 鍙橀噺__________________________ - /// <summary> - /// 鍥剧墖 - /// </summary> - public Button IconButton; - /// <summary> - /// 鏍囬 - /// </summary> - public Button TitleButton; - /// <summary> - /// 涓嬪垝绾� - /// </summary> - public FrameLayout lineFrameLayout; - - #endregion - - #region 鈼� 鏋勯�犳柟娉昣______________________ - - public ACLeftIconButtonRowLayout() - { - - } - - #endregion - - #region 鈼� 鍒濆鍖朹_________________________ - - /// <summary> - /// 鍒濆鍖�--閮ㄥ垎鍙傛暟鍏堝啓姝诲惂 - /// </summary> - /// <param name="iconPath">Icon path.</param> - /// <param name="iconSelectedPath">Icon selected path.</param> - /// <param name="title">Title.</param> - public void Init(string iconPath, string iconSelectedPath, string title, bool hadLine = true) - { - IconButton = new Button() - { - X = Application.GetRealWidth(80), - Height = Application.GetMinRealAverage(80), - Width = Application.GetMinRealAverage(80), - UnSelectedImagePath = iconPath, - SelectedImagePath = iconSelectedPath, - Gravity = Gravity.CenterVertical, - Tag = this.Tag - }; - AddChidren(IconButton); - - TitleButton = new Button() - { - X = IconButton.Right + Application.GetRealWidth(30), - Height = Application.GetRealHeight(80), - Width = this.Width - Application.GetRealWidth(80 + 80 + 30), - TextColor = Shared.Common.ZigbeeColor.Current.GXCPlaceHolderTextColor, - SelectedTextColor = Common.ZigbeeColor.Current.GXCACSelectedTextColor_FanModel, - Text = title, - TextAlignment = TextAlignment.CenterLeft, - Gravity = Gravity.CenterVertical, - Tag = this.Tag - }; - AddChidren(TitleButton); - - lineFrameLayout = new FrameLayout() - { - X = IconButton.X, - Y = this.Height - 1, - Width = this.Width - IconButton.X, - Height = 1, - BackgroundColor = Common.ZigbeeColor.Current.GXCPlaceHolderTextColor - }; - if (hadLine) - { - AddChidren(lineFrameLayout); - } - } - #endregion - - #region 鈼� 閫変腑鐘舵�乢_________________________ - - /// <summary> - /// 璁剧疆鐘舵�� - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - IconButton.IsSelected = statu; - TitleButton.IsSelected = statu; - } - /// <summary> - /// 閫変腑 - /// </summary> - public void SetSelectedStatu() - { - IconButton.IsSelected = true; - TitleButton.IsSelected = true; - } - /// <summary> - /// 涓嶉�変腑 - /// </summary> - public void SetUnSelectedStatu() - { - IconButton.IsSelected = false; - TitleButton.IsSelected = false; - } - #endregion - } - -} - diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/BackButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/BackButton.cs deleted file mode 100755 index c74e102..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/BackButton.cs +++ /dev/null @@ -1,24 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - /// <summary> - /// Back button. - /// </summary> - public class BackButton:Button - { - /// <summary> - /// Initializes a new instance of the <see cref="T:Shared.Phone.Device.CommonForm.BackButton"/> class. - /// </summary> - public BackButton() - { - X = Application.GetRealWidth(28); - Height = Application.GetMinRealAverage(110); - Width = Application.GetMinRealAverage(110); - UnSelectedImagePath = "Account/Back.png"; - SelectedImagePath = "Account/BackSelected.png"; - Gravity = Gravity.CenterVertical; - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/ButtonLineForm.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/ButtonLineForm.cs deleted file mode 100755 index 78e5035..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/ButtonLineForm.cs +++ /dev/null @@ -1,128 +0,0 @@ -锘縰sing System; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - public class ButtonLineForm : FrameLayout - { - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// line - /// </summary> - public Button Line; - /// <summary> - /// isSelected - /// </summary> - private bool v_Selected; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - try - { - v_Selected = value; - SetStatu(v_Selected); - } - catch - { - v_Selected = false; - SetStatu(v_Selected); - } - } - get - { - return v_Selected; - } - } - - /// <summary> - /// ButtonLineForm - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public ButtonLineForm(int x, int y) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(100); - Height = Application.GetRealHeight(85); - } - - /// <summary> - /// Init - /// </summary> - public void Init() - { - NameBtn = new Button() - { - Width = Width, - Height = Height - Application.GetRealHeight(6), - TextColor = ZigbeeColor.Current.GXCTextGrayColor4, - SelectedTextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = CommonFormResouce.TextSize, - TextAlignment = TextAlignment.CenterLeft - }; - AddChidren(NameBtn); - - Line = new Button - { - X = 0, - Y = Height - Application.GetRealHeight(6), - Width = 10, - Height = Application.GetRealHeight(6), - Radius = (uint)Application.GetRealHeight(6 / 2), - BackgroundColor = ZigbeeColor.Current.GXCButtonSelectedColor, - Visible = false - }; - AddChidren(Line); - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - RefreshWidth(); - } - - /// <summary> - /// RefreshWidth - /// </summary> - public void RefreshWidth() - { - NameBtn.Width = NameBtn.GetTextWidth() + Application.GetRealWidth(100); - Width = NameBtn.Width; - Line.X = NameBtn.GetTextWidth() / 4; - Line.Width= NameBtn.GetTextWidth() / 2; - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - NameBtn.IsSelected = Line.Visible = statu; - NameBtn.TextSize = statu ? CommonFormResouce.TextSize_Selected : CommonFormResouce.TextSize; - NameBtn.IsBold = statu; - RefreshWidth(); - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionForWinRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionForWinRow.cs deleted file mode 100755 index 94004ab..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionForWinRow.cs +++ /dev/null @@ -1,292 +0,0 @@ -锘縰sing System; -using Shared.Common; -using ZigBee.Device; - -namespace Shared.Phone.Device.CommonForm -{ - public class CategoryFunctionForWinRow:FrameLayout - { - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// Image - /// </summary> - public Button ImageBtn; - /// <summary> - /// ImageBG - /// </summary> - public Button ImageBG; - /// <summary> - /// ZoneBtn - /// </summary> - private Button StatuBtn; - /// <summary> - /// OpenOrUpBtn - /// </summary> - public Button OpenOrUpBtn; - /// <summary> - /// OpenOrUpBtn - /// </summary> - public Button CloseOrDownBtn; - /// <summary> - /// StopBtn - /// </summary> - public Button StopBtn; - - /// <summary> - /// ClickBtn - /// </summary> - public Button ClickBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - v_Selected = value; - try - { - SetStatu(v_Selected); - } - catch - { - - } - } - get - { - return v_Selected; - } - } - /// <summary> - /// CategoryFunctionForWinRow - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public CategoryFunctionForWinRow(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1022); - Height = Application.GetRealHeight(127-2); - //BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - - /// <summary> - /// Init - /// </summary> - /// <param name="device"></param> - public void Init(CommonDevice device) - { - ImageBG = new Button() - { - X = Application.GetRealWidth(45), - Width = Application.GetMinRealAverage(112), - Height = Application.GetMinRealAverage(112), - Gravity = Gravity.CenterVertical, - Radius = (uint)Application.GetMinRealAverage(112 / 2), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - SelectedBackgroundColor = ZigbeeColor.Current.GXCSelectedBackgroundColor, - }; - AddChidren(ImageBG); - - ImageBtn = new Button() - { - X = Application.GetRealWidth(63), - Width = Application.GetMinRealAverage(78), - Height = Application.GetMinRealAverage(78), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = device.IconPath, - SelectedImagePath = device.OnlineIconPath, - }; - AddChidren(ImageBtn); - - NameBtn = new Button() - { - X = Application.GetRealWidth(181), - Y = Application.GetRealHeight(14), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(58), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize=14 - }; - AddChidren(NameBtn); - - StatuBtn = new Button - { - X = Application.GetRealWidth(181), - Y = Application.GetRealHeight(72), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(49), - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, - TextSize=10 - }; - AddChidren(StatuBtn); - - OpenOrUpBtn = new Button - { - X = Application.GetRealWidth(625), - Width = Application.GetMinRealAverage(69), - Height = Application.GetMinRealAverage(69), - SelectedImagePath = "RollerShade/OpenSelected.png", - UnSelectedImagePath = "RollerShade/Open.png", - Gravity = Gravity.CenterVertical - }; - AddChidren(OpenOrUpBtn); - OpenOrUpBtn.MouseUpEventHandler += (sender, e) => - { - (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(0); - }; - - StopBtn = new Button - { - X = Application.GetRealWidth(769), - Width = Application.GetMinRealAverage(69), - Height = Application.GetMinRealAverage(69), - SelectedImagePath = "RollerShade/StopSelected.png", - UnSelectedImagePath = "RollerShade/Stop.png", - Gravity = Gravity.CenterVertical - }; - AddChidren(StopBtn); - StopBtn.MouseUpEventHandler += (sender, e) => - { - (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(2); - }; - - CloseOrDownBtn = new Button - { - X = Application.GetRealWidth(896), - Width = Application.GetMinRealAverage(69), - Height = Application.GetMinRealAverage(69), - SelectedImagePath = "RollerShade/CloseSelected.png", - UnSelectedImagePath = "RollerShade/Close.png", - Gravity = Gravity.CenterVertical - }; - AddChidren(CloseOrDownBtn); - CloseOrDownBtn.MouseUpEventHandler += (sender, e) => - { - (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(1); - }; - - var line = new Button() - { - X = Application.GetRealWidth(181), - Y = Height - 1, - Width = Application.GetRealWidth(821), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - Tag = Tag - }; - AddChidren(line); - - ClickBtn = new Button - { - Width = Application.GetRealWidth(600) - }; - AddChidren(ClickBtn); - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - - /// <summary> - /// SetZoneText - /// </summary> - /// <param name="title"></param> - public void SetStatuText(string title) - { - StatuBtn.Text = title; - } - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - //OpenOrUpBtn.IsSelected = CloseOrDownBtn.IsSelected = StopBtn.IsSelected = statu; - NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = statu; - NameBtn.IsBold = statu; - } - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetOnLineStatu(bool statu) - { - NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = statu; - NameBtn.IsBold = statu; - } - - /// <summary> - /// HideSwitchBtn - /// </summary> - /// <param name="statu"></param> - public void HideSwitchBtn(bool statu) - { - - } - - /// <summary> - /// WcdType=4锛氬紑鍚堝笜 - /// WcdType=0锛氬嵎甯� - /// </summary> - /// <param name="type"></param> - public void SetRollerShadeIcon(int type) - { - if(type==0) - { - OpenOrUpBtn.UnSelectedImagePath = "RollerShade/Up.png"; - OpenOrUpBtn.SelectedImagePath = "RollerShade/UpSelected.png"; - - CloseOrDownBtn.UnSelectedImagePath = "RollerShade/Down.png"; - CloseOrDownBtn.SelectedImagePath = "RollerShade/DownSelected.png"; - } - else - { - OpenOrUpBtn.UnSelectedImagePath = "RollerShade/Open.png"; - OpenOrUpBtn.SelectedImagePath = "RollerShade/OpenSelected.png"; - - CloseOrDownBtn.UnSelectedImagePath = "RollerShade/Close.png"; - CloseOrDownBtn.SelectedImagePath = "RollerShade/CloseSelected.png"; - } - } - - - /// <summary> - /// SetDeviceIcon - /// </summary> - /// <param name="imagePath"></param> - /// <param name="selectedImagePath"></param> - public void SetDeviceIcon(string imagePath, string selectedImagePath) - { - ImageBtn.UnSelectedImagePath = imagePath; - ImageBtn.SelectedImagePath = selectedImagePath; - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs deleted file mode 100755 index 27a7468..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/CategoryFunctionRow.cs +++ /dev/null @@ -1,225 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class CategoryFunctionRow : FrameLayout - { - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// Image - /// </summary> - public Button ImageBtn; - /// <summary> - /// ImageBG - /// </summary> - public Button ImageBG; - /// <summary> - /// SwitchBtn - /// </summary> - public Button SwitchBtn; - /// <summary> - /// ZoneBtn - /// </summary> - private Button StatuBtn; - /// <summary> - /// ClickBtn - /// </summary> - public Button ClickBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - v_Selected = value; - try - { - SetStatu(v_Selected); - } - catch - { - - } - } - get - { - return v_Selected; - } - } - - /// <summary> - /// FunctionRow - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public CategoryFunctionRow(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1022); - Height = Application.GetRealHeight(127-2); - //BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - - /// <summary> - /// Init - /// </summary> - /// <param name="imagePath"></param> - /// <param name="selectedImagePath"></param> - public void Init(string imagePath, string selectedImagePath) - { - ImageBG = new Button() - { - X = Application.GetRealWidth(45), - Width = Application.GetMinRealAverage(112), - Height = Application.GetMinRealAverage(112), - Gravity = Gravity.CenterVertical, - Radius = (uint)Application.GetMinRealAverage(112 / 2), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - SelectedBackgroundColor = ZigbeeColor.Current.GXCSelectedBackgroundColor, - Tag = Tag - }; - AddChidren(ImageBG); - - ImageBtn = new Button() - { - X = Application.GetRealWidth(63), - Width = Application.GetMinRealAverage(78), - Height = Application.GetMinRealAverage(78), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = imagePath, - SelectedImagePath = selectedImagePath, - Tag = Tag - }; - AddChidren(ImageBtn); - - NameBtn = new Button() - { - X = Application.GetRealWidth(181), - Y = Application.GetRealHeight(14), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(58), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize=14, - Tag = Tag - }; - AddChidren(NameBtn); - - StatuBtn = new Button - { - X = Application.GetRealWidth(181), - Y = Application.GetRealHeight(72), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(49), - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, - TextSize=10 - }; - AddChidren(StatuBtn); - - SwitchBtn = new Button() - { - X = Application.GetRealWidth(896), - Width = Application.GetMinRealAverage(78), - Height = Application.GetMinRealAverage(78), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - Tag = Tag - }; - AddChidren(SwitchBtn); - - var line = new Button() - { - X = Application.GetRealWidth(181), - Y = Height - 1, - Width = Application.GetRealWidth(821), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor, - Tag = Tag - }; - AddChidren(line); - - ClickBtn = new Button - { - Width=Application.GetRealWidth(890) - }; - AddChidren(ClickBtn); - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - - /// <summary> - /// SetZoneText - /// </summary> - /// <param name="title"></param> - public void SetStatuText(string title) - { - StatuBtn.Text = title; - } - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - SwitchBtn.IsSelected = statu; - NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = statu; - NameBtn.IsBold = statu; - } - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetOnLineStatu(bool statu) - { - NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = statu; - } - - /// <summary> - /// HideSwitchBtn - /// </summary> - /// <param name="statu"></param> - public void HideSwitchBtn(bool statu) - { - SwitchBtn.Visible = !statu; - } - - /// <summary> - /// SetDeviceIcon - /// </summary> - /// <param name="imagePath"></param> - /// <param name="selectedImagePath"></param> - public void SetDeviceIcon(string imagePath, string selectedImagePath) - { - ImageBtn.UnSelectedImagePath = imagePath; - ImageBtn.SelectedImagePath = selectedImagePath; - } - } -} \ No newline at end of file diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/CustomAlert.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/CustomAlert.cs deleted file mode 100755 index 23f0c78..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/CustomAlert.cs +++ /dev/null @@ -1,124 +0,0 @@ -锘縰sing System; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - public class CustomAlert : FrameLayout - { - /// <summary> - /// CancleBtn - /// </summary> - public Button CancleBtn; - /// <summary> - /// ComfrimBtn - /// </summary> - public Button ComfrimBtn; - /// <summary> - /// ResultEventHandler - /// </summary> - public Action<bool> ResultEventHandler; - - public CustomAlert() - { - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(1920); - } - - /// <summary> - /// Show - /// </summary> - /// <param name="tip"></param> - /// <param name="message"></param> - /// <param name="cancle"></param> - /// <param name="comfirm"></param> - public void Show(string tip,string message,string cancle,string comfirm) - { - var tipBackGround = new FrameLayout - { - BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor - }; - AddChidren(tipBackGround); - - var tipView = new FrameLayout - { - Height = Application.GetRealHeight(478), - Width = Application.GetRealWidth(792), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - Radius = (uint)Application.GetRealHeight(30), - Gravity = Gravity.Center - }; - tipBackGround.AddChidren(tipView); - - var tipBtn = new Button - { - Y=Application.GetRealHeight(69), - Width=Application.GetRealWidth(500), - Height=Application.GetRealHeight(63), - Gravity=Gravity.CenterHorizontal, - TextColor=ZigbeeColor.Current.GXCTextBlackColor, - TextSize=15, - Text=tip - }; - tipView.AddChidren(tipBtn); - - var messageBtn = new Button - { - Y = Application.GetRealHeight(180), - Width = Application.GetRealWidth(674), - Height = Application.GetRealHeight(140), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 15, - Text = message, - IsMoreLines=true - }; - tipView.AddChidren(messageBtn); - - CancleBtn = new Button - { - Y = Application.GetRealHeight(351), - Width = Application.GetRealWidth(396), - Height = Application.GetRealHeight(127), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 15, - BackgroundColor=ZigbeeColor.Current.GXCButtonUnSelectedColor3, - Text = cancle - }; - tipView.AddChidren(CancleBtn); - - ComfrimBtn = new Button - { - X = Application.GetRealWidth(396), - Y = Application.GetRealHeight(351), - Width = Application.GetRealWidth(396), - Height = Application.GetRealHeight(127), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 15, - BackgroundColor = ZigbeeColor.Current.GXCButtonBlackSelectedColor, - Text = comfirm - }; - tipView.AddChidren(ComfrimBtn); - - CancleBtn.MouseUpEventHandler = (sender, e) => - { - RemoveFromParent(); - ResultEventHandler?.Invoke(false); - }; - - ComfrimBtn.MouseUpEventHandler = (sender, e) => - { - RemoveFromParent(); - ResultEventHandler?.Invoke(true); - }; - } - /// <summary> - /// Show - /// </summary> - /// <param name="message"></param> - public void Show(string message) - { - Show(Language.StringByID(R.MyInternationalizationString.TIP), message, Language.StringByID(R.MyInternationalizationString.Cancel), Language.StringByID(R.MyInternationalizationString.Confrim)); - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs deleted file mode 100755 index 1b5cb52..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs +++ /dev/null @@ -1,430 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Globalization; -using Shared.Common; -using Shared.Phone.UserCenter; -using ZigBee.Device; - -namespace Shared.Phone.Device.CommonForm -{ - public class DeviceDetailInfo : FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// 鎵�灞炲尯鍩� - /// </summary> - private string roomName; - /// <summary> - /// action - /// </summary> - public Action<CommonDevice, Common.Room> EditAction; - /// <summary> - /// curRoom - /// </summary> - private Common.Room curRoom; - /// <summary> - /// curRoom - /// </summary> - private Common.Room befRoom; - /// <summary> - /// sharedRow - /// </summary> - private DeviceInfoRow sharedRow; - /// <summary> - /// functionTypeRow - /// </summary> - private DeviceInfoRow functionTypeRow; - - - #endregion - - #region 鈼� 绉婚櫎____________________________ - /// <summary> - /// RemoveFromParent - /// </summary> - public override void RemoveFromParent() - { - EditAction = null; - base.RemoveFromParent(); - } - #endregion - - #region 鈼� 鏋勯�犳柟娉昣________________________ - /// <summary> - /// DeviceDetailInfo - /// </summary> - public DeviceDetailInfo() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - - #endregion - - #region 鈼� 鏄剧ず鐣岄潰_________________________ - /// <summary> - /// Show - /// </summary> - /// <param name="device"></param> - /// <param name="room"></param> - public void Show(CommonDevice device, Common.Room room) - { - Init(device); - - AddTop(); - - AddBodyView(device,room); - - } - - #endregion - - #region Add____________________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.FunctionSetting); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - } - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView(CommonDevice device, Common.Room room) - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var deviceBG = new Button() - { - Y = Application.GetRealHeight(118), - Width = Application.GetMinRealAverage(207), - Height = Application.GetMinRealAverage(207), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - Radius = (uint)Application.GetMinRealAverage(207/2) - }; - bodyFrameLayout.AddChidren(deviceBG); - - var deviceBG2 = new Button() - { - Y = Application.GetRealHeight(130), - Width = Application.GetMinRealAverage(184), - Height = Application.GetMinRealAverage(184), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCSelectedBackgroundColor, - Radius = (uint)Application.GetMinRealAverage(184/2) - }; - bodyFrameLayout.AddChidren(deviceBG2); - - var deviceIMG = new Button() - { - Y = Application.GetRealHeight(161), - Width = Application.GetMinRealAverage(124), - Height = Application.GetMinRealAverage(124), - UnSelectedImagePath = device.IconPath, - Gravity = Gravity.CenterHorizontal - }; - bodyFrameLayout.AddChidren(deviceIMG); - - var info = Common.LocalDevice.Current.GetDeviceBelongEnumInfo(device); - - var deviceTypeName = new Button() - { - Y = Application.GetRealHeight(360), - Width = Application.GetRealWidth(900), - Height = Application.GetRealHeight(80), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextID = info.BeloneTextId, - Gravity = Gravity.CenterHorizontal, - TextSize = 15 - }; - bodyFrameLayout.AddChidren(deviceTypeName); - - - var infoFL = new FrameLayout - { - Y = Application.GetRealHeight(540), - Height = Application.GetRealHeight(1195), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(infoFL); - var rectCornerID = HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight; - infoFL.SetCornerWithSameRadius(Application.GetRealHeight(58), rectCornerID); - - var tipBtn = new Button - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(81), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(60), - TextColor = ZigbeeColor.Current.GXCTextDeepBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize = 15, - TextID = R.MyInternationalizationString.EditInfo - }; - infoFL.AddChidren(tipBtn); - - var infoScrolView = new VerticalScrolViewLayout - { - Y = Application.GetRealHeight(170-12), - Height = Application.GetRealHeight(600), - ScrollEnabled = false, - VerticalScrollBarEnabled = false - }; - infoFL.AddChidren(infoScrolView); - - var nameFL = new FrameLayout - { - Height = Application.GetRealHeight(127 + 12) - }; - infoScrolView.AddChidren(nameFL); - var nameRow = new DeviceInfoEditRow(12); - nameRow.Init(); - nameRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.FunctionName)} : "); - nameRow.SetTitle(string.IsNullOrEmpty(Common.LocalDevice.Current.GetDeviceEpointName(device)) ? Language.StringByID(R.MyInternationalizationString.UNKnown) : Common.LocalDevice.Current.GetDeviceEpointName(device)); - nameFL.AddChidren(nameRow); - - - var zoneFL = new FrameLayout - { - Height = Application.GetRealHeight(127 + 12) - }; - if (room != null && room.IsLove == false) - { - infoScrolView.AddChidren(zoneFL); - } - var zoneRow = new DeviceInfoRow(12); - zoneRow.Init(); - zoneRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.BelongZone)} : "); - zoneRow.SetTitle(roomName); - zoneFL.AddChidren(zoneRow); - - var modelFL = new FrameLayout - { - Height = Application.GetRealHeight(127 + 12) - }; - infoScrolView.AddChidren(modelFL); - var modelRow = new DeviceInfoRow(12); - modelRow.Init(); - modelRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.BelongModel)} : "); - modelRow.SetTitle(string.IsNullOrEmpty(device.DeviceName) ? Language.StringByID(R.MyInternationalizationString.UNKnown) : device.DeviceName); - modelRow.HideNext(true); - modelFL.AddChidren(modelRow); - - if (device.Type == DeviceType.OnOffOutput || device.Type == DeviceType.AirSwitch) - { - var typeFL = new FrameLayout - { - Height = Application.GetRealHeight(127 + 12) - }; - infoScrolView.AddChidren(typeFL); - functionTypeRow = new DeviceInfoRow(12); - functionTypeRow.Init(); - functionTypeRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.FunctionType)} : "); - //functionTypeRow.SetTitle(device.CommonDevice.DfunctionType); - typeFL.AddChidren(functionTypeRow); - var dfunctionType = device.DfunctionType; - - //鍔熻兘绫诲瀷鐨勭炕璇戝悕瀛� - string strT = string.Empty; - if (dfunctionType == DeviceFunctionType.A鐏厜) - { - strT = Language.StringByID(R.MyInternationalizationString.uLight); - } - else if (dfunctionType == DeviceFunctionType.A寮�鍏�) - { - strT = Language.StringByID(R.MyInternationalizationString.uSwitch); - } - else if (dfunctionType == DeviceFunctionType.A鎻掑骇) - { - strT = Language.StringByID(R.MyInternationalizationString.uSocket1); - } - functionTypeRow.SetTitle(strT); - - functionTypeRow.ClickBtn.MouseUpEventHandler += (sender, e) => - { - var DfunctionType = device.DfunctionType; - - //鍔熻兘绫诲瀷鐨勭炕璇戝悕瀛� - int nowSelectNo = 1; - string strType = string.Empty; - if (DfunctionType == DeviceFunctionType.A鐏厜) - { - strType = Language.StringByID(R.MyInternationalizationString.uLight); - nowSelectNo = 1; - } - else if (DfunctionType == DeviceFunctionType.A寮�鍏�) - { - strType = Language.StringByID(R.MyInternationalizationString.uSwitch); - nowSelectNo = 0; - } - else if (DfunctionType == DeviceFunctionType.A鎻掑骇) - { - strType = Language.StringByID(R.MyInternationalizationString.uSocket1); - nowSelectNo = 2; - } - //鏄剧ず鍒楄〃 - var listText = new List<string>(); - listText.Add(Language.StringByID(R.MyInternationalizationString.uSwitch));//寮�鍏� - listText.Add(Language.StringByID(R.MyInternationalizationString.uLight));//鐏厜 - listText.Add(Language.StringByID(R.MyInternationalizationString.uSocket1));//鎻掑骇 - //鏍囬:閫夋嫨鍔熻兘绫诲瀷 - var title = Language.StringByID(R.MyInternationalizationString.uSelectFunctionType); - - var form = new BottomItemSelectForm(); - form.AddForm(title, listText, nowSelectNo); - form.FinishSelectEvent += (selectNo) => - { - functionTypeRow.NameText.Text = listText[selectNo]; - nowSelectNo = selectNo; - //璁板綍璧峰綋鍓嶉�夋嫨鐨勫姛鑳界被鍨� - if (selectNo == 0) - { - device.DfunctionType = DeviceFunctionType.A寮�鍏�; - } - else if (selectNo == 1) - { - device.DfunctionType = DeviceFunctionType.A鐏厜; - } - else - { - device.DfunctionType = DeviceFunctionType.A鎻掑骇; - } - }; - }; - } - - - var confirmBtn = new CommonForm.CompleteButton(962, 900, 127); - confirmBtn.SetTitle(R.MyInternationalizationString.Save); - infoFL.AddChidren(confirmBtn); - - #region event - EventHandler<MouseEventArgs> selectZoneEvent = (sender, e) => - { - var zone = new SelectZone(); - zone.Init(); - zone.ZoneAction += (selectRoom) => - { - curRoom = selectRoom; - zoneRow.SetTitle(HdlRoomLogic.Current.GetZoneName(selectRoom)); - }; - }; - zoneRow.ClickBtn.MouseUpEventHandler += selectZoneEvent; - - EventHandler<MouseEventArgs> selectDeviceIconEvent = (sender, e) => - { - var localPic = new DeviceIconSelectedIMGByLocal(); - UserView.HomePage.Instance.AddChidren(localPic); - UserView.HomePage.Instance.PageIndex += 1; - localPic.Show(); - localPic.action = (unSelectedImagePath, selectedImagePath) => - { - deviceIMG.UnSelectedImagePath = unSelectedImagePath; - deviceIMG.SelectedImagePath = selectedImagePath; - device.IsCustomizeImage = true; - }; - }; - deviceIMG.MouseUpEventHandler += selectDeviceIconEvent; - - confirmBtn.MouseUpEventHandler += (sender, e) => - { - try - { - CommonPage.Loading.Start(); - if (device == null) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.FailedPleaseTryAgain)); - return; - } - if (device.Type == DeviceType.OnOffOutput || device.Type == DeviceType.AirSwitch) - { - if (device.IsCustomizeImage == false) - { - if (device.DfunctionType == DeviceFunctionType.A寮�鍏�) - { - device.IconPath = "Device/Switch.png"; - } - else if (device.DfunctionType == DeviceFunctionType.A鎻掑骇) - { - device.IconPath = "Device/Socket1.png"; - } - else if (device.DfunctionType == DeviceFunctionType.A鐏厜) - { - device.IconPath = "Device/Light.png"; - } - } - else - { - //鏀瑰浘鐗� - device.IconPath = deviceIMG.UnSelectedImagePath; - } - } - else - { - //鏀瑰浘鐗� - device.IconPath = deviceIMG.UnSelectedImagePath; - } - bool result; - new System.Threading.Thread(async () => - { - result = await LocalDevice.Current.ReName(device, nameRow.NameText.Text.Trim()); - Application.RunOnMainThread(() => - { - CommonPage.Loading.Hide(); - if (result) - { - //鏀规埧闂� - HdlRoomLogic.Current.ChangedRoom(device, curRoom.Id); - device.ReSave(); - EditAction?.Invoke(device, curRoom); - RemoveFromParent(); - } - else - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.FailedPleaseTryAgain)); - } - }); - }) - { IsBackground = true }.Start(); - } - catch - { - CommonPage.Loading.Hide(); - } - }; - - #endregion - } - - /// <summary> - /// Init - /// </summary> - /// <param name="device"></param> - public void Init(CommonDevice device) - { - roomName = HdlRoomLogic.Current.GetRoomNameByDevice(device, "锛�"); - befRoom = HdlRoomLogic.Current.GetRoomByDevice(device); - curRoom = HdlRoomLogic.Current.GetRoomByDevice(device); - } - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoEditRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoEditRow.cs deleted file mode 100755 index 9ef77e5..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoEditRow.cs +++ /dev/null @@ -1,123 +0,0 @@ -锘縰sing System; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - public class DeviceInfoEditRow:FrameLayout - { - /// <summary> - /// TipBtn - /// </summary> - public Button TipBtn; - /// <summary> - /// NameText - /// </summary> - public EditText NameText; - - /// <summary> - /// DeviceInfoEditRow - /// </summary> - public DeviceInfoEditRow(int y) - { - X = Application.GetRealWidth(0); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(127); - } - - /// <summary> - /// Init - /// </summary> - public void Init() - { - TipBtn = new Button - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Width = Application.GetRealWidth(223), - Height = Application.GetRealHeight(80), - Gravity = Gravity.CenterVertical, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize = CommonFormResouce.TextSize - }; - AddChidren(TipBtn); - - NameText = new EditText - { - X = Application.GetRealWidth(300), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(80), - Gravity = Gravity.CenterVertical, - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, - PlaceholderTextColor=ZigbeeColor.Current.GXCPlaceHolderTextColor2, - TextAlignment = TextAlignment.CenterLeft, - TextSize=CommonFormResouce.TextSize - }; - AddChidren(NameText); - - var line = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Height - 1, - Width = Application.GetRealWidth(965), - Height = 1, - BackgroundColor = UserCenter.UserCenterColor.Current.ButtomLine, - }; - AddChidren(line); - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameText.Text = title; - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - - /// <summary> - /// SetPlaceHoldText - /// </summary> - /// <param name="holdText"></param> - public void SetPlaceHoldText(string holdText) - { - NameText.PlaceholderText = holdText; - } - /// <summary> - /// SetPlaceHoldText - /// </summary> - /// <param name="holdText"></param> - public void SetPlaceHoldText(int holdText) - { - SetPlaceHoldText(Language.StringByID(holdText)); - } - - /// <summary> - /// SetName - /// </summary> - /// <param name="title"></param> - public void SetTipTitle(string title) - { - TipBtn.Text = title; - } - - /// <summary> - /// SetTipTitle - /// </summary> - /// <param name="title"></param> - public void SetTipTitle(int title) - { - SetTipTitle(Language.StringByID(title)); - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs deleted file mode 100755 index 7bfe15c..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoWithZoneRow.cs +++ /dev/null @@ -1,152 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class DeviceInfoWithZoneRow : FrameLayout - { - /// <summary> - /// 鍥剧墖 - /// </summary> - public Button IconButton; - /// <summary> - /// NameBtn - /// </summary> - public Button NameButton; - /// <summary> - /// ZoneButton - /// </summary> - public Button ZoneButton; - /// <summary> - /// NextBtn - /// </summary> - public Button SelectBtn; - /// <summary> - /// ClickButton - /// </summary> - public Button ClickButton; - /// <summary> - /// line - /// </summary> - Button line; - /// <summary> - /// DeviceInfoWithZoneRow - /// </summary> - /// <param name="y"></param> - public DeviceInfoWithZoneRow(int y) - { - X = Application.GetRealWidth(0); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(127); - } - - /// <summary> - /// Init - /// </summary> - public void Init() - { - IconButton = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Height = Application.GetMinRealAverage(80), - Width = Application.GetMinRealAverage(80), - Gravity = Gravity.CenterVertical, - }; - AddChidren(IconButton); - - NameButton = new Button - { - X = Application.GetRealWidth(176), - Y=Application.GetRealHeight(12), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextAlignment = TextAlignment.CenterLeft - }; - AddChidren(NameButton); - - ZoneButton = new Button - { - X = Application.GetRealWidth(176), - Y = Application.GetRealHeight(72), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(50), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, - TextAlignment = TextAlignment.CenterLeft - }; - AddChidren(ZoneButton); - - SelectBtn = new Button - { - X = Application.GetRealWidth(910), - Width = Application.GetMinRealAverage(100), - Height = Application.GetMinRealAverage(100), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Scene/Selected.png", - Visible = false - }; - AddChidren(SelectBtn); - - line = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Height - 1, - Width = Application.GetRealWidth(965), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - AddChidren(line); - ClickButton = new Button - { - - }; - AddChidren(ClickButton); - } - - /// <summary> - /// SetName - /// </summary> - /// <param name="title"></param> - public void SetName(string title) - { - NameButton.Text = title; - } - - - /// <summary> - /// SetZone - /// </summary> - /// <param name="title"></param> - public void SetZone(string title) - { - ZoneButton.Text = title; - } - - /// <summary> - /// SetIcon - /// </summary> - /// <param name="imagePath"></param> - public void SetIcon(string imagePath) - { - IconButton.UnSelectedImagePath = imagePath; - } - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - SelectBtn.Visible = statu; - } - /// <summary> - /// HideLine - /// </summary> - /// <param name="statu"></param> - public void HideLine(bool statu) - { - line.Visible = !statu; - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionButton.cs deleted file mode 100755 index fba65f2..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionButton.cs +++ /dev/null @@ -1,140 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class FunctionButton:FrameLayout - { - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// Image - /// </summary> - public Button ImageBtn; - /// <summary> - /// ImageBG - /// </summary> - public Button ImageBG; - /// <summary> - /// ClickBtn - /// </summary> - public Button ClickBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - try - { - v_Selected = value; - SetStatu(v_Selected); - } - catch { }; - } - get - { - return v_Selected; - } - } - - /// <summary> - /// FunctionButton - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public FunctionButton(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(220); - Height = Application.GetRealHeight(279); - } - - /// <summary> - /// Init - /// </summary> - /// <param name="imagePath"></param> - public void Init(string imagePath,string selectedImagePath) - { - ImageBG = new Button() - { - Y = Application.GetRealHeight(35), - Width = Application.GetMinRealAverage(150), - Height = Application.GetMinRealAverage(173), - Gravity=Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/Category_FunctionBG.png", - SelectedImagePath = "Item/Category_FunctionBGSelected.png", - Tag=Tag - }; - AddChidren(ImageBG); - - ImageBtn = new Button() - { - Y = Application.GetRealHeight(63), - Width = Application.GetMinRealAverage(84), - Height = Application.GetMinRealAverage(84), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = imagePath, - SelectedImagePath = selectedImagePath, - Tag = Tag, - IsSelected=true - }; - AddChidren(ImageBtn); - - NameBtn = new Button() - { - Y = Application.GetRealHeight(200), - Width = Application.GetRealWidth(170), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, - Tag = Tag, - TextSize=11 - }; - AddChidren(NameBtn); - - ClickBtn = new Button - { - Tag = Tag - }; - AddChidren(ClickBtn); - } - - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - ImageBG.IsSelected = NameBtn.IsSelected = statu; - NameBtn.IsBold = statu; - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionMainView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionMainView.cs deleted file mode 100755 index 448da2e..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionMainView.cs +++ /dev/null @@ -1,235 +0,0 @@ -锘縰sing System; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - public class FunctionMainView : FrameLayout - { - /// <summary> - /// name - /// </summary> - public Button NameButton; - /// <summary> - /// collect - /// </summary> - public Button CollectButton; - /// <summary> - /// Image - /// </summary> - public Button IconButton; - /// <summary> - /// ImageBG - /// </summary> - public Button ImageBG; - - - /// <summary> - /// statu - /// </summary> - public Button StatuButton; - /// <summary> - /// switch - /// </summary> - public Button SwitchButton; - - /// <summary> - /// CardBG - /// </summary> - public Button CardBG; - - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - try - { - v_Selected = value; - SetStatu(v_Selected); - } - catch { }; - } - get - { - return v_Selected; - } - } - - public FunctionMainView(int x,int y) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetMinRealAverage(487); - Height = Application.GetMinRealAverage(348); - } - - /// <summary> - /// init - /// </summary> - public void Init() - { - //var bg = new Button - //{ - // Width = Application.GetMinReal(487), - // Height = Application.GetMinReal(348), - //UnSelectedImagePath = "Item/FunctionViewBG.png" - //}; - //AddChidren(bg); - - CardBG = new Button - { - Width = Application.GetMinRealAverage(487), - Height = Application.GetMinRealAverage(348), - UnSelectedImagePath = "Item/FunctionCardView.png", - SelectedImagePath = "Item/FunctionCardViewSelected.png", - Gravity=Gravity.CenterHorizontal - }; - AddChidren(CardBG); - - NameButton = new Button() - { - X=Application.GetMinRealAverage(40), - Y = Application.GetMinRealAverage(17), - Width = Application.GetMinRealAverage(320), - Height = Application.GetMinRealAverage(63), - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextAlignment=TextAlignment.CenterLeft, - TextSize=15 - }; - AddChidren(NameButton); - - CollectButton = new Button - { - X = Application.GetMinRealAverage(366), - Y = Application.GetMinRealAverage(14), - Width = Application.GetMinRealAverage(107), - Height = Application.GetMinRealAverage(107), - UnSelectedImagePath="Item/Collection1.png", - SelectedImagePath="Item/CollectionSelected1.png" - }; - AddChidren(CollectButton); - - var imgFL = new FrameLayout - { - X = Application.GetMinRealAverage(40), - Y = Application.GetMinRealAverage(101), - Width = Application.GetMinRealAverage(124), - Height = Application.GetMinRealAverage(124) - }; - AddChidren(imgFL); - - ImageBG = new Button() - { - //X=Application.GetMinRealAverage(40), - //Y = Application.GetMinRealAverage(101), - Width = Application.GetMinRealAverage(124), - Height = Application.GetMinRealAverage(124), - Gravity=Gravity.Center, - BackgroundColor = ZigbeeColor.Current.GXCForFunctionUnSelectedBackgroundColor, - SelectedBackgroundColor = ZigbeeColor.Current.GXCForFunctionBackgroundColor, - Radius=(uint)Application.GetMinRealAverage(124/2) - }; - imgFL.AddChidren(ImageBG); - - IconButton = new Button() - { - //X=Application.GetMinRealAverage(63), - //Y = Application.GetMinRealAverage(121), - Width = Application.GetMinRealAverage(84), - Height = Application.GetMinRealAverage(84), - Gravity=Gravity.Center - }; - imgFL.AddChidren(IconButton); - - StatuButton = new Button() - { - X=Application.GetMinRealAverage(46), - Y = Application.GetMinRealAverage(239), - Width = Application.GetMinRealAverage(279), - Height = Application.GetMinRealAverage(60), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, - TextAlignment=TextAlignment.CenterLeft, - TextSize=14, - IsBold=true - }; - AddChidren(StatuButton); - - SwitchButton = new Button - { - X = Application.GetMinRealAverage(325), - Y = Application.GetMinRealAverage(202), - Width = Application.GetMinRealAverage(109), - Height = Application.GetMinRealAverage(104), - UnSelectedImagePath = "Item/Switch1.png", - SelectedImagePath = "Item/SwitchSelected1.png" - }; - AddChidren(SwitchButton); - } - - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - private void SetStatu(bool statu) - { - NameButton.IsSelected = IconButton.IsSelected = SwitchButton.IsSelected = StatuButton.IsSelected = CardBG.IsSelected = statu; - NameButton.IsBold = statu; - } - - /// <summary> - /// SetDeviceImage - /// </summary> - /// <param name="img"></param> - /// <param name="seletedImg"></param> - public void SetDeviceImage(string img,string seletedImg) - { - IconButton.UnSelectedImagePath = img; - IconButton.SelectedImagePath = seletedImg; - } - - /// <summary> - /// SetDeviceName - /// </summary> - /// <param name="name"></param> - public void SetDeviceName(string name) - { - NameButton.Text = name; - } - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatuText(string statu) - { - StatuButton.Text = statu; - } - - /// <summary> - /// SetCollect - /// </summary> - /// <param name="collect"></param> - public void SetCollect(bool collect) - { - CollectButton.IsSelected = collect; - } - /// <summary> - /// CanControl - /// </summary> - /// <param name="cmd"></param> - public void CanControl(bool cmd) - { - SwitchButton.Visible = cmd; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionRow.cs deleted file mode 100755 index 651140b..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionRow.cs +++ /dev/null @@ -1,177 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class FunctionRow : FrameLayout - { - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// Image - /// </summary> - public Button ImageBtn; - /// <summary> - /// ImageBG - /// </summary> - public Button ImageBG; - /// <summary> - /// SwitchBtn - /// </summary> - public Button SwitchBtn; - /// <summary> - /// ClickBtn - /// </summary> - public Button ClickBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - v_Selected = value; - try - { - SetStatu(v_Selected); - } - catch - { - - } - } - get - { - return v_Selected; - } - } - - /// <summary> - /// FunctionRow - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public FunctionRow(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(127); - } - - /// <summary> - /// Init - /// </summary> - /// <param name="imagePath"></param> - /// <param name="selectedImagePath"></param> - public void Init(string imagePath, string selectedImagePath,bool click=false) - { - ImageBG = new Button() - { - X = Application.GetRealWidth(45), - Width = Application.GetMinRealAverage(112), - Height = Application.GetMinRealAverage(112), - Gravity = Gravity.CenterVertical, - Radius=(uint)Application.GetMinRealAverage(112/2), - BackgroundColor=ZigbeeColor.Current.GXCGrayBackgroundColor, - SelectedBackgroundColor=ZigbeeColor.Current.GXCSelectedBackgroundColor, - Tag = Tag - }; - AddChidren(ImageBG); - - ImageBtn = new Button() - { - X = Application.GetRealWidth(63), - Width = Application.GetMinRealAverage(78), - Height = Application.GetMinRealAverage(78), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = imagePath, - SelectedImagePath = selectedImagePath, - Tag = Tag - }; - AddChidren(ImageBtn); - - NameBtn = new Button() - { - X = Application.GetRealWidth(200), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(80), - Gravity = Gravity.CenterVertical, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, - TextAlignment = TextAlignment.CenterLeft, - Tag = Tag, - TextSize = 14 - }; - AddChidren(NameBtn); - - SwitchBtn = new Button() - { - X = Application.GetRealWidth(896), - Width = Application.GetMinRealAverage(78), - Height = Application.GetMinRealAverage(78), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - Tag = Tag - }; - AddChidren(SwitchBtn); - - var line = new Button() - { - X = Application.GetRealWidth(200), - Y = Height - 1, - Width = Application.GetRealWidth(821), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - Tag = Tag - }; - AddChidren(line); - - ClickBtn = new Button(); - if (click) - { - AddChidren(ClickBtn); - } - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = SwitchBtn.IsSelected = statu; - } - - /// <summary> - /// HideSwitchBtn - /// </summary> - /// <param name="statu"></param> - public void HideSwitchBtn(bool statu) - { - SwitchBtn.Visible = statu; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomButton.cs deleted file mode 100755 index 15f15e1..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomButton.cs +++ /dev/null @@ -1,151 +0,0 @@ -锘縰sing System; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - /// <summary> - /// 鎴块棿鎸夐挳鍥剧墖 - /// </summary> - public class RoomButton : FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// 鑳屾櫙鍥� - /// </summary> - public Button BackGroundBtn; - /// <summary> - /// 鐐瑰嚮浜嬩欢 - /// </summary> - public Action<RoomButton, MouseEventArgs> ButtonClickEvent; - /// <summary> - /// isSelected - /// </summary> - private bool v_Selected; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - try - { - v_Selected = value; - SetStatu(v_Selected); - } - catch - { - v_Selected = false; - SetStatu(v_Selected); - } - } - get - { - return v_Selected; - } - } - - #endregion - - #region 鈼� 鏋勯�犳柟娉昣________________________ - - /// <summary> - /// ButtonLineForm - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public RoomButton(int x, int y) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetMinRealAverage(255); - Height = Application.GetMinRealAverage(159); - } - - #endregion - - #region 鈼� 澶栭儴鏂规硶________________________ - /// <summary> - /// Init - /// </summary> - public void Init() - { - BackGroundBtn = new Button - { - Width = Application.GetMinRealAverage(255), - Height = Application.GetMinRealAverage(159), - UnSelectedImagePath = "Room/IconBackground.png", - SelectedImagePath = "Room/IconSelectedBackground.png", - Gravity = Gravity.Center - }; - AddChidren(BackGroundBtn); - - NameBtn = new Button() - { - Width = Application.GetMinRealAverage(160), - Height = Application.GetMinRealAverage(159 / 2), - Gravity = Gravity.Center, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize = 12 - }; - AddChidren(NameBtn); - - BackGroundBtn.MouseUpEventHandler += Button_MouseUpEventHandler; - NameBtn.MouseUpEventHandler += Button_MouseUpEventHandler; - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - NameBtn.IsSelected = BackGroundBtn.IsSelected = statu; - //NameBtn.TextSize = statu ? CommonFormResouce.TextSize_Selected : CommonFormResouce.TextSize; - NameBtn.IsBold = statu; - } - - #endregion - - #region 鈼� 鐐瑰嚮浜嬩欢_________________________ - - /// <summary> - /// 鐐瑰嚮浜嬩欢 - /// </summary> - /// <param name="sender"></param> - /// <param name="e"></param> - private void Button_MouseUpEventHandler(object sender, MouseEventArgs e) - { - try - { - this.ButtonClickEvent?.Invoke(this, e); - } - catch (Exception ex) - { - } - } - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomMainView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomMainView.cs deleted file mode 100755 index 8096d1c..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomMainView.cs +++ /dev/null @@ -1,110 +0,0 @@ -锘縰sing System; -using Shared.Common; -using Shared.Phone.UserView; - -namespace Shared.Phone.Device.CommonForm -{ - public class RoomMainView : FrameLayout - { - /// <summary> - /// SceneIcon - /// </summary> - public ImageView Icon; - /// <summary> - /// RoomNameButton - /// </summary> - public Button RoomNameButton; - /// <summary> - /// CardBG - /// </summary> - private Button CardBG; - /// <summary> - /// ClickBtn - /// </summary> - public Button ClickBtn; - /// <summary> - /// 鏄惁鍙互瑙﹀彂鐐瑰嚮浜嬩欢 - /// </summary> - public bool CanClick = true; - /// <summary> - /// RoomMainView - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public RoomMainView(int x, int y) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetMinRealAverage(487); - Height = Application.GetMinRealAverage(348); - } - - /// <summary> - /// init - /// </summary> - public void Init(FrameLayout frameLayout, Common.Room room) - { - CardBG = new Button - { - Width = Application.GetMinRealAverage(495), - Height = Application.GetMinRealAverage(354), - UnSelectedImagePath = "Room/RoomCardView.png", - Gravity = Gravity.CenterHorizontal - }; - AddChidren(CardBG); - - Icon = new ImageView - { - X = Application.GetMinRealAverage(14), - Width = Application.GetMinRealAverage(467), - Height = Application.GetMinRealAverage(311), - Gravity = Gravity.CenterHorizontal, - Radius=(uint)Application.GetMinRealAverage(29) - }; - AddChidren(Icon); - - var nameBG = new Button - { - X=Application.GetMinRealAverage(14), - Width = Application.GetMinRealAverage(141), - Height = Application.GetMinRealAverage(84), - UnSelectedImagePath = "Room/RoomCardView_Name.png", - }; - AddChidren(nameBG); - - RoomNameButton = new Button() - { - X = Application.GetMinRealAverage(14), - Width = Application.GetMinRealAverage(141), - Height = Application.GetMinRealAverage(84), - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize=14, - IsBold=true - }; - AddChidren(RoomNameButton); - - ClickBtn = new Button { }; - AddChidren(ClickBtn); - - } - - /// <summary> - /// SetRoomName - /// </summary> - /// <param name="name"></param> - public void SetRoomName(string name) - { - RoomNameButton.Text = name; - } - - /// <summary> - /// SetRoomIcon - /// </summary> - /// <param name="imagePath"></param> - public void SetRoomIcon(string imagePath) - { - Icon.ImagePath = imagePath; - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomNoNameMainView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomNoNameMainView.cs deleted file mode 100755 index 3a978ef..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomNoNameMainView.cs +++ /dev/null @@ -1,105 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class RoomNoNameMainView : FrameLayout - { - /// <summary> - /// SceneIcon - /// </summary> - public Button Icon; - /// <summary> - /// RoomNameButton - /// </summary> - public Button RoomNameButton; - /// <summary> - /// CardBG - /// </summary> - private Button CardBG; - /// <summary> - /// iconFL - /// </summary> - public FrameLayout iconFL; - - /// <summary> - /// RoomMainView - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public RoomNoNameMainView(int x, int y) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetMinRealAverage(487); - Height = Application.GetMinRealAverage(348); - } - - /// <summary> - /// init - /// </summary> - public void Init() - { - CardBG = new Button - { - Width = Application.GetMinRealAverage(495), - Height = Application.GetMinRealAverage(354), - UnSelectedImagePath = "Room/RoomCardView.png", - Gravity = Gravity.CenterHorizontal - }; - AddChidren(CardBG); - - iconFL = new FrameLayout - { - X = Application.GetMinRealAverage(14), - Width = Application.GetMinRealAverage(467), - Height = Application.GetMinRealAverage(311), - Gravity = Gravity.CenterHorizontal, - Radius = (uint)Application.GetMinRealAverage(29), - BackgroundColor=ZigbeeColor.Current.GXCBlackBackgroundColor3 - }; - AddChidren(iconFL); - - Icon = new Button - { - X = Application.GetMinRealAverage(115), - Y=Application.GetMinRealAverage(141), - Width = Application.GetMinRealAverage(92), - Height = Application.GetMinRealAverage(72), - UnSelectedImagePath="Room/NoNameRoom.png" - }; - iconFL.AddChidren(Icon); - - RoomNameButton = new Button() - { - X = Application.GetMinRealAverage(230), - Y = Application.GetMinRealAverage(141), - Width = Application.GetMinRealAverage(141), - Height = Application.GetMinRealAverage(84), - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextID=R.MyInternationalizationString.Unallocated, - TextSize=14, - IsBold=true -, }; - AddChidren(RoomNameButton); - } - - /// <summary> - /// SetRoomName - /// </summary> - /// <param name="name"></param> - public void SetRoomName(string name) - { - RoomNameButton.Text = name; - } - - /// <summary> - /// SetRoomIcon - /// </summary> - /// <param name="imagePath"></param> - public void SetRoomIcon(string imagePath) - { - Icon.UnSelectedImagePath = imagePath; - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs index 130617e..21d6073 100755 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs @@ -79,8 +79,8 @@ var frameBackGroudTemp = new FrameLayout(); frameBackGroudTemp.Width = roomBackView.Width; frameBackGroudTemp.Height = roomBackView.Height; - frameBackGroudTemp.Radius = roomBackView.Radius; - frameBackGroudTemp.BackgroundColor = 0x12000000; + frameBackGroudTemp.Radius = (uint)Application.GetRealHeight(17); + frameBackGroudTemp.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor; roomBackView.AddChidren(frameBackGroudTemp); roomNameBackground = new FrameLayout diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/RowLayoutDeleteButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/RowLayoutDeleteButton.cs deleted file mode 100755 index c13eb11..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/RowLayoutDeleteButton.cs +++ /dev/null @@ -1,25 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - /// <summary> - /// Rowlayout delete button. - /// 鑷畾涔夊彸婊戝垹闄ゆ寜閽� - /// 榛樿绾㈣壊鑳屾櫙 鐧借壊瀛椾綋 鏂囧瓧灞呬腑 榛樿鍦嗚--CommonPage.BigFormRadius - /// </summary> - public class RowLayoutDeleteButton:Button - { - /// <summary> - /// Initializes a new instance of the <see cref="T:Shared.Phone.Device.CommonForm.RowLayoutDeleteButton"/> class. - /// </summary> - public RowLayoutDeleteButton() - { - BackgroundColor = ZigbeeColor.Current.GXCRedColor; - TextID = R.MyInternationalizationString.Delete; - TextColor = ZigbeeColor.Current.GXCTextWhiteColor; - TextAlignment = TextAlignment.Center; - TextSize = 14; - //Radius = CommonPage.BigFormRadius; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/RowLayoutEditButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/RowLayoutEditButton.cs deleted file mode 100755 index 1da4d87..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/RowLayoutEditButton.cs +++ /dev/null @@ -1,24 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - /// <summary> - /// Rowlayout edit button. - /// 鑷畾涔夊彸婊戠紪杈戝欢鏃舵寜閽� - /// 榛樿鑳屾櫙 鐧借壊瀛椾綋 鏂囧瓧灞呬腑 榛樿鍦嗚--CommonPage.BigFormRadius - /// </summary> - public class RowLayoutEditButton:Button - { - /// <summary> - /// Initializes a new instance of the <see cref="T:Shared.Phone.Device.CommonForm.RowLayoutEditButton"/> class. - /// </summary> - public RowLayoutEditButton() - { - BackgroundColor = ZigbeeColor.Current.GXCEditBackGroundColor; - TextID = R.MyInternationalizationString.Edit; - TextColor = ZigbeeColor.Current.GXCTextWhiteColor; - TextAlignment = TextAlignment.Center; - TextSize = 14; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs deleted file mode 100755 index 7f08de1..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs +++ /dev/null @@ -1,361 +0,0 @@ -锘縰sing System; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - public class SceneMainView : FrameLayout - { - /// <summary> - /// name - /// </summary> - public Button TimeButton; - /// <summary> - /// collect - /// </summary> - public Button CollectButton; - /// <summary> - /// SceneIcon - /// </summary> - public ImageView SceneIcon; - /// <summary> - /// statu - /// </summary> - public Button SceneNameButton; - /// <summary> - /// CardBG - /// </summary> - private Button CardBG; - /// <summary> - /// sceneBG - /// </summary> - public Button sceneBG; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// scene - /// </summary> - public SceneUI scene; - /// <summary> - /// CollectionAction - /// </summary> - public Action CollectionAction; - - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - try - { - v_Selected = value; - //SetStatu(v_Selected); - } - catch { }; - } - get - { - return v_Selected; - } - } - - /// <summary> - /// SceneMainView - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public SceneMainView(int x, int y) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(487); - Height = Application.GetRealHeight(358); - } - - /// <summary> - /// init - /// </summary> - public void Init(SceneUI sceneUI) - { - this.scene = sceneUI; - - InitFrame(); - - InitStatu(); - } - - /// <summary> - /// InitFrame - /// </summary> - private void InitFrame() - { - //CardBG = new Button - //{ - // Width = Application.GetMinRealAverage(487), - // Height = Application.GetMinRealAverage(348), - // UnSelectedImagePath = "Item/FunctionCardView.png", - // Gravity = Gravity.CenterHorizontal - //}; - //AddChidren(CardBG); - - SceneIcon = new ImageView - { - X=Application.GetRealWidth(14), - Width = Application.GetMinRealAverage(458), - Height = Application.GetMinRealAverage(305), - Gravity = Gravity.CenterHorizontal, - Radius= (uint)Application.GetRealHeight(17) - }; - AddChidren(SceneIcon); - //SceneIcon.SetViewShadow(true); - //SceneIcon.SetCornerWithSameRadius(Application.GetRealHeight(100), HDLUtils.RectCornerBottomRight); - - sceneBG = new Button - { - Width = Application.GetMinRealAverage(487), - Height = Application.GetMinRealAverage(348), - UnSelectedImagePath = "Scene/Background.png", - Gravity = Gravity.CenterHorizontal - }; - AddChidren(sceneBG); - - TimeButton = new Button() - { - X = Application.GetMinRealAverage(30), - Y = Application.GetMinRealAverage(20), - Width = Application.GetMinRealAverage(63), - Height = Application.GetMinRealAverage(63), - TextColor = ZigbeeColor.Current.GXCTextSelectedColor3, - TextAlignment = TextAlignment.CenterLeft, - }; - AddChidren(TimeButton); - - CollectButton = new Button - { - X = Application.GetMinRealAverage(350), - Y = Application.GetMinRealAverage(1), - Width = Application.GetMinRealAverage(107), - Height = Application.GetMinRealAverage(107), - UnSelectedImagePath = "Item/Collection1.png", - SelectedImagePath = "Item/CollectionSelected1.png" - }; - AddChidren(CollectButton); - - SceneNameButton = new Button() - { - X = Application.GetMinRealAverage(46), - Y = Application.GetMinRealAverage(239), - Width = Application.GetMinRealAverage(279), - Height = Application.GetMinRealAverage(60), - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize = 14, - IsBold = true - }; - AddChidren(SceneNameButton); - } - - /// <summary> - /// InitStatu - /// </summary> - private void InitStatu() - { - SetTimeByDelayTime(scene.SceneDelayTime); - SetSceneNameText(scene.Name); - SetIcon(scene.IconPath); - SetCollect(UserCenter.HdlRoomLogic.Current.IsCollectInRoom(scene)); - - TimeButton.MouseUpEventHandler += SetTimeEvents; - CollectButton.MouseUpEventHandler += CollectionEvent; - SceneIcon.MouseUpEventHandler += SceneUpHandler; - SceneNameButton.MouseUpEventHandler += SceneUpHandler; - sceneBG.MouseUpEventHandler += SceneUpHandler; - } - - /// <summary> - /// SetTimeText - /// </summary> - /// <param name="name"></param> - public void SetTimeText(string name) - { - TimeButton.Width = Application.GetMinRealAverage(280); - TimeButton.Height = Application.GetMinRealAverage(63); - TimeButton.UnSelectedImagePath = string.Empty; - TimeButton.Text = name; - TimeButton.TextSize = 14; - TimeButton.IsBold = true; - } - - /// <summary> - /// SetTimeImage - /// </summary> - public void SetTimeImage() - { - TimeButton.Width = Application.GetMinRealAverage(63); - TimeButton.Height = Application.GetMinRealAverage(63); - TimeButton.UnSelectedImagePath = "Item/Time.png"; - TimeButton.Text = string.Empty; - } - - /// <summary> - /// SetIimeByDelayTime - /// </summary> - /// <param name="time"></param> - public void SetTimeByDelayTime(int time) - { - if (time > 0) - { - SetTimeText(CommonFormResouce.GetTimeString(time)); - } - else - { - SetTimeImage(); - } - } - - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetSceneNameText(string statu) - { - SceneNameButton.Text = statu; - } - - /// <summary> - /// SetIcon - /// </summary> - /// <param name="iconPath"></param> - public void SetIcon(string iconPath) - { - if (scene.IconPathType == 0) - { - SceneIcon.ImagePath = iconPath; - } - else - { - SceneIcon.ImagePath = System.IO.Path.Combine(Config.Instance.FullPath, iconPath); - } - } - - /// <summary> - /// SetCollect - /// </summary> - /// <param name="collect"></param> - public void SetCollect(bool collect) - { - CollectButton.IsSelected = collect; - } - - /// <summary> - /// 璋冪敤鍦烘櫙 - /// </summary> - /// <param name="sender"></param> - /// <param name="args"></param> - private async void SceneUpHandler(object sender, MouseEventArgs args) - { - if (scene.RemainTime > 0 && scene.SceneDelayTime == 0) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.TheSceneIsDelaying)); - return; - } - //1鎴愬姛 0澶辫触 - //鍚庨潰琛ヤ笂鐩稿叧鎻愮ず - // Error鍙傛暟鍚箟 - //<para>1锛氱綉鍏虫棤娉曡В鏋愬懡浠ゆ暟鎹��</para> - //<para>2锛氬崗璋冨櫒姝e湪鍗囩骇鎴栧浠�/鎭㈠鏁版嵁 - //<para>3锛氭搷浣滆澶�/缁�/鍦烘櫙涓嶅瓨鍦�</para> - //<para>4锛氬叾浠栭敊璇�</para> - //<para>5锛氭暟鎹紶杈撻敊璇紙鍦ㄦ煇娆″鎴风鍚戠綉鍏冲彂閫佹暟鎹殑杩囩▼涓紝缃戝叧鍦ㄥ悎鐞嗘椂闂磋寖鍥村唴鎺ユ敹瀹㈡埛绔暟鎹笉瀹屾暣瀵艰嚧璇ラ敊璇彂鐢熴�傚瀹㈡埛绔悜缃戝叧涓�娆″彂閫�100涓瓧鑺傜殑鏁版嵁锛屼絾缃戝叧绛夊緟鎺ユ敹浜嗕竴绉掑彧鎺ユ敹浜�80涓瓧鑺傘�傚彂鐢熻閿欒锛岀綉鍏冲皢涓诲姩鍏抽棴瀹㈡埛绔繛鎺ワ級</para> - var sceneOpenAllData = await ZigBee.Device.Scene.ControlSceneAsync(scene.Id, scene.SceneDelayTime); - - if (sceneOpenAllData == null || sceneOpenAllData.sceneOpenData == null) - { - return; - } - if (sceneOpenAllData.sceneOpenData.Result == 0) - { - if (sceneOpenAllData.errorResponData == null) - { - return; - } - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.ControlSceneFail)); - } - - scene.RemainTime = scene.SceneDelayTime; - scene.SceneDelayTime = 0; - new System.Threading.Thread(() => - { - while (scene.RemainTime > 0) - { - System.Threading.Thread.Sleep(1000); - Application.RunOnMainThread(() => - { - SetTimeText(CommonFormResouce.GetTimeString(scene.RemainTime)); - }); - scene.RemainTime -= 1; - } - Application.RunOnMainThread(() => - { - SetTimeImage(); - }); - }) - { IsBackground = true }.Start(); - } - - /// <summary> - /// 鏀惰棌 - /// </summary> - /// <param name="sender"></param> - /// <param name="mouseEventArgs"></param> - private void CollectionEvent(object sender,MouseEventArgs mouseEventArgs) - { - var roomLove = UserCenter.HdlRoomLogic.Current.GetLoveRoom(); - if (UserCenter.HdlRoomLogic.Current.CurrentRoom.IsLove) - { - UserCenter.HdlSceneLogic.Current.DeleteSceneFromRoom(roomLove, scene); - CollectionAction?.Invoke(); - } - else - { - (sender as Button).IsSelected = !(sender as Button).IsSelected; - if ((sender as Button).IsSelected) - { - UserCenter.HdlSceneLogic.Current.AddSceneToRoom(roomLove, scene); - } - else - { - UserCenter.HdlSceneLogic.Current.DeleteSceneFromRoom(roomLove, scene); - } - } - } - - /// <summary> - /// setTimeEvent - /// </summary> - /// <param name="sender"></param> - /// <param name="mouseEventArgs"></param> - private void SetTimeEvents(object sender, MouseEventArgs mouseEventArgs) - { - if (scene.RemainTime > 0) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.TheSceneIsDelaying)); - return; - } - var timeSelect = new SelectTime(); - CommonPage.Instance.AddChidren(timeSelect); - timeSelect.TempTime = scene.SceneDelayTime; - timeSelect.Init(); - timeSelect.TimeAction = (t) => - { - scene.SceneDelayTime = t; - SetTimeByDelayTime(t); - }; - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneTargetFunctionRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneTargetFunctionRow.cs deleted file mode 100755 index 6e36bc2..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneTargetFunctionRow.cs +++ /dev/null @@ -1,146 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class SceneTargetFunctionRow : FrameLayout - { - /// <summary> - /// TipBtn - /// </summary> - public Button Icon; - /// <summary> - /// TitleBtn - /// </summary> - public Button StatuBtn; - /// <summary> - /// NameBtn - /// </summary> - private Button NameBtn; - /// <summary> - /// ZoneBtn - /// </summary> - private Button ZoneBtn; - /// <summary> - /// line - /// </summary> - private Button line; - /// <summary> - /// SceneTargetRow - /// </summary> - /// <param name="y"></param> - public SceneTargetFunctionRow(int y) - { - X = Application.GetRealWidth(0); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(127 - 2); - } - - /// <summary> - /// Init - /// </summary> - public void Init() - { - Icon = new Button - { - X = Application.GetRealWidth(104), - Width = Application.GetMinRealAverage(80), - Height = Application.GetMinRealAverage(80), - Gravity = Gravity.CenterVertical - }; - AddChidren(Icon); - - NameBtn = new Button - { - X = Application.GetRealWidth(219), - Y = Application.GetRealHeight(14), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(58), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Delay, - TextSize = 14 - }; - AddChidren(NameBtn); - - ZoneBtn = new Button - { - X = Application.GetRealWidth(219), - Y = Application.GetRealHeight(72), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(49), - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, - TextSize = 12 - }; - AddChidren(ZoneBtn); - - StatuBtn = new Button - { - X = Application.GetRealWidth(650), - Width = Application.GetRealWidth(350), - Height = Application.GetRealHeight(100), - Gravity = Gravity.CenterVertical, - TextAlignment = TextAlignment.CenterRight, - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, - TextSize = 14 - }; - AddChidren(StatuBtn); - - line = new Button() - { - X = Application.GetRealWidth(222), - Y = Height - 1, - Width = Application.GetRealWidth(800), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - AddChidren(line); - } - - /// <summary> - /// SetStatuText - /// </summary> - /// <param name="title"></param> - public void SetStatuText(string title) - { - StatuBtn.Text = title; - } - - /// <summary> - /// SetIcon - /// </summary> - /// <param name="imagePath"></param> - public void SetIcon(string imagePath) - { - Icon.UnSelectedImagePath = imagePath; - } - - /// <summary> - /// SetZoneText - /// </summary> - /// <param name="title"></param> - public void SetZoneText(string title) - { - ZoneBtn.Text = title; - } - - /// <summary> - /// SetNameText - /// </summary> - /// <param name="title"></param> - public void SetNameText(string title) - { - NameBtn.Text = title; - } - - /// <summary> - /// HideLine - /// </summary> - /// <param name="hiden"></param> - public void HideLine(bool hiden) - { - line.Visible = !hiden; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneTargetTimeRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneTargetTimeRow.cs deleted file mode 100755 index 3245c38..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneTargetTimeRow.cs +++ /dev/null @@ -1,104 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class SceneTargetTimeRow : FrameLayout - { - /// <summary> - /// TipBtn - /// </summary> - public Button Icon; - /// <summary> - /// tipBtn - /// </summary> - public Button TipBtn; - /// <summary> - /// TitleBtn - /// </summary> - public Button TitleBtn; - /// <summary> - /// line - /// </summary> - private Button line; - /// <summary> - /// SceneTargetRow - /// </summary> - /// <param name="y"></param> - public SceneTargetTimeRow(int y) - { - X = Application.GetRealWidth(0); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(127-2); - } - - /// <summary> - /// Init - /// </summary> - public void Init() - { - Icon = new Button - { - X = Application.GetRealWidth(104), - Width = Application.GetMinRealAverage(80), - Height = Application.GetMinRealAverage(80), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/Timer.png" - }; - AddChidren(Icon); - - TipBtn = new Button - { - X = Application.GetRealWidth(219), - Width = Application.GetRealWidth(200), - Height = Application.GetRealHeight(100), - Gravity = Gravity.CenterVertical, - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, - TextAlignment = TextAlignment.CenterLeft, - TextID = R.MyInternationalizationString.Delay, - TextSize = 14 - }; - AddChidren(TipBtn); - - TitleBtn = new Button - { - X = Application.GetRealWidth(510), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(100), - Gravity = Gravity.CenterVertical, - TextAlignment = TextAlignment.CenterRight, - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2, - TextSize = 14 - }; - AddChidren(TitleBtn); - - line = new Button() - { - X = Application.GetRealWidth(222), - Y = Height - 1, - Width = Application.GetRealWidth(800), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - AddChidren(line); - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - TitleBtn.Text = title; - } - - /// <summary> - /// HideLine - /// </summary> - /// <param name="hiden"></param> - public void HideLine(bool hiden) - { - line.Visible = !hiden; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithPickViewRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithPickViewRow.cs deleted file mode 100755 index 8d5cf18..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithPickViewRow.cs +++ /dev/null @@ -1,203 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - public class SelectDeviceWithPickViewRow:FrameLayout - { - /// <summary> - /// ClickButton - /// </summary> - public Button ClickButton; - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// SelectBtn - /// </summary> - public Button SelectBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// line - /// </summary> - private Button line; - /// <summary> - /// pickerView - /// </summary> - public UIPickerView pickerView; - /// <summary> - /// temperatureList - /// </summary> - public List<int> temperatureList; - /// <summary> - /// modeList - /// </summary> - public List<int> modeList; - /// <summary> - /// fanList - /// </summary> - public List<int> fanList; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - v_Selected = value; - try - { - SetStatu(v_Selected); - } - catch - { - - } - } - get - { - return v_Selected; - } - } - /// <summary> - /// SelectSceneRow - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public SelectDeviceWithPickViewRow(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(703); - } - - /// <summary> - /// Init - /// </summary> - public void Init() - { - NameBtn = new Button() - { - X = Application.GetRealWidth(81), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(80), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize=14 - }; - AddChidren(NameBtn); - SelectBtn = new Button() - { - X = Application.GetRealWidth(919), - Width = Application.GetMinRealAverage(104), - Height = Application.GetMinRealAverage(104), - UnSelectedImagePath = "Scene/Selected.png", - Visible = false - }; - AddChidren(SelectBtn); - - var line1 = new Button() - { - X = Application.GetRealWidth(81), - Y = Application.GetRealHeight(127), - Width = Application.GetRealWidth(919), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor, - }; - AddChidren(line1); - - - ClickButton = new Button - { - Height = Application.GetRealHeight(127) - }; - AddChidren(ClickButton); - - pickerView = new UIPickerView - { - Y = Application.GetRealHeight(138), - Height = Application.GetRealHeight(564), - }; - AddChidren(pickerView); - /// <para>鎭掓俯鍣� Data1锛堟暟鍊硷級: 0鍔犵儹/1鍒跺喎/2鑷姩璋冭妭/3 璁剧疆宸ヤ綔妯″紡/4 璁剧疆鍔犵儹搴︽暟 5/璁剧疆鍒跺喎搴︽暟 6/璁剧疆椋庢墖妯″紡</para> - /// <para> 鎭掓俯鍣―ata2鏁板�煎涓嬶細 - ///銆愬綋Data1=0|1|2鏃讹紝Data2涓鸿鍙樺寲鐨勫害鏁帮紝鍗曚綅锛�0.1鈩� 銆傘�� - ///銆愯嫢Data1=3锛孌ata2涓鸿璁惧畾鐨勭┖璋冩ā寮忥紙0-9锛夛紝0锛歰ff锛�1锛歛uto锛�3锛歝ool锛� 4锛歨eat 锛�5锛歟mergency heating, 6锛歱recooling锛�7锛歠an only 锛�8锛歞ry锛�9锛歴leep銆傘�� - ///銆愯嫢Data1=4|5锛孌ata2涓哄姞鐑垨鍒跺喎搴︽暟锛屽崟浣�0.01鎽勬皬搴︺�傘�� - ///銆愯嫢Data1=6锛孌ata2涓鸿璁惧畾鐨勯鎵囨ā寮忥紙0-6锛夛紝0锛歰ff锛�1锛歭ow锛�2锛歮edium锛�3锛歨igh锛�4锛歰n锛�5锛歛uto锛�6锛歴mart銆� </para> - temperatureList = new List<int> { }; - var temperatureStrList = new List<string> { }; - modeList = new List<int> { 1,3,4,7,8 }; - var modeStrList = new List<string> { - Language.StringByID(R.MyInternationalizationString.Mode_Auto), - Language.StringByID(R.MyInternationalizationString.Mode_Cool), - Language.StringByID(R.MyInternationalizationString.Mode_Heat), - Language.StringByID(R.MyInternationalizationString.Mode_FanOnly), - Language.StringByID(R.MyInternationalizationString.Mode_Dry) - }; - fanList = new List<int> { 1, 2, 3 }; - var fanStrList = new List<string> { - Language.StringByID(R.MyInternationalizationString.Fan_Low), - Language.StringByID(R.MyInternationalizationString.Fan_Middle), - Language.StringByID(R.MyInternationalizationString.Fan_Height) - }; - for (int i = 16; i <= 32; i++) - { - temperatureList.Add(i); - temperatureStrList.Add($"{i} 鈩�"); - } - - pickerView.setNPicker(temperatureStrList, modeStrList, fanStrList); - - - line = new Button() - { - X = Application.GetRealWidth(81), - Y = this.Height - 1, - Width = Application.GetRealWidth(919), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor, - }; - AddChidren(line); - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - SelectBtn.Visible = statu; - } - /// <summary> - /// hideLine - /// </summary> - /// <param name="statu"></param> - public void hideLine(bool statu) - { - line.Visible = !statu; - } - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs deleted file mode 100755 index c6c8597..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs +++ /dev/null @@ -1,208 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class SelectDeviceWithSeekBarRow : FrameLayout - { - /// <summary> - /// ClickButton - /// </summary> - public Button ClickButton; - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// SelectBtn - /// </summary> - public Button SelectBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// line - /// </summary> - private Button line; - /// <summary> - /// SeekBar - /// </summary> - public DiyImageSeekBar SeekBar; - /// <summary> - /// SeekBarTitle - /// </summary> - public Button SeekBarTitle; - /// <summary> - /// MaxLevel - /// </summary> - public int MaxLevel; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - v_Selected = value; - try - { - SetStatu(v_Selected); - } - catch - { - - } - } - get - { - return v_Selected; - } - } - /// <summary> - /// SelectSceneRow - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public SelectDeviceWithSeekBarRow(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(348); - } - - /// <summary> - /// Init - /// </summary> - public void Init(int max=100) - { - MaxLevel = max; - NameBtn = new Button() - { - X = Application.GetRealWidth(81), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(80), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize=14 - }; - AddChidren(NameBtn); - - SelectBtn = new Button() - { - X = Application.GetRealWidth(919), - Width = Application.GetMinRealAverage(104), - Height = Application.GetMinRealAverage(104), - UnSelectedImagePath = "Scene/Selected.png", - Visible = false - }; - AddChidren(SelectBtn); - - ClickButton = new Button - { - Height = Application.GetRealHeight(127) - }; - AddChidren(ClickButton); - - SeekBar = new DiyImageSeekBar() - { - X = Application.GetRealWidth(81), - Y = Application.GetRealHeight(200), - Width = Application.GetRealWidth(919), - Height = Application.GetRealHeight(127), - ProgressBarColor = ZigbeeColor.Current.GXCProgressColor, - MaxValue = MaxLevel, - Progress = MaxLevel, - IsProgressTextShow = false, - IsClickable = true, - ThumbImageHeight=Application.GetMinRealAverage(80), - SeekBarViewHeight=Application.GetRealHeight(6), - ThumbImagePath="Item/SeekBarIcon.png" - }; - AddChidren(SeekBar); - - SeekBarTitle = new Button() - { - Y = Application.GetRealHeight(127), - Height = Application.GetRealHeight(50), - Width = Application.GetRealWidth(200), - Gravity = Gravity.CenterHorizontal, - Text = $"{(int)(SeekBar.Progress * 1.0 / MaxLevel * 100)} %", - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - TextSize = 12, - IsBold = true - }; - AddChidren(SeekBarTitle); - - line = new Button() - { - X = Application.GetRealWidth(81), - Y = this.Height - 1, - Width = Application.GetRealWidth(919), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - AddChidren(line); - - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - SelectBtn.Visible = statu; - if(statu) - { - SetSeekBarProgress(SeekBar.Progress == 0 ? MaxLevel : SeekBar.Progress); - } - else - { - SetSeekBarProgress(0); - } - } - - /// <summary> - /// hideLine - /// </summary> - /// <param name="statu"></param> - public void hideLine(bool statu) - { - line.Visible = !statu; - } - - /// <summary> - /// SetSeekBarTitle - /// </summary> - public void SetSeekBarTitle() - { - SeekBarTitle.Text = $"{(int)(SeekBar.Progress * 1.0 / MaxLevel * 100)} %"; - } - - /// <summary> - /// SetProgress - /// </summary> - /// <param name="progress"></param> - public void SetSeekBarProgress(int progress) - { - SeekBar.Progress = progress; - SetSeekBarTitle(); - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectFunctionView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectFunctionView.cs deleted file mode 100755 index 786f546..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectFunctionView.cs +++ /dev/null @@ -1,163 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - public class SelectFunctionView : FrameLayout - { - /// <summary> - /// name - /// </summary> - private Button NameBtn; - /// <summary> - /// Image - /// </summary> - private Button ImageBtn; - /// <summary> - /// ImageBG - /// </summary> - private Button ImageBG; - /// <summary> - /// SwitchBtn - /// </summary> - private Button SelectBtn; - /// <summary> - /// ClickBtn - /// </summary> - public Button ClickBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - v_Selected = value; - try - { - SetStatu(v_Selected); - } - catch - { - - } - } - get - { - return v_Selected; - } - } - /// <summary> - /// SelectFunctionView - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public SelectFunctionView(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1022); - Height = Application.GetRealHeight(127); - } - - /// <summary> - /// Init - /// </summary> - /// <param name="imagePath"></param> - /// <param name="selectedImagePath"></param> - public void Init(string imagePath, string selectedImagePath) - { - ImageBG = new Button() - { - X = Application.GetRealWidth(45), - Width = Application.GetMinRealAverage(112), - Height = Application.GetMinRealAverage(112), - Gravity = Gravity.CenterVertical, - Radius = (uint)Application.GetMinRealAverage(112 / 2), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - SelectedBackgroundColor = ZigbeeColor.Current.GXCSelectedBackgroundColor, - Tag = Tag - }; - AddChidren(ImageBG); - - ImageBtn = new Button() - { - X = Application.GetRealWidth(63), - Width = Application.GetMinRealAverage(78), - Height = Application.GetMinRealAverage(78), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = imagePath, - SelectedImagePath = selectedImagePath, - Tag = Tag - }; - AddChidren(ImageBtn); - - NameBtn = new Button() - { - X = Application.GetRealWidth(181), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(80), - Gravity = Gravity.CenterVertical, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, - TextAlignment = TextAlignment.CenterLeft, - Tag = Tag - }; - AddChidren(NameBtn); - - SelectBtn = new Button() - { - X = Application.GetRealWidth(896), - Width = Application.GetMinRealAverage(70), - Height = Application.GetMinRealAverage(70), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Room/ItemUnSelected_Black.png", - SelectedImagePath = "Room/ItemSelected.png", - Tag = Tag - }; - AddChidren(SelectBtn); - - var line = new Button() - { - X = Application.GetRealWidth(180), - Y = this.Height - 1, - Width = Application.GetRealWidth(841), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor, - Tag = Tag - }; - AddChidren(line); - - ClickBtn = new Button { }; - AddChidren(ClickBtn); - } - - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - private void SetStatu(bool statu) - { - NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = SelectBtn.IsSelected = statu; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectSceneRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectSceneRow.cs deleted file mode 100755 index 320d16e..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectSceneRow.cs +++ /dev/null @@ -1,164 +0,0 @@ -锘縰sing System; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - public class SelectSceneRow:FrameLayout - { - /// <summary> - /// ClickButton - /// </summary> - public Button ClickButton; - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// Image - /// </summary> - public Button ImageBtn; - /// <summary> - /// SelectBtn - /// </summary> - public Button SelectBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// line - /// </summary> - private Button line; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - v_Selected = value; - try - { - SetStatu(v_Selected); - } - catch - { - - } - } - get - { - return v_Selected; - } - } - /// <summary> - /// SelectSceneRow - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public SelectSceneRow(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1022); - Height = Application.GetRealHeight(127); - } - - /// <summary> - /// Init - /// </summary> - public void Init() - { - - ImageBtn = new Button() - { - X = Application.GetRealWidth(58), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Scene/SceneIcon.png" - }; - AddChidren(ImageBtn); - - NameBtn = new Button() - { - X = Application.GetRealWidth(173), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(80), - Gravity = Gravity.CenterVertical, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize=15 - }; - AddChidren(NameBtn); - - SelectBtn = new Button() - { - X = Application.GetRealWidth(919), - Width = Application.GetMinRealAverage(104), - Height = Application.GetMinRealAverage(104), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Scene/Selected.png", - Visible=false - }; - AddChidren(SelectBtn); - - line = new Button() - { - X = Application.GetRealWidth(180), - Y = this.Height - 1, - Width = Application.GetRealWidth(841), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - AddChidren(line); - - ClickButton = new Button - { - - }; - AddChidren(ClickButton); - - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - SelectBtn.Visible = statu; - } - /// <summary> - /// HideIcon - /// </summary> - /// <param name="statu"></param> - public void HideIcon(bool statu) - { - ImageBtn.Visible = !statu; - } - /// <summary> - /// hideLine - /// </summary> - /// <param name="statu"></param> - public void hideLine(bool statu) - { - line.Visible = !statu; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectSceneStatuRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectSceneStatuRow.cs deleted file mode 100755 index 6f92f8b..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectSceneStatuRow.cs +++ /dev/null @@ -1,141 +0,0 @@ -锘縰sing System; -using Shared.Common; - -namespace Shared.Phone.Device.CommonForm -{ - public class SelectSceneStatuRow:FrameLayout - { - /// <summary> - /// ClickButton - /// </summary> - public Button ClickButton; - /// <summary> - /// name - /// </summary> - public Button NameBtn; - /// <summary> - /// SelectBtn - /// </summary> - public Button SelectBtn; - /// <summary> - /// v_Selected - /// </summary> - private bool v_Selected; - /// <summary> - /// line - /// </summary> - private Button line; - /// <summary> - /// IsSelected - /// </summary> - public bool IsSelected - { - set - { - v_Selected = value; - try - { - SetStatu(v_Selected); - } - catch - { - - } - } - get - { - return v_Selected; - } - } - /// <summary> - /// SelectSceneRow - /// </summary> - /// <param name="x"></param> - /// <param name="y"></param> - public SelectSceneStatuRow(int x = 0, int y = 0) - { - X = Application.GetRealWidth(x); - Y = Application.GetRealHeight(y); - Width = Application.GetRealWidth(1080); - Height = Application.GetRealHeight(127); - } - - /// <summary> - /// Init - /// </summary> - public void Init() - { - - NameBtn = new Button() - { - X = Application.GetRealWidth(81), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(80), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize=14 - }; - AddChidren(NameBtn); - - SelectBtn = new Button() - { - X = Application.GetRealWidth(919), - Width = Application.GetMinRealAverage(104), - Height = Application.GetMinRealAverage(104), - UnSelectedImagePath = "Scene/Selected.png", - Visible = false - }; - AddChidren(SelectBtn); - - ClickButton = new Button - { - - }; - AddChidren(ClickButton); - - - line = new Button() - { - X = Application.GetRealWidth(81), - Y = this.Height - 1, - Width = Application.GetRealWidth(919), - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - AddChidren(line); - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(string title) - { - NameBtn.Text = title; - } - /// <summary> - /// SetTitle - /// </summary> - /// <param name="title"></param> - public void SetTitle(int title) - { - SetTitle(Language.StringByID(title)); - } - /// <summary> - /// SetStatu - /// </summary> - /// <param name="statu"></param> - public void SetStatu(bool statu) - { - SelectBtn.Visible = statu; - } - - /// <summary> - /// hideLine - /// </summary> - /// <param name="statu"></param> - public void hideLine(bool statu) - { - line.Visible = !statu; - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectedStatuButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectedStatuButton.cs deleted file mode 100755 index a7d91f8..0000000 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectedStatuButton.cs +++ /dev/null @@ -1,77 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.CommonForm -{ - /// <summary> - /// 绫讳技鎸変笅鎷ユ湁鐭殏鐐逛寒鏁堟灉鐨刡utton - /// </summary> - public class SelectedStatuButton:Button - { - /// <summary> - /// 閫変腑鐘舵�佸仠鐣欐椂闂� 鍗曚綅 姣 - /// 榛樿200姣 - /// </summary> - private static readonly int SelectedStatuTime = 200; - /// <summary> - /// Initializes a new instance of the <see cref="T:Shared.SelectedStatuButton"/> class. - /// </summary> - public SelectedStatuButton(uint textColor = 0xFF666666, uint selectedTextColor = 0xFF000000) - { - MouseDownEventHandler += Button_MouseDownEvent; - TextColor = textColor; - SelectedTextColor = selectedTextColor; - } - - - /// <summary> - /// 鍗曞嚮鎸変笅锛屽疄鐜扮煭鏆傜偣浜�変腑鏁堟灉 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void Button_MouseDownEvent(object sender, MouseEventArgs mouseEventArgs) - { - bool statu = IsSelected; - SetSeletedStatu(); - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(SelectedStatuTime); - SetUnSelectedStatu(); - Application.RunOnMainThread(() => - { - IsSelected = statu; - }); - }) - { IsBackground = true }.Start(); - - } - /// <summary> - /// 璁剧疆閫変腑鐘舵�� - /// </summary> - public void SetSeletedStatu() - { - Application.RunOnMainThread(() => - { - if (string.IsNullOrEmpty(UnSelectedImagePath) == false && string.IsNullOrEmpty(SelectedImagePath) == true) - { - IsSelected = false; - } - else - { - IsSelected = true; - } - }); - } - /// <summary> - /// 璁剧疆涓嶉�変腑鐘舵�� - /// </summary> - public void SetUnSelectedStatu() - { - Application.RunOnMainThread(() => - { - IsSelected = false; - }); - } - } - - -} diff --git a/ZigbeeApp/Shared/Phone/Device/Curtain/RollerShadeControl.cs b/ZigbeeApp/Shared/Phone/Device/Curtain/RollerShadeControl.cs deleted file mode 100755 index bc33a45..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Curtain/RollerShadeControl.cs +++ /dev/null @@ -1,863 +0,0 @@ -锘縰sing System; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.DeviceLogic; -using Shared.Phone.UserView; -using ZigBee.Device; - -namespace Shared.Phone.Device.Curtain -{ - public class RollerShadeControl:FrameLayout,ZigBee.Common.IStatus - { - #region 鈼� 鍙橀噺__________________________ - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice, Common.Room> action; - - /// <summary> - /// 鏀惰棌鎸夐挳 - /// </summary> - private Button collectionBtn; - /// <summary> - /// 浼犺繃鏉ョ殑璁惧 - /// </summary> - private CommonDevice device; - /// <summary> - /// 浼犺繃鏉ョ殑鎴块棿 - /// </summary> - private Shared.Common.Room room; - - /// <summary> - /// 鎴块棿 - /// </summary> - private Button roomBtn; - /// <summary> - /// 鎴块棿鍚� - /// </summary> - private Button roomName; - /// <summary> - /// 缃戝叧 - /// </summary> - private ZbGateway zbGateway = null; - /// <summary> - /// 鏄惁鍙戦�佹帶鍒跺懡浠ゆ垚鍔熶簡 - /// </summary> - private bool sendedControlCommand = false; - - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// StatuBtn - /// </summary> - private Button StatuBtn; - - /// <summary> - /// OpenOrUpBtn - /// </summary> - public Button OpenOrUpBtn; - /// <summary> - /// OpenOrUpBtn - /// </summary> - public Button CloseOrDownBtn; - /// <summary> - /// StopBtn - /// </summary> - public Button StopBtn; - /// <summary> - /// 寮�鍚堝笜 - /// </summary> - private CurtainSeekBar curtainSeekBar = new CurtainSeekBar { }; - /// <summary> - /// 鍗峰笜 - /// </summary> - private CurtainRollSeekBar curtainRollSeekBar = new CurtainRollSeekBar { }; - - /// <summary> - /// IsDrawerLockMode - /// </summary> - public bool IsDrawerLockMode; - - /// <summary> - /// ProgressBtn - /// </summary> - Button ProgressBtn; - /// <summary> - /// ProgressBtnY - /// </summary> - int ProgressBtnY; - /// <summary> - /// ProgressBtnX - /// </summary> - int ProgressBtnX; - - #endregion - - #region 鈼� 鎺ュ彛___________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = this.device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - if (common.DeviceStatusReport.CluterID == 258) - { - if (common.DeviceStatusReport.AttriBute[0].AttributeId == 8) - { - //绐楀笜鐧惧垎姣� - var rollerShade = deviceUI as Rollershade; - rollerShade.DeviceStatusReport = common.DeviceStatusReport; - rollerShade.WcdCurrentPositionLiftPercentage = common.DeviceStatusReport.AttriBute[0].AttriButeData; - StatuBtn.Text = $"{Language.StringByID(R.MyInternationalizationString.Current)} { UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI)}"; - if(rollerShade.WcdType==0) - { - curtainRollSeekBar.Progress = rollerShade.WcdCurrentPositionLiftPercentage; - } - else if(rollerShade.WcdType==4) - { - curtainSeekBar.Progress = rollerShade.WcdCurrentPositionLiftPercentage; - } - rollerShade.LastDateTime = DateTime.Now; - } - else if (common.DeviceStatusReport.AttriBute[0].AttributeId == 0) - { - ////绐楀笜绫诲瀷 - var rollerShade = device as Rollershade; - rollerShade.DeviceStatusReport = common.DeviceStatusReport; - rollerShade.WcdType = common.DeviceStatusReport.AttriBute[0].AttriButeData; - rollerShade.LastDateTime = DateTime.Now; - } - } - //***鏂版敼***璁惧鐘舵�佷笂鎶ヤ腑锛屽綋CluterID=3,璇佹槑璁惧鍦ㄧ嚎锛岀洿鎺ユ爣璁� - else if (common.DeviceStatusReport.CluterID == 3) - { - //var rollerShade = deviceUI.CommonDevice as Rollershade; - //rollerShade.IsOnline = 1; - //rollerShadeIMG.IsSelected = rollerShade.IsOnline == 1; - //rollerShade.LastDateTime = DateTime.Now; - } - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - else if (typeTag == "OnlineStatusChange") - { - Application.RunOnMainThread(() => - { - try - { - //var deviceUI = SeekBar.Tag as DeviceUI; - ////璁惧涓虹┖ - //if (deviceUI.CommonDevice == null) - //{ - // return; - //} - ////鏄惁涓哄綋鍓嶈澶� - //if (deviceUI.CommonDevice.DeviceEpoint != common.DeviceEpoint || deviceUI.CommonDevice.DeviceAddr != common.DeviceAddr) - //{ - // return; - //} - //var rollerShade = deviceUI.CommonDevice as Rollershade; - //rollerShade.IsOnline = (common as Rollershade).IsOnline; - //rollerShadeIMG.IsSelected = rollerShade.IsOnline == 1; - //rollerShade.LastDateTime = DateTime.Now; - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - } - - #endregion - - #region 鈼� 鏋勯�犳柟娉昣_______________________ - - /// <summary> - /// 鏋勯�犳柟娉� - /// </summary> - public RollerShadeControl() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - ZigBee.Device.ZbGateway.StatusList.Add(this); - } - - #endregion - - #region 鈼� 閲嶅啓绉婚櫎鏂规硶____________________ - - /// <summary> - /// Removes from parent. - /// </summary> - public override void RemoveFromParent() - { - UserView.HomePage.Instance.ScrollEnabled = true; - ZigBee.Device.ZbGateway.StatusList.Remove(this); - action(device,room); - action = null; - RemoveUpdateControlDeviceStatuAction(); - if (IsDrawerLockMode) - { - CommonPage.Instance.IsDrawerLockMode = false; - } - base.RemoveFromParent(); - } - - #endregion - - #region 鈼� 鏄剧ず鐣岄潰________________________ - - /// <summary> - /// 鏄剧ず鐣岄潰 - /// </summary> - /// <param name="dev">Device.</param> - /// <param name="room">Room.</param> - public void Show(CommonDevice dev, Shared.Common.Room room) - { - device = dev; - zbGateway = this.device.Gateway; - this.room = room; - - AddTop(); - - AddBodyView(device); - - - var rollerShade = device as ZigBee.Device.Rollershade; - //涓嶄笂闈炶繙绋� - if (rollerShade.Gateway == null) - { - return; - } - if (rollerShade.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(rollerShade, () => - { - ReadDeviceAttributeLogic.Instance.SendCurtainStatuComand(device); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇 - if ((DateTime.Now - rollerShade.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendCurtainStatuComand(device); - } - } - - if (UserCenter.HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - collectionBtn.IsSelected = false; - } - else - { - collectionBtn.IsSelected = true; - } - - - BindEvent(); - - } - - #endregion - - #region 鈼� Add______________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - - var moreBtn = new Button - { - X = Application.GetRealWidth(953), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/More.png" - }; - top.topView.AddChidren(moreBtn); - - moreBtn.MouseUpEventHandler += More; - - } - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView(CommonDevice device) - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var itemView = new FrameLayout() - { - Y = Application.GetRealHeight(115), - Width = Application.GetRealWidth(965), - Height = Application.GetRealHeight(1316), - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(itemView); - - collectionBtn = new Button() - { - X = Application.GetRealWidth(850), - Y = Application.GetRealHeight(46), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - UnSelectedImagePath = "Item/Collection.png", - SelectedImagePath = "Item/CollectionSelected.png" - }; - itemView.AddChidren(collectionBtn); - - var deviceNameBtn = new Button() - { - Y = Application.GetRealHeight(46), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 15, - IsBold=true - }; - itemView.AddChidren(deviceNameBtn); - - StatuBtn = new Button - { - Y = Application.GetRealHeight(118), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - Text = $"{Language.StringByID(R.MyInternationalizationString.Current)} {UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device)}", - TextSize = 10 - }; - itemView.AddChidren(StatuBtn); - - - OpenOrUpBtn = new Button - { - X = Application.GetRealWidth(253), - Y = Application.GetRealHeight(994), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81) - }; - itemView.AddChidren(OpenOrUpBtn); - OpenOrUpBtn.MouseUpEventHandler += (sender, e) => - { - (device as Rollershade).CurtainUpDownStopControl(0); - }; - - StopBtn = new Button - { - X = Application.GetRealWidth(441), - Y=Application.GetRealHeight(994), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - SelectedImagePath = "RollerShade/StopSelected.png", - UnSelectedImagePath = "RollerShade/Stop.png", - }; - itemView.AddChidren(StopBtn); - StopBtn.MouseUpEventHandler += (sender, e) => - { - (device as Rollershade).CurtainUpDownStopControl(2); - }; - - CloseOrDownBtn = new Button - { - X = Application.GetRealWidth(631), - Y = Application.GetRealHeight(994), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81) - }; - itemView.AddChidren(CloseOrDownBtn); - CloseOrDownBtn.MouseUpEventHandler += (sender, e) => - { - (device as Rollershade).CurtainUpDownStopControl(1); - }; - - if ((device as Rollershade).WcdType == -1) - { - CommonPage.Loading.Start(); - new System.Threading.Thread(() => - { - Rollershade.ReadWcdTypeAction(device, () => - { - Application.RunOnMainThread(() => - { - SetRollerShadeIcon((device as Rollershade).WcdType); - CommonPage.Loading.Hide(); - }); - }); - }) - { IsBackground = true }.Start(); - } - - SetCurtainType(itemView, (device as Rollershade).WcdType); - - var roomBG = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(138 + 50), - BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor, - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius) - }; - itemView.AddChidren(roomBG); - - var roomBG2 = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(50), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - itemView.AddChidren(roomBG2); - - roomBtn = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(1207), - Width = Application.GetMinReal(80), - Height = Application.GetMinReal(80), - UnSelectedImagePath = "Item/Room.png" - }; - itemView.AddChidren(roomBtn); - - roomName = new Button() - { - X = Application.GetRealWidth(150), - Y = Application.GetRealHeight(1224), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(50), - Text = room.Name, - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize = 12 - }; - itemView.AddChidren(roomName); - } - - #endregion - - #region 鈼� 缁戝畾浜嬩欢________________________ - - /// <summary> - /// 缁戝畾鎸夐挳鐨勪簨浠� - /// </summary> - private void BindEvent() - { - //upBtn.MouseUpEventHandler += Up; - //stopBtn.MouseUpEventHandler += Stop; - //downBtn.MouseUpEventHandler += Down; - collectionBtn.MouseUpEventHandler += Collection; - } - - #endregion - - #region 鈼� 鎺у埗__________________________ - - /// <summary> - /// 涓娿�佸紑 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="eventArgs">Event arguments.</param> - private void Up(object sender, MouseEventArgs eventArgs) - { - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(0); - //鎺у埗寤舵椂鍥炶皟 - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - /// <summary> - /// 涓嬨�佸叧 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="eventArgs">Event arguments.</param> - private void Down(object sender, MouseEventArgs eventArgs) - { - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(1); - //鎺у埗寤舵椂鍥炶皟 - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - /// <summary> - /// 鍋� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="eventArgs">Event arguments.</param> - private void Stop(object sender, MouseEventArgs eventArgs) - { - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - (device as ZigBee.Device.Rollershade).CurtainUpDownStopControl(2); - //鎺у埗寤舵椂鍥炶皟 - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - #endregion - - #region 鈼� 鎺у埗鍙嶉_________________________ - - /// <summary> - /// 鏄剧ず璁惧鎺у埗鐘舵�� - /// </summary> - /// <param name="command">Command.</param> - /// <param name="objValue">Object value.</param> - private void UpdateDeviceControllStatu(string command, object objValue) - { - if (command != "DeviceDefaultAck" || objValue == null) - { - return; - } - var tempDevice = (CommonDevice)objValue; - if (tempDevice.DeviceEpoint != this.device.DeviceEpoint || tempDevice.DeviceAddr != this.device.DeviceAddr) - { - //涓嶆槸褰撳墠璁惧鐨勬帹閫侊紝鍒欎笉澶勭悊 - return; - } - //鏍囪宸茬粡鍙戦�佹帶鍒跺懡浠ゅ埌缃戝叧 - sendedControlCommand = true; - //鎴愬姛涓嶆彁绀� - //DeviceUI.ShowStatuTip(R.MyInternationalizationString.Success); - } - - /// <summary> - /// 绉婚櫎鏇存柊鎺у埗璁惧鐨刟ction - /// </summary> - private void RemoveUpdateControlDeviceStatuAction() - { - //绉婚櫎action - if (zbGateway != null) - { - zbGateway.ReportAction -= UpdateDeviceControllStatu; - } - } - - #endregion - - #region 鈼� 鏇村璁剧疆________________________ - - /// <summary> - /// 鏇村璁剧疆 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void More(object sender, MouseEventArgs e) - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(device, room); - detailInfo.EditAction += (curDev,curRoom) => - { - Show(curDev, curRoom); - }; - } - - /// <summary> - /// SetCurtainType - /// </summary> - /// <param name="layout"></param> - /// <param name="type"></param> - private void SetCurtainType(FrameLayout layout, int type) - { - SetRollerShadeIcon(type); - SetRollerSeekBar(layout, type); - } - - /// <summary> - /// WcdType=4锛氬紑鍚堝笜 - /// WcdType=0锛氬嵎甯� - /// </summary> - /// <param name="type"></param> - private void SetRollerShadeIcon(int type) - { - if (type == 0) - { - OpenOrUpBtn.UnSelectedImagePath = "RollerShade/Up.png"; - OpenOrUpBtn.SelectedImagePath = "RollerShade/UpSelected.png"; - - CloseOrDownBtn.UnSelectedImagePath = "RollerShade/Down.png"; - CloseOrDownBtn.SelectedImagePath = "RollerShade/DownSelected.png"; - } - else - { - OpenOrUpBtn.UnSelectedImagePath = "RollerShade/Open.png"; - OpenOrUpBtn.SelectedImagePath = "RollerShade/OpenSelected.png"; - - CloseOrDownBtn.UnSelectedImagePath = "RollerShade/Close.png"; - CloseOrDownBtn.SelectedImagePath = "RollerShade/CloseSelected.png"; - } - } - - /// <summary> - /// SetRollerSeekBar - /// </summary> - /// <param name="layout"></param> - /// <param name="type"></param> - private void SetRollerSeekBar(FrameLayout layout,int type) - { - if(type == 0) - { - curtainRollSeekBar.Y = Application.GetRealHeight(300); - curtainRollSeekBar.Width = Application.GetRealWidth(438); - curtainRollSeekBar.Height = Application.GetRealHeight(576); - curtainRollSeekBar.Gravity = Gravity.CenterHorizontal; - curtainRollSeekBar.Progress = (device as Rollershade).WcdCurrentPositionLiftPercentage; - layout.AddChidren(curtainRollSeekBar); - curtainRollSeekBar.IsProgressTextShow = false; - curtainRollSeekBar.CurtainPaddingTop = Application.GetRealHeight(110); - curtainRollSeekBar.OnStopTrackingTouchEvent += (sender, e) => - { - (device as Rollershade).WcdGoToTiltValue(curtainRollSeekBar.Progress); - }; - - curtainRollSeekBar.OnStartTrackingTouchEvent += (sender, e) => - { - OnProgressButtonMove(curtainRollSeekBar.Progress); - ProgressBtn.Visible = true; - }; - - curtainRollSeekBar.OnStopTrackingTouchEvent += (sender, e) => - { - ProgressBtn.Visible = false; - }; - - curtainRollSeekBar.OnProgressChangedEvent += (send2, e2) => - { - - OnProgressButtonMove(e2); - - //鍒ゆ柇鏄惁300ms灞忚斀 - //if (curtainRollSeekBar.IsProgressChangeDelay()) return; - - //(device.CommonDevice as Rollershade).WcdGoToTiltValue(curtainRollSeekBar.Progress); - }; - - InitProgressBtn(layout); - } - else - { - curtainSeekBar.Y = Application.GetRealHeight(334); - curtainSeekBar.Width = Application.GetRealWidth(570); - curtainSeekBar.Height = Application.GetRealHeight(513); - curtainSeekBar.Gravity = Gravity.CenterHorizontal; - curtainSeekBar.IsProgressTextShow = false; - curtainSeekBar.Progress = (device as Rollershade).WcdCurrentPositionLiftPercentage; - layout.AddChidren(curtainSeekBar); - - curtainSeekBar.OnStopTrackingTouchEvent += (sender, e) => - { - (device as Rollershade).WcdGoToTiltValue(curtainSeekBar.Progress); - }; - - curtainSeekBar.OnStartTrackingTouchEvent += (sender, e) => - { - OnProgressButtonMoveForCurtain(curtainSeekBar.Progress); - ProgressBtn.Visible = true; - }; - - curtainSeekBar.OnStopTrackingTouchEvent += (sender, e) => - { - ProgressBtn.Visible = false; - }; - - curtainSeekBar.OnProgressChangedEvent += (send2, e2) => - { - - OnProgressButtonMoveForCurtain(e2); - - //鍒ゆ柇鏄惁300ms灞忚斀 - //if (curtainRollSeekBar.IsProgressChangeDelay()) return; - - //(device.CommonDevice as Rollershade).WcdGoToTiltValue(curtainRollSeekBar.Progress); - }; - InitProgressBtnForCurtain(layout); - } - } - - /// <summary> - /// 娣诲姞杩涘害鎸夐挳 - /// </summary> - private void InitProgressBtn(FrameLayout layout) - { - ProgressBtnY = curtainRollSeekBar.Y - Application.GetMinReal(204); - ProgressBtn = new Button() - { - Y = ProgressBtnY, - Width = Application.GetMinReal(135), - Height = Application.GetMinReal(104), - UnSelectedImagePath = "Item/ProgressBubbles.png", - Visible = false, - Gravity = Gravity.CenterHorizontal, - TextSize=14, - IsBold=true, - TextColor=ZigbeeColor.Current.GXCTextWhiteColor - }; - layout.AddChidren(ProgressBtn); - } - - /// <summary> - /// OnProgressButtonMove - /// </summary> - private void OnProgressButtonMove(int mProgress) - { - ProgressBtn.Y = ProgressBtnY + curtainRollSeekBar.NowProgressY; - ProgressBtn.Text = mProgress + "%"; - } - - - /// <summary> - /// 娣诲姞杩涘害鎸夐挳 - /// </summary> - private void InitProgressBtnForCurtain(FrameLayout layout) - { - ProgressBtnX = curtainSeekBar.X - Application.GetMinReal(20); - ProgressBtn = new Button() - { - X = ProgressBtnX, - Y = curtainSeekBar.Y + curtainSeekBar.Height / 2 - Application.GetMinReal(180), - Width = Application.GetMinReal(135), - Height = Application.GetMinReal(104), - UnSelectedImagePath = "Item/ProgressBubbles.png", - Visible = false, - TextSize = 14, - IsBold = true, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor - }; - layout.AddChidren(ProgressBtn); - } - - /// <summary> - /// OnProgressButtonMove - /// </summary> - private void OnProgressButtonMoveForCurtain(int mProgress) - { - ProgressBtn.X = ProgressBtnX + curtainSeekBar.NowProgressX- Application.GetMinReal(5); - ProgressBtn.Text = mProgress + "%"; - } - - #endregion - - #region 鈼� 鏀惰棌鍒颁富椤礯______________________ - - /// <summary> - /// 鏀惰棌鍒颁富椤� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void Collection(object sender, MouseEventArgs e) - { - if (collectionBtn.IsSelected) - { - UserCenter.HdlRoomLogic.Current.DeleteLoveDevice(device); - collectionBtn.IsSelected = false; - } - else - { - UserCenter.HdlRoomLogic.Current.AddLoveDevice(device); - collectionBtn.IsSelected = true; - } - } - - #endregion - - #region 鈼� 鍥炲埌涓婚〉________________________ - - /// <summary> - /// 鍥炲埌涓婚〉 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param> - private void BackToRoomHandler(object sender, MouseEventArgs mouseEventArgs) - { - //backToRoom - - } - - #endregion - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Light/AirSwitchControl.cs b/ZigbeeApp/Shared/Phone/Device/Light/AirSwitchControl.cs deleted file mode 100755 index a2d4684..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Light/AirSwitchControl.cs +++ /dev/null @@ -1,736 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.DeviceLogic; -using Shared.Phone.UserView; -using ZigBee.Device; -namespace Shared.Phone.Device.Light -{ - /// <summary> - /// 寮�鍏� - /// </summary> - public class AirSwitchControl : FrameLayout, ZigBee.Common.IStatus - { - #region 鈼� 鍙橀噺__________________________ - /// <summary> - /// 寮�鍏� - /// </summary> - private Button switchBtn; - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice, Common.Room> action; - - /// <summary> - /// The light image. - /// </summary> - private Button deviceIMG; - /// <summary> - /// 鏀惰棌鎸夐挳 - /// </summary> - private Button collectionBtn; - /// <summary> - /// 浼犺繃鏉ョ殑璁惧 - /// </summary> - private CommonDevice device; - /// <summary> - /// 浼犺繃鏉ョ殑鎴块棿 - /// </summary> - private Shared.Common.Room room; - - /// <summary> - /// 鎴块棿 - /// </summary> - private Button roomBtn; - /// <summary> - /// 鎴块棿鍚� - /// </summary> - private Button roomName; - /// <summary> - /// 缃戝叧 - /// </summary> - private ZbGateway zbGateway = null; - /// <summary> - /// 鏄惁鍙戦�佹帶鍒跺懡浠ゆ垚鍔熶簡 - /// </summary> - private bool sendedControlCommand = false; - - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - - private Button StatuBtn; - /// <summary> - /// OnBtn - /// </summary> - private Button OnBtn; - /// <summary> - /// OffBtn - /// </summary> - private Button OffBtn; - - /// <summary> - /// IsDrawerLockMode - /// </summary> - public bool IsDrawerLockMode; - #endregion - - #region 鈼� 鎺ュ彛__________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - if (deviceUI.Type == DeviceType.AirSwitch) - { - if (common.DeviceStatusReport.CluterID == 6) - { - var light = deviceUI as AirSwitch; - light.DeviceStatusReport = common.DeviceStatusReport; - //璁板綍銆佹洿鏂扮姸鎬� - if (light.DeviceStatusReport.AttriBute == null || light.DeviceStatusReport.AttriBute.Count == 0) - { - return; - } - light.OnOffStatus = light.DeviceStatusReport.AttriBute[0].AttriButeData; - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " " + UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device); - - if (device.DfunctionType == DeviceFunctionType.A寮�鍏�) - { - SetONOFFStatu(light.OnOffStatus == 1); - } - else if (device.DfunctionType == DeviceFunctionType.A鎻掑骇) - { - deviceIMG.IsSelected = switchBtn.IsSelected = light.OnOffStatus == 1; - } - else - { - deviceIMG.IsSelected = switchBtn.IsSelected = light.OnOffStatus == 1; - } - - - light.LastDateTime = DateTime.Now; - } - } - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - else if (typeTag == "OnlineStatusChange") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - deviceUI.IsOnline = common.IsOnline; - //OnBtn.IsSelected = OffBtn.IsSelected= deviceUI.CommonDevice.IsOnline == 1; - deviceUI.LastDateTime = DateTime.Now; - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - } - #endregion - - #region 鈼� 鍒濆鍖朹____________________ - /// <summary> - /// 閲嶅啓绉婚櫎鏂规硶 - /// </summary> - public override void RemoveFromParent() - { - ZbGateway.StatusList.Remove(this); - action(device, room); - action = null; - RemoveUpdateControlDeviceStatuAction(); - if (IsDrawerLockMode) - { - CommonPage.Instance.IsDrawerLockMode = false; - } - base.RemoveFromParent(); - } - - /// <summary> - /// 鏋勯�犳柟娉� - /// </summary> - public AirSwitchControl() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - ZbGateway.StatusList.Add(this); - } - /// <summary> - /// 鏄剧ず鐣岄潰 - /// </summary> - /// <param name="dev">Device.</param> - /// <param name="room">Room.</param> - public void Show(CommonDevice dev, Shared.Common.Room room) - { - device = dev; - zbGateway = this.device.Gateway; - this.room = room; - - AddTop(); - - AddBodyView(device); - - - var light = dev as AirSwitch; - //琛ヤ笂闈炶繙绋� - if (light.Gateway == null) - { - return; - } - if (light.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(light, () => - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇鐘舵�� - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - light.LastDateTime).TotalSeconds) - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - } - } - - if (UserCenter.HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - collectionBtn.IsSelected = false; - } - else - { - collectionBtn.IsSelected = true; - } - - - BindEvent(); - - } - - #endregion - - #region 鈼� Add______________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - var moreBtn = new Button - { - X = Application.GetRealWidth(953), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/More.png" - }; - top.topView.AddChidren(moreBtn); - - moreBtn.MouseUpEventHandler += More; - - } - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView(CommonDevice device) - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var itemView = new FrameLayout() - { - Y = Application.GetRealHeight(115), - Width = Application.GetRealWidth(965), - Height = Application.GetRealHeight(1316), - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(itemView); - - collectionBtn = new Button() - { - X = Application.GetRealWidth(850), - Y = Application.GetRealHeight(46), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - UnSelectedImagePath = "Item/Collection.png", - SelectedImagePath = "Item/CollectionSelected.png" - }; - itemView.AddChidren(collectionBtn); - - var deviceNameBtn = new Button() - { - Y = Application.GetRealHeight(46), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 15, - IsBold = true - }; - itemView.AddChidren(deviceNameBtn); - - StatuBtn = new Button - { - Y = Application.GetRealHeight(118), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - Text = Language.StringByID(R.MyInternationalizationString.Current) + " " + UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device), - TextSize = 10 - }; - itemView.AddChidren(StatuBtn); - - var roomBG = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(138 + 50), - BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor, - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius) - }; - itemView.AddChidren(roomBG); - - var roomBG2 = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(50), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - itemView.AddChidren(roomBG2); - - roomBtn = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(1207), - Width = Application.GetMinReal(80), - Height = Application.GetMinReal(80), - UnSelectedImagePath = "Item/Room.png" - }; - itemView.AddChidren(roomBtn); - - roomName = new Button() - { - X = Application.GetRealWidth(150), - Y = Application.GetRealHeight(1224), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(50), - Text = room.Name, - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize = 12 - }; - itemView.AddChidren(roomName); - - AddByFunctionType(itemView); - } - - /// <summary> - /// AddByFunctionType - /// </summary> - private void AddByFunctionType(FrameLayout itemView) - { - if (device.DfunctionType == DeviceFunctionType.A寮�鍏�) - { - AddOnOff(itemView); - } - else if (device.DfunctionType == DeviceFunctionType.A鎻掑骇) - { - AddPlug(itemView); - } - else - { - AddLight(itemView); - } - } - - /// <summary> - /// AddOnOff - /// </summary> - private void AddOnOff(FrameLayout itemView) - { - deviceIMG = new Button() - { - Y = Application.GetRealHeight(340), - Width = Application.GetMinRealAverage(579), - Height = Application.GetMinRealAverage(579), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Light/OnOff.png", - }; - itemView.AddChidren(deviceIMG); - - OffBtn = new Button - { - X = Application.GetRealWidth(294), - Y = Application.GetRealHeight(588), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - UnSelectedImagePath = "Light/OFF.png", - SelectedImagePath = "Light/OFFSelected.png", - IsSelected = (device as AirSwitch).OnOffStatus == 0 - }; - itemView.AddChidren(OffBtn); - - OnBtn = new Button - { - X = Application.GetRealWidth(590), - Y = Application.GetRealHeight(588), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - UnSelectedImagePath = "Light/ON.png", - SelectedImagePath = "Light/ONSelected.png", - IsSelected = (device as AirSwitch).OnOffStatus == 1 - }; - itemView.AddChidren(OnBtn); - - OnBtn.MouseUpEventHandler += ON; - OffBtn.MouseUpEventHandler += OFF; - } - - /// <summary> - /// light - /// </summary> - /// <param name="itemView"></param> - private void AddLight(FrameLayout itemView) - { - deviceIMG = new Button() - { - Y = Application.GetRealHeight(389), - Width = Application.GetMinRealAverage(377), - Height = Application.GetMinRealAverage(435), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Light/DeskLamp.png", - SelectedImagePath = "Light/DeskLampSelected.png", - IsSelected = (device as AirSwitch).OnOffStatus == 1 - }; - itemView.AddChidren(deviceIMG); - - switchBtn = new Button() - { - Y = Application.GetRealHeight(996), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - IsSelected = (device as AirSwitch).OnOffStatus == 1 - }; - itemView.AddChidren(switchBtn); - - switchBtn.MouseUpEventHandler += Switch; - deviceIMG.MouseUpEventHandler += Switch; - } - - /// <summary> - /// plug - /// </summary> - /// <param name="itemView"></param> - private void AddPlug(FrameLayout itemView) - { - deviceIMG = new Button() - { - Y = Application.GetRealHeight(344), - Width = Application.GetMinRealAverage(567), - Height = Application.GetMinRealAverage(567), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Light/Plug.png", - SelectedImagePath = "Light/PlugSelected.png", - IsSelected = (device as AirSwitch).OnOffStatus == 1 - }; - itemView.AddChidren(deviceIMG); - - switchBtn = new Button() - { - Y = Application.GetRealHeight(996), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - IsSelected = (device as AirSwitch).OnOffStatus == 1 - }; - itemView.AddChidren(switchBtn); - - switchBtn.MouseUpEventHandler += Switch; - deviceIMG.MouseUpEventHandler += Switch; - } - - #endregion - - #region 鈼� 缁戝畾鎸夐挳_______________________ - /// <summary> - /// 缁戝畾鎸夐挳鐨勪簨浠� - /// </summary> - private void BindEvent() - { - collectionBtn.MouseUpEventHandler += Collection; - } - - #endregion - - #region 鈼� 寮�鍏砡_________________________ - - /// <summary> - /// 寮�鍏宠缃� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="eventArgs">Event arguments.</param> - private void Switch(object sender, MouseEventArgs eventArgs) - { - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - switchBtn.IsSelected = !switchBtn.IsSelected; - deviceIMG.IsSelected = !deviceIMG.IsSelected; - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " "; - if (deviceIMG.IsSelected == true) - { - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.uOpen1); - } - else - { - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.Close); - } - - if (switchBtn.IsSelected == true) - { - (device as AirSwitch).SwitchControl(1); - } - else - { - (device as AirSwitch).SwitchControl(0); - } - //鎺у埗寤舵椂鍥炶皟 - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - /// <summary> - /// ON - /// </summary> - /// <param name="sender"></param> - /// <param name="eventArgs"></param> - private void ON(object sender, MouseEventArgs eventArgs) - { - SetONOFFStatu(true); - (device as AirSwitch).SwitchControl(1); - //鎺у埗寤舵椂鍥炶皟 - zbGateway.ReportAction += UpdateDeviceControllStatu; - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - /// <summary> - /// OFF - /// </summary> - /// <param name="sender"></param> - /// <param name="eventArgs"></param> - private void OFF(object sender, MouseEventArgs eventArgs) - { - SetONOFFStatu(false); - (device as AirSwitch).SwitchControl(0); - //鎺у埗寤舵椂鍥炶皟 - zbGateway.ReportAction += UpdateDeviceControllStatu; - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - /// <summary> - /// SetONOFFStatu - /// </summary> - /// <param name="statu"></param> - private void SetONOFFStatu(bool statu) - { - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " "; - if (statu) - { - OnBtn.IsSelected = true; - OffBtn.IsSelected = false; - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.uOpen1); - } - else - { - OnBtn.IsSelected = false; - OffBtn.IsSelected = true; - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.Close); - } - } - - - #endregion - - #region 鈼� 璁剧疆__________________________ - /// <summary> - /// 鏇村璁剧疆 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void More(object sender, MouseEventArgs e) - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(device, room); - detailInfo.EditAction += (curDev, curRoom) => - { - Show(curDev, curRoom); - }; - } - - #endregion - - #region 鈼� 鏀惰棌__________________________ - /// <summary> - /// 鏀惰棌鍒颁富椤� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void Collection(object sender, MouseEventArgs e) - { - //collection - if ((sender as Button).IsSelected) - { - UserCenter.HdlRoomLogic.Current.DeleteLoveDevice(device); - (sender as Button).IsSelected = false; - } - else - { - UserCenter.HdlRoomLogic.Current.AddLoveDevice(device); - (sender as Button).IsSelected = true; - } - } - - #endregion - - #region 鈼� 璁惧鎺у埗鐘舵�乢____________________ - - /// <summary> - /// 鏄剧ず璁惧鎺у埗鐘舵�� - /// </summary> - /// <param name="command">Command.</param> - /// <param name="objValue">Object value.</param> - private void UpdateDeviceControllStatu(string command, object objValue) - { - if (Parent == null) - { - return; - } - if (command != "DeviceDefaultAck" || objValue == null) - { - return; - } - var tempDevice = (CommonDevice)objValue; - if (tempDevice.DeviceEpoint != this.device.DeviceEpoint || tempDevice.DeviceAddr != this.device.DeviceAddr) - { - //涓嶆槸褰撳墠璁惧鐨勬帹閫侊紝鍒欎笉澶勭悊 - return; - } - //鏍囪宸茬粡鍙戦�佹帶鍒跺懡浠ゅ埌缃戝叧 - sendedControlCommand = true; - //DeviceUI.ShowStatuTip(R.MyInternationalizationString.Success); - } - - /// <summary> - /// 绉婚櫎鏇存柊鎺у埗璁惧鐨刟ction - /// </summary> - private void RemoveUpdateControlDeviceStatuAction() - { - //绉婚櫎action - if (zbGateway != null) - { - zbGateway.ReportAction -= UpdateDeviceControllStatu; - } - } - - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs b/ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs deleted file mode 100755 index ce0324d..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs +++ /dev/null @@ -1,584 +0,0 @@ -锘縰sing System; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.DeviceLogic; -using ZigBee.Device; - -namespace Shared.Phone.Device.Light -{ - public class DimmableLightControl:FrameLayout, ZigBee.Common.IStatus - { - #region 鈼� 鍙橀噺__________________________ - - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice, Common.Room> action; - ///// <summary> - ///// The top view. - ///// </summary> - private CommonForm.TopFrameLayout top; - /// <summary> - /// 浼犺繃鏉ョ殑璁惧 - /// </summary> - private CommonDevice device; - /// <summary> - /// 浼犺繃鏉ョ殑ac - /// </summary> - private ZigBee.Device.DimmableLight dimmableLight; - /// <summary> - /// 浼犺繃鏉ョ殑鎴块棿 - /// </summary> - private Shared.Common.Room room; - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// 鏀惰棌鎸夐挳 - /// </summary> - private Button collectionBtn; - - /// <summary> - /// 寮�鍏� - /// </summary> - private Button switchBtn; - /// <summary> - /// 婊戞潯 - /// </summary> - private WaveSeekBar levelSeekBar; - - - private Button StatuBtn; - /// <summary> - /// 鎴块棿 - /// </summary> - private Button roomBtn; - /// <summary> - /// 鎴块棿鍚� - /// </summary> - private Button roomName; - /// <summary> - /// MaxLevel - /// </summary> - private const int MaxLevel = 254; - - /// <summary> - /// IsDrawerLockMode - /// </summary> - public bool IsDrawerLockMode; - /// <summary> - /// ProgressBtn - /// </summary> - Button ProgressBtn; - /// <summary> - /// ProgressBtnY - /// </summary> - int ProgressBtnY; - - #endregion - - #region 鈼� 鎺ュ彛__________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - if (deviceUI.Type == DeviceType.DimmableLight) - { - if (common.DeviceStatusReport.CluterID == 6) - { - dimmableLight = deviceUI as DimmableLight; - dimmableLight.DeviceStatusReport = common.DeviceStatusReport; - if (dimmableLight.DeviceStatusReport.AttriBute == null || dimmableLight.DeviceStatusReport.AttriBute.Count == 0) - { - return; - } - dimmableLight.OnOffStatus = dimmableLight.DeviceStatusReport.AttriBute[0].AttriButeData; - switchBtn.IsSelected = dimmableLight.OnOffStatus == 1; - StatuBtn.Text = switchBtn.IsSelected ? $"{Language.StringByID(R.MyInternationalizationString.CurrentLightLevel)} {UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device)}" : $"{Language.StringByID(R.MyInternationalizationString.Current)} {Language.StringByID(R.MyInternationalizationString.Shut)}"; - - if (switchBtn.IsSelected == true) - { - levelSeekBar.IsClickable = true; - levelSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarColor_Start, ZigbeeColor.Current.GXCWaveSeekBarColor_End); - } - else - { - levelSeekBar.IsClickable = false; - levelSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); - } - dimmableLight.LastDateTime = DateTime.Now; - } - //浜害 - if (common.DeviceStatusReport.CluterID == 8) - { - dimmableLight = deviceUI as ZigBee.Device.DimmableLight; - dimmableLight.DeviceStatusReport = common.DeviceStatusReport; - var attriButeList = dimmableLight.DeviceStatusReport.AttriBute; - if (attriButeList == null || attriButeList.Count == 0) - { - return; - } - switch (attriButeList[0].AttributeId) - { - case 0: - //姝ゅ睘鎬ц〃鏄庡綋鍓嶄寒搴︾▼搴� - dimmableLight.Level = attriButeList[0].AttriButeData; - dimmableLight.LastDateTime = DateTime.Now; - levelSeekBar.Progress = (int)(dimmableLight.Level*1.0/MaxLevel*100); - StatuBtn.Text = switchBtn.IsSelected ? $"{Language.StringByID(R.MyInternationalizationString.CurrentLightLevel)} { UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device)}" : $"{Language.StringByID(R.MyInternationalizationString.Current)} {Language.StringByID(R.MyInternationalizationString.Shut)}"; - break; - } - } - - } - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - else if (typeTag == "OnlineStatusChange") - { - - } - } - - #endregion - - #region 鈼� 閲嶅啓绉婚櫎_______________________ - - /// <summary> - /// Removes from parent. - /// </summary> - public override void RemoveFromParent() - { - ZbGateway.StatusList.Remove(this); - UserView.HomePage.Instance.ScrollEnabled = true; - action(device, room); - action = null; - if (IsDrawerLockMode) - { - CommonPage.Instance.IsDrawerLockMode = false; - } - base.RemoveFromParent(); - } - - #endregion - - #region 鈼� 鏋勯�犳柟娉昣______________________ - /// <summary> - /// 鏋勯�犳柟娉� - /// </summary> - public DimmableLightControl() - { - UserView.HomePage.Instance.ScrollEnabled = false; - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - ZbGateway.StatusList.Add(this); - } - - #endregion - - #region 鈼� 鏄剧ず鐣岄潰_______________________ - /// <summary> - /// 鏄剧ず鐣岄潰 - /// </summary> - /// <param name="device">Device.</param> - /// <param name="room">Room.</param> - public void Show(CommonDevice device, Shared.Common.Room room) - { - this.device = device; - this.room = room; - this.dimmableLight = device as ZigBee.Device.DimmableLight; - - //娣诲姞topview - AddTopView(); - //娣诲姞midview - AddBodyView(this.device); - //缁戝畾浜嬩欢 - BindEvent(); - //鏀惰棌 - InitCollection(); - - if (dimmableLight.Gateway.IsVirtual) - { - //鍙戦�佽鍙栫姸鎬佸懡浠� - UserView.UserHomeView.ReadStatus(dimmableLight, () => - { - ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(device); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇璁惧鐘舵�� - if ((DateTime.Now - dimmableLight.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(device); - } - } - } - - #endregion - - #region 鈼� topview_______________________ - - /// <summary> - /// Adds the top view. - /// </summary> - private void AddTopView() - { - top = new CommonForm.TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - var moreBtn = new Button - { - X = Application.GetRealWidth(953), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/More.png" - }; - top.topView.AddChidren(moreBtn); - - moreBtn.MouseUpEventHandler += MoreEvent; - } - /// <summary> - /// 鏇村璁剧疆 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void MoreEvent(object sender, MouseEventArgs e) - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(device, room); - detailInfo.EditAction += (curDev, curRoom) => - { - Show(curDev, curRoom); - }; - } - - #endregion - - #region 鈼� midview_______________________ - - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView(CommonDevice device) - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - AddItemview(); - } - - #endregion - - #region 鈼� itemview_______________________ - /// <summary> - /// Adds the itemview. - /// </summary> - private void AddItemview() - { - var itemView = new FrameLayout() - { - Y = Application.GetRealHeight(115), - Width = Application.GetRealWidth(965), - Height = Application.GetRealHeight(1316), - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(itemView); - - collectionBtn = new Button() - { - X = Application.GetRealWidth(850), - Y = Application.GetRealHeight(46), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - UnSelectedImagePath = "Item/Collection.png", - SelectedImagePath = "Item/CollectionSelected.png" - }; - itemView.AddChidren(collectionBtn); - - var deviceNameBtn = new Button() - { - Y = Application.GetRealHeight(46), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 15, - IsBold=true - }; - itemView.AddChidren(deviceNameBtn); - - StatuBtn = new Button - { - Y = Application.GetRealHeight(118), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - Text = dimmableLight.Level>0?$"{Language.StringByID(R.MyInternationalizationString.CurrentLightLevel)} { UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device)}" :$"{Language.StringByID(R.MyInternationalizationString.Current)} {Language.StringByID(R.MyInternationalizationString.Shut)}", - TextSize=10 - }; - - itemView.AddChidren(StatuBtn); - - levelSeekBar = new WaveSeekBar() - { - Y = Application.GetRealHeight(377), - Width = Application.GetRealWidth(271), - Height = Application.GetRealHeight(533), - Gravity = Gravity.CenterHorizontal, - WavePadding = Application.GetRealWidth(8), - MaxValue=100, - Progress = (int)(dimmableLight.Level*1.0/MaxLevel*100), - - CornerRadius= Application.GetRealHeight(58) - }; - - itemView.AddChidren(levelSeekBar); - - if (dimmableLight.OnOffStatus == 1) - { - levelSeekBar.IsClickable = true; - levelSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarColor_Start, ZigbeeColor.Current.GXCWaveSeekBarColor_End); - } - else - { - levelSeekBar.IsClickable = false; - levelSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); - } - - levelSeekBar.OnStartTrackingTouchEvent += (sender, e) => - { - OnProgressButtonMove(levelSeekBar.Progress); - levelSeekBar.IsProgressTextShow = false; - ProgressBtn.Visible = true; - }; - - levelSeekBar.OnStopTrackingTouchEvent += (sender, e) => - { - ProgressBtn.Visible = false; - levelSeekBar.IsProgressTextShow = true; - dimmableLight.SetLevel((int)(levelSeekBar.Progress * MaxLevel / 100.0)); - }; - - levelSeekBar.OnProgressChangedEvent += (send2, e2) => - { - - OnProgressButtonMove(e2); - - //鍒ゆ柇鏄惁300ms灞忚斀 - //if (levelSeekBar.IsProgressChangeDelay()) return; - //dimmableLight.SetLevel((int)(levelSeekBar.Progress * MaxLevel / 100.0)); - }; - - InitProgressBtn(itemView); - - switchBtn = new Button() - { - Y = Application.GetRealHeight(1005), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - IsSelected = (device as DimmableLight).OnOffStatus == 1 - }; - itemView.AddChidren(switchBtn); - - var roomBG = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(138 + 50), - BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor, - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius) - }; - itemView.AddChidren(roomBG); - - var roomBG2 = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(50), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - itemView.AddChidren(roomBG2); - - roomBtn = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(1207), - Width = Application.GetMinReal(80), - Height = Application.GetMinReal(80), - UnSelectedImagePath = "Item/Room.png" - }; - itemView.AddChidren(roomBtn); - - roomName = new Button() - { - X = Application.GetRealWidth(150), - Y = Application.GetRealHeight(1224), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(50), - Text = room.Name, - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize = 12 - }; - itemView.AddChidren(roomName); - } - - /// <summary> - /// OnProgressButtonMove - /// </summary> - private void OnProgressButtonMove(int mProgress) - { - ProgressBtn.Y = ProgressBtnY + levelSeekBar.NowProgressY; - ProgressBtn.Text = mProgress + "%"; - } - - /// <summary> - /// 娣诲姞杩涘害鎸夐挳 - /// </summary> - private void InitProgressBtn(FrameLayout layout) - { - ProgressBtnY = levelSeekBar.Y - Application.GetMinReal(154); - ProgressBtn = new Button() - { - Y = ProgressBtnY, - Width = Application.GetMinReal(135), - Height = Application.GetMinReal(104), - UnSelectedImagePath = "Item/ProgressBubbles.png", - Visible = false, - Gravity = Gravity.CenterHorizontal, - TextSize = 14, - IsBold = true, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor - }; - layout.AddChidren(ProgressBtn); - } - - #endregion - - #region 鈼� 缁戝畾鎸夐挳_______________________ - /// <summary> - /// 缁戝畾鎸夐挳鐨勪簨浠� - /// </summary> - private void BindEvent() - { - switchBtn.MouseUpEventHandler += Switch_MouseUpEvent; - collectionBtn.MouseUpEventHandler += Collection; - } - - #endregion - - #region 鈼� 寮�鍏砡_________________________ - - /// <summary> - /// 寮�鍏宠缃� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="eventArgs">Event arguments.</param> - private void Switch_MouseUpEvent(object sender, MouseEventArgs eventArgs) - { - switchBtn.IsSelected = !switchBtn.IsSelected; - StatuBtn.Text = switchBtn.IsSelected ? $"{Language.StringByID(R.MyInternationalizationString.CurrentLightLevel)} { UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device)}" : $"{Language.StringByID(R.MyInternationalizationString.Current)} {Language.StringByID(R.MyInternationalizationString.Shut)}"; - if (switchBtn.IsSelected == true) - { - dimmableLight.SwitchControl(1); - levelSeekBar.IsClickable = true; - levelSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarColor_Start, ZigbeeColor.Current.GXCWaveSeekBarColor_End); - } - else - { - dimmableLight.SwitchControl(0); - levelSeekBar.IsClickable = false; - levelSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); - } - } - - #endregion - - #region 鈼� 鏀惰棌__________________________ - - /// <summary> - /// Inits the collection. - /// </summary> - private void InitCollection() - { - if (UserCenter.HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - collectionBtn.IsSelected = false; - } - else - { - collectionBtn.IsSelected = true; - } - } - /// <summary> - /// 鏀惰棌鍒颁富椤� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void Collection(object sender, MouseEventArgs e) - { - //collection - if ((sender as Button).IsSelected) - { - UserCenter.HdlRoomLogic.Current.DeleteLoveDevice(device); - (sender as Button).IsSelected = false; - } - else - { - UserCenter.HdlRoomLogic.Current.AddLoveDevice(device); - (sender as Button).IsSelected = true; - } - } - - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs b/ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs deleted file mode 100755 index 504214d..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs +++ /dev/null @@ -1,540 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.DeviceLogic; -using Shared.Phone.UserView; -using ZigBee.Device; -namespace Shared.Phone.Device.Light -{ - /// <summary> - /// 鐏厜鎺у埗鐣岄潰 - /// </summary> - public class LightControl:FrameLayout,ZigBee.Common.IStatus - { - #region 鈼� 鍙橀噺__________________________ - /// <summary> - /// 寮�鍏� - /// </summary> - private Button switchBtn; - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice, Common.Room> action; - - /// <summary> - /// The light image. - /// </summary> - private Button deviceIMG; - /// <summary> - /// 鏀惰棌鎸夐挳 - /// </summary> - private Button collectionBtn; - /// <summary> - /// 浼犺繃鏉ョ殑璁惧 - /// </summary> - private CommonDevice device; - /// <summary> - /// 浼犺繃鏉ョ殑鎴块棿 - /// </summary> - private Shared.Common.Room room; - - /// <summary> - /// 鎴块棿 - /// </summary> - private Button roomBtn; - /// <summary> - /// 鎴块棿鍚� - /// </summary> - private Button roomName; - /// <summary> - /// 缃戝叧 - /// </summary> - private ZbGateway zbGateway = null; - /// <summary> - /// 鏄惁鍙戦�佹帶鍒跺懡浠ゆ垚鍔熶簡 - /// </summary> - private bool sendedControlCommand = false; - - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - - private Button StatuBtn; - - /// <summary> - /// IsDrawerLockMode - /// </summary> - public bool IsDrawerLockMode; - #endregion - - #region 鈼� 鎺ュ彛__________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - if (deviceUI.Type == DeviceType.OnOffOutput) - { - if (common.DeviceStatusReport.CluterID == 6) - { - var light = deviceUI as ToggleLight; - light.DeviceStatusReport = common.DeviceStatusReport; - //璁板綍銆佹洿鏂扮姸鎬� - if (light.DeviceStatusReport.AttriBute == null || light.DeviceStatusReport.AttriBute.Count == 0) - { - return; - } - light.OnOffStatus = light.DeviceStatusReport.AttriBute[0].AttriButeData; - deviceIMG.IsSelected = switchBtn.IsSelected = light.OnOffStatus == 1; - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " " + UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device); - light.LastDateTime = DateTime.Now; - } - } - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - else if (typeTag == "OnlineStatusChange") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - deviceUI.IsOnline = common.IsOnline; - deviceUI.LastDateTime = DateTime.Now; - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - } - #endregion - - #region 鈼� 鍒濆鍖朹____________________ - /// <summary> - /// 閲嶅啓绉婚櫎鏂规硶 - /// </summary> - public override void RemoveFromParent() - { - ZbGateway.StatusList.Remove(this); - action(device, room); - action = null; - if (IsDrawerLockMode) - { - CommonPage.Instance.IsDrawerLockMode = false; - } - RemoveUpdateControlDeviceStatuAction(); - base.RemoveFromParent(); - } - - /// <summary> - /// 鏋勯�犳柟娉� - /// </summary> - public LightControl() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - ZbGateway.StatusList.Add(this); - } - /// <summary> - /// 鏄剧ず鐣岄潰 - /// </summary> - /// <param name="dev">Device.</param> - /// <param name="room">Room.</param> - public void Show(CommonDevice dev,Shared.Common.Room room) - { - device = dev; - zbGateway = this.device.Gateway; - this.room = room; - - AddTop(); - - AddBodyView(device); - - - var light = dev as ToggleLight; - //琛ヤ笂闈炶繙绋� - if (light.Gateway == null) - { - return; - } - if (light.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(light, () => - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇鐘舵�� - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - light.LastDateTime).TotalSeconds) - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - } - } - - if(UserCenter.HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - collectionBtn.IsSelected = false; - } - else - { - collectionBtn.IsSelected = true; - } - - - BindEvent(); - - } - - #endregion - - #region 鈼� Add______________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - - var moreBtn = new Button - { - X = Application.GetRealWidth(953), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - Gravity=Gravity.CenterVertical, - UnSelectedImagePath = "Item/More.png" - }; - top.topView.AddChidren(moreBtn); - - moreBtn.MouseUpEventHandler += More; - - } - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView(CommonDevice device) - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var itemView = new FrameLayout() - { - Y = Application.GetRealHeight(115), - Width = Application.GetRealWidth(965), - Height = Application.GetRealHeight(1316), - Radius =(uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(itemView); - - collectionBtn = new Button() - { - X = Application.GetRealWidth(850), - Y = Application.GetRealHeight(46), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - UnSelectedImagePath = "Item/Collection.png", - SelectedImagePath = "Item/CollectionSelected.png" - }; - itemView.AddChidren(collectionBtn); - - var deviceNameBtn = new Button() - { - Y = Application.GetRealHeight(46), - Width=Application.GetRealWidth(500), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize=15, - IsBold=true - }; - itemView.AddChidren(deviceNameBtn); - - StatuBtn = new Button - { - Y = Application.GetRealHeight(118), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - Text = Language.StringByID(R.MyInternationalizationString.Current) + " " + UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device), - TextSize = 10 - }; - itemView.AddChidren(StatuBtn); - - - deviceIMG = new Button() - { - Y = Application.GetRealHeight(389), - Width = Application.GetMinRealAverage(377), - Height = Application.GetMinRealAverage(435), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Light/DeskLamp.png", - SelectedImagePath = "Light/DeskLampSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(deviceIMG); - - switchBtn = new Button() - { - Y = Application.GetRealHeight(996), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(switchBtn); - - var roomBG = new Button - { - Y = Application.GetRealHeight(1178-50), - Height = Application.GetRealHeight(138+50), - BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor, - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius) - }; - itemView.AddChidren(roomBG); - - var roomBG2 = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(50), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - itemView.AddChidren(roomBG2); - - roomBtn = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(1207), - Width = Application.GetMinReal(80), - Height = Application.GetMinReal(80), - UnSelectedImagePath = "Item/Room.png" - }; - itemView.AddChidren(roomBtn); - - roomName = new Button() - { - X = Application.GetRealWidth(150), - Y = Application.GetRealHeight(1224), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(50), - Text = room.Name, - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize=12 - }; - itemView.AddChidren(roomName); - } - - #endregion - - #region 鈼� 缁戝畾鎸夐挳_______________________ - /// <summary> - /// 缁戝畾鎸夐挳鐨勪簨浠� - /// </summary> - private void BindEvent() - { - switchBtn.MouseUpEventHandler += Switch; - deviceIMG.MouseUpEventHandler += Switch; - collectionBtn.MouseUpEventHandler += Collection; - } - - #endregion - - #region 鈼� 寮�鍏砡_________________________ - - /// <summary> - /// 寮�鍏宠缃� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="eventArgs">Event arguments.</param> - private void Switch(object sender, MouseEventArgs eventArgs) - { - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - switchBtn.IsSelected = !switchBtn.IsSelected; - deviceIMG.IsSelected = !deviceIMG.IsSelected; - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " "; - if (deviceIMG.IsSelected == true) - { - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.uOpen1); - } - else - { - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.Close); - } - - if (switchBtn.IsSelected == true) - { - (device as ToggleLight).SwitchControl(1); - } - else - { - (device as ToggleLight).SwitchControl(0); - } - //鎺у埗寤舵椂鍥炶皟 - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if(Parent==null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand==false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - - - #endregion - - #region 鈼� 璁剧疆__________________________ - /// <summary> - /// 鏇村璁剧疆 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void More(object sender, MouseEventArgs e) - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(device, room); - detailInfo.EditAction += (curDev, curRoom) => - { - Show(curDev, curRoom); - }; - } - - #endregion - - #region 鈼� 鏀惰棌__________________________ - /// <summary> - /// 鏀惰棌鍒颁富椤� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void Collection(object sender, MouseEventArgs e) - { - //collection - if ((sender as Button).IsSelected) - { - UserCenter.HdlRoomLogic.Current.DeleteLoveDevice(device); - (sender as Button).IsSelected = false; - } - else - { - UserCenter.HdlRoomLogic.Current.AddLoveDevice(device); - (sender as Button).IsSelected = true; - } - } - - #endregion - - #region 鈼� 璁惧鎺у埗鐘舵�乢____________________ - - /// <summary> - /// 鏄剧ず璁惧鎺у埗鐘舵�� - /// </summary> - /// <param name="command">Command.</param> - /// <param name="objValue">Object value.</param> - private void UpdateDeviceControllStatu(string command, object objValue) - { - if (Parent == null) - { - return; - } - if (command != "DeviceDefaultAck" || objValue == null) - { - return; - } - var tempDevice = (CommonDevice)objValue; - if (tempDevice.DeviceEpoint != this.device.DeviceEpoint || tempDevice.DeviceAddr != this.device.DeviceAddr) - { - //涓嶆槸褰撳墠璁惧鐨勬帹閫侊紝鍒欎笉澶勭悊 - return; - } - //鏍囪宸茬粡鍙戦�佹帶鍒跺懡浠ゅ埌缃戝叧 - sendedControlCommand = true; - //DeviceUI.ShowStatuTip(R.MyInternationalizationString.Success); - } - - /// <summary> - /// 绉婚櫎鏇存柊鎺у埗璁惧鐨刟ction - /// </summary> - private void RemoveUpdateControlDeviceStatuAction() - { - //绉婚櫎action - if(zbGateway!=null) - { - zbGateway.ReportAction -= UpdateDeviceControllStatu; - } - } - - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Light/OnOffControl.cs b/ZigbeeApp/Shared/Phone/Device/Light/OnOffControl.cs deleted file mode 100755 index bb3e05b..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Light/OnOffControl.cs +++ /dev/null @@ -1,735 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.DeviceLogic; -using Shared.Phone.UserView; -using ZigBee.Device; -namespace Shared.Phone.Device.Light -{ - /// <summary> - /// 寮�鍏� - /// </summary> - public class OnOffControl:FrameLayout, ZigBee.Common.IStatus - { - #region 鈼� 鍙橀噺__________________________ - /// <summary> - /// 寮�鍏� - /// </summary> - private Button switchBtn; - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice, Common.Room> action; - - /// <summary> - /// The light image. - /// </summary> - private Button deviceIMG; - /// <summary> - /// 鏀惰棌鎸夐挳 - /// </summary> - private Button collectionBtn; - /// <summary> - /// 浼犺繃鏉ョ殑璁惧 - /// </summary> - private CommonDevice device; - /// <summary> - /// 浼犺繃鏉ョ殑鎴块棿 - /// </summary> - private Shared.Common.Room room; - - /// <summary> - /// 鎴块棿 - /// </summary> - private Button roomBtn; - /// <summary> - /// 鎴块棿鍚� - /// </summary> - private Button roomName; - /// <summary> - /// 缃戝叧 - /// </summary> - private ZbGateway zbGateway = null; - /// <summary> - /// 鏄惁鍙戦�佹帶鍒跺懡浠ゆ垚鍔熶簡 - /// </summary> - private bool sendedControlCommand = false; - - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - - private Button StatuBtn; - /// <summary> - /// OnBtn - /// </summary> - private Button OnBtn; - /// <summary> - /// OffBtn - /// </summary> - private Button OffBtn; - - /// <summary> - /// IsDrawerLockMode - /// </summary> - public bool IsDrawerLockMode; - #endregion - - #region 鈼� 鎺ュ彛__________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - if (deviceUI.Type == DeviceType.OnOffOutput) - { - if (common.DeviceStatusReport.CluterID == 6) - { - var light = deviceUI as ToggleLight; - light.DeviceStatusReport = common.DeviceStatusReport; - //璁板綍銆佹洿鏂扮姸鎬� - if (light.DeviceStatusReport.AttriBute == null || light.DeviceStatusReport.AttriBute.Count == 0) - { - return; - } - light.OnOffStatus = light.DeviceStatusReport.AttriBute[0].AttriButeData; - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " " + UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device); - - if (device.DfunctionType == DeviceFunctionType.A寮�鍏�) - { - SetONOFFStatu(light.OnOffStatus == 1); - } - else if (device.DfunctionType == DeviceFunctionType.A鎻掑骇) - { - deviceIMG.IsSelected = switchBtn.IsSelected = light.OnOffStatus == 1; - } - else - { - deviceIMG.IsSelected = switchBtn.IsSelected = light.OnOffStatus == 1; - } - - - light.LastDateTime = DateTime.Now; - } - } - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - else if (typeTag == "OnlineStatusChange") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - deviceUI.IsOnline = common.IsOnline; - //OnBtn.IsSelected = OffBtn.IsSelected= deviceUI.CommonDevice.IsOnline == 1; - deviceUI.LastDateTime = DateTime.Now; - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - } - #endregion - - #region 鈼� 鍒濆鍖朹____________________ - /// <summary> - /// 閲嶅啓绉婚櫎鏂规硶 - /// </summary> - public override void RemoveFromParent() - { - ZbGateway.StatusList.Remove(this); - action(device, room); - action = null; - RemoveUpdateControlDeviceStatuAction(); - if (IsDrawerLockMode) - { - CommonPage.Instance.IsDrawerLockMode = false; - } - base.RemoveFromParent(); - } - - /// <summary> - /// 鏋勯�犳柟娉� - /// </summary> - public OnOffControl() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - ZbGateway.StatusList.Add(this); - } - /// <summary> - /// 鏄剧ず鐣岄潰 - /// </summary> - /// <param name="dev">Device.</param> - /// <param name="room">Room.</param> - public void Show(CommonDevice dev, Shared.Common.Room room) - { - device = dev; - zbGateway = this.device.Gateway; - this.room = room; - - AddTop(); - - AddBodyView(device); - - - var light = dev as ToggleLight; - //琛ヤ笂闈炶繙绋� - if (light.Gateway == null) - { - return; - } - if (light.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(light, () => - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇鐘舵�� - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - light.LastDateTime).TotalSeconds) - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - } - } - - if(UserCenter.HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - collectionBtn.IsSelected = false; - } - else - { - collectionBtn.IsSelected = true; - } - - - BindEvent(); - - } - - #endregion - - #region 鈼� Add______________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - var moreBtn = new Button - { - X = Application.GetRealWidth(953), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/More.png" - }; - top.topView.AddChidren(moreBtn); - - moreBtn.MouseUpEventHandler += More; - - } - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView(CommonDevice device) - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var itemView = new FrameLayout() - { - Y = Application.GetRealHeight(115), - Width = Application.GetRealWidth(965), - Height = Application.GetRealHeight(1316), - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(itemView); - - collectionBtn = new Button() - { - X = Application.GetRealWidth(850), - Y = Application.GetRealHeight(46), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - UnSelectedImagePath = "Item/Collection.png", - SelectedImagePath = "Item/CollectionSelected.png" - }; - itemView.AddChidren(collectionBtn); - - var deviceNameBtn = new Button() - { - Y = Application.GetRealHeight(46), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 15, - IsBold=true - }; - itemView.AddChidren(deviceNameBtn); - - StatuBtn = new Button - { - Y = Application.GetRealHeight(118), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - Text = Language.StringByID(R.MyInternationalizationString.Current) + " " + UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device), - TextSize = 10 - }; - itemView.AddChidren(StatuBtn); - - var roomBG = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(138 + 50), - BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor, - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius) - }; - itemView.AddChidren(roomBG); - - var roomBG2 = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(50), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - itemView.AddChidren(roomBG2); - - roomBtn = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(1207), - Width = Application.GetMinReal(80), - Height = Application.GetMinReal(80), - UnSelectedImagePath = "Item/Room.png" - }; - itemView.AddChidren(roomBtn); - - roomName = new Button() - { - X = Application.GetRealWidth(150), - Y = Application.GetRealHeight(1224), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(50), - Text = room.Name, - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize = 12 - }; - itemView.AddChidren(roomName); - - AddByFunctionType(itemView); - } - - /// <summary> - /// AddByFunctionType - /// </summary> - private void AddByFunctionType(FrameLayout itemView) - { - if(device.DfunctionType == DeviceFunctionType.A寮�鍏�) - { - AddOnOff(itemView); - } - else if(device.DfunctionType == DeviceFunctionType.A鎻掑骇) - { - AddPlug(itemView); - } - else - { - AddLight(itemView); - } - } - - /// <summary> - /// AddOnOff - /// </summary> - private void AddOnOff(FrameLayout itemView) - { - deviceIMG = new Button() - { - Y = Application.GetRealHeight(340), - Width = Application.GetMinRealAverage(579), - Height = Application.GetMinRealAverage(579), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Light/OnOff.png", - }; - itemView.AddChidren(deviceIMG); - - OffBtn = new Button - { - X = Application.GetRealWidth(294), - Y = Application.GetRealHeight(588), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - UnSelectedImagePath = "Light/OFF.png", - SelectedImagePath = "Light/OFFSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 0 - }; - itemView.AddChidren(OffBtn); - - OnBtn = new Button - { - X = Application.GetRealWidth(590), - Y = Application.GetRealHeight(588), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - UnSelectedImagePath = "Light/ON.png", - SelectedImagePath = "Light/ONSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(OnBtn); - - OnBtn.MouseUpEventHandler += ON; - OffBtn.MouseUpEventHandler += OFF; - } - - /// <summary> - /// light - /// </summary> - /// <param name="itemView"></param> - private void AddLight(FrameLayout itemView) - { - deviceIMG = new Button() - { - Y = Application.GetRealHeight(389), - Width = Application.GetMinRealAverage(377), - Height = Application.GetMinRealAverage(435), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Light/DeskLamp.png", - SelectedImagePath = "Light/DeskLampSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(deviceIMG); - - switchBtn = new Button() - { - Y = Application.GetRealHeight(996), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(switchBtn); - - switchBtn.MouseUpEventHandler += Switch; - deviceIMG.MouseUpEventHandler += Switch; - } - - /// <summary> - /// plug - /// </summary> - /// <param name="itemView"></param> - private void AddPlug(FrameLayout itemView) - { - deviceIMG = new Button() - { - Y = Application.GetRealHeight(344), - Width = Application.GetMinRealAverage(567), - Height = Application.GetMinRealAverage(567), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Light/Plug.png", - SelectedImagePath = "Light/PlugSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(deviceIMG); - - switchBtn = new Button() - { - Y = Application.GetRealHeight(996), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(switchBtn); - - switchBtn.MouseUpEventHandler += Switch; - deviceIMG.MouseUpEventHandler += Switch; - } - - #endregion - - #region 鈼� 缁戝畾鎸夐挳_______________________ - /// <summary> - /// 缁戝畾鎸夐挳鐨勪簨浠� - /// </summary> - private void BindEvent() - { - collectionBtn.MouseUpEventHandler += Collection; - } - - #endregion - - #region 鈼� 寮�鍏砡_________________________ - - /// <summary> - /// 寮�鍏宠缃� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="eventArgs">Event arguments.</param> - private void Switch(object sender, MouseEventArgs eventArgs) - { - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - switchBtn.IsSelected = !switchBtn.IsSelected; - deviceIMG.IsSelected = !deviceIMG.IsSelected; - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " "; - if (deviceIMG.IsSelected == true) - { - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.uOpen1); - } - else - { - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.Close); - } - if (switchBtn.IsSelected == true) - { - (device as ToggleLight).SwitchControl(1); - } - else - { - (device as ToggleLight).SwitchControl(0); - } - //鎺у埗寤舵椂鍥炶皟 - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - /// <summary> - /// ON - /// </summary> - /// <param name="sender"></param> - /// <param name="eventArgs"></param> - private void ON(object sender, MouseEventArgs eventArgs) - { - SetONOFFStatu(true); - (device as ToggleLight).SwitchControl(1); - //鎺у埗寤舵椂鍥炶皟 - zbGateway.ReportAction += UpdateDeviceControllStatu; - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - /// <summary> - /// OFF - /// </summary> - /// <param name="sender"></param> - /// <param name="eventArgs"></param> - private void OFF(object sender, MouseEventArgs eventArgs) - { - SetONOFFStatu(false); - (device as ToggleLight).SwitchControl(0); - //鎺у埗寤舵椂鍥炶皟 - zbGateway.ReportAction += UpdateDeviceControllStatu; - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - /// <summary> - /// SetONOFFStatu - /// </summary> - /// <param name="statu"></param> - private void SetONOFFStatu(bool statu) - { - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " "; - if (statu) - { - OnBtn.IsSelected = true; - OffBtn.IsSelected = false; - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.uOpen1); - } - else - { - OnBtn.IsSelected = false; - OffBtn.IsSelected = true; - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.Close); - } - } - - - #endregion - - #region 鈼� 璁剧疆__________________________ - /// <summary> - /// 鏇村璁剧疆 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void More(object sender, MouseEventArgs e) - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(device, room); - detailInfo.EditAction += (curDev, curRoom) => - { - Show(curDev, curRoom); - }; - } - - #endregion - - #region 鈼� 鏀惰棌__________________________ - /// <summary> - /// 鏀惰棌鍒颁富椤� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void Collection(object sender, MouseEventArgs e) - { - //collection - if ((sender as Button).IsSelected) - { - UserCenter.HdlRoomLogic.Current.DeleteLoveDevice(device); - (sender as Button).IsSelected = false; - } - else - { - UserCenter.HdlRoomLogic.Current.AddLoveDevice(device); - (sender as Button).IsSelected = true; - } - } - - #endregion - - #region 鈼� 璁惧鎺у埗鐘舵�乢____________________ - - /// <summary> - /// 鏄剧ず璁惧鎺у埗鐘舵�� - /// </summary> - /// <param name="command">Command.</param> - /// <param name="objValue">Object value.</param> - private void UpdateDeviceControllStatu(string command, object objValue) - { - if (Parent == null) - { - return; - } - if (command != "DeviceDefaultAck" || objValue == null) - { - return; - } - var tempDevice = (CommonDevice)objValue; - if (tempDevice.DeviceEpoint != this.device.DeviceEpoint || tempDevice.DeviceAddr != this.device.DeviceAddr) - { - //涓嶆槸褰撳墠璁惧鐨勬帹閫侊紝鍒欎笉澶勭悊 - return; - } - //鏍囪宸茬粡鍙戦�佹帶鍒跺懡浠ゅ埌缃戝叧 - sendedControlCommand = true; - //DeviceUI.ShowStatuTip(R.MyInternationalizationString.Success); - } - - /// <summary> - /// 绉婚櫎鏇存柊鎺у埗璁惧鐨刟ction - /// </summary> - private void RemoveUpdateControlDeviceStatuAction() - { - //绉婚櫎action - if (zbGateway != null) - { - zbGateway.ReportAction -= UpdateDeviceControllStatu; - } - } - - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Light/PlugControl.cs b/ZigbeeApp/Shared/Phone/Device/Light/PlugControl.cs deleted file mode 100755 index 50969c8..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Light/PlugControl.cs +++ /dev/null @@ -1,539 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.DeviceLogic; -using Shared.Phone.UserView; -using ZigBee.Device; -namespace Shared.Phone.Device.Light -{ - /// <summary> - /// 鎻掑骇 - /// </summary> - public class PlugControl:FrameLayout, ZigBee.Common.IStatus - { - - #region 鈼� 鍙橀噺__________________________ - /// <summary> - /// 寮�鍏� - /// </summary> - private Button switchBtn; - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice, Common.Room> action; - - /// <summary> - /// The light image. - /// </summary> - private Button deviceIMG; - /// <summary> - /// 鏀惰棌鎸夐挳 - /// </summary> - private Button collectionBtn; - /// <summary> - /// 浼犺繃鏉ョ殑璁惧 - /// </summary> - private CommonDevice device; - /// <summary> - /// 浼犺繃鏉ョ殑鎴块棿 - /// </summary> - private Shared.Common.Room room; - - /// <summary> - /// 鎴块棿 - /// </summary> - private Button roomBtn; - /// <summary> - /// 鎴块棿鍚� - /// </summary> - private Button roomName; - /// <summary> - /// 缃戝叧 - /// </summary> - private ZbGateway zbGateway = null; - /// <summary> - /// 鏄惁鍙戦�佹帶鍒跺懡浠ゆ垚鍔熶簡 - /// </summary> - private bool sendedControlCommand = false; - - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - - private Button StatuBtn; - - /// <summary> - /// IsDrawerLockMode - /// </summary> - public bool IsDrawerLockMode; - #endregion - - #region 鈼� 鎺ュ彛__________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - if (deviceUI.Type == DeviceType.OnOffOutput) - { - if (common.DeviceStatusReport.CluterID == 6) - { - var light = deviceUI as ToggleLight; - light.DeviceStatusReport = common.DeviceStatusReport; - //璁板綍銆佹洿鏂扮姸鎬� - if (light.DeviceStatusReport.AttriBute == null || light.DeviceStatusReport.AttriBute.Count == 0) - { - return; - } - light.OnOffStatus = light.DeviceStatusReport.AttriBute[0].AttriButeData; - deviceIMG.IsSelected = switchBtn.IsSelected = light.OnOffStatus == 1; - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " " + UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device); - light.LastDateTime = DateTime.Now; - } - } - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - else if (typeTag == "OnlineStatusChange") - { - Application.RunOnMainThread(() => - { - try - { - var deviceUI = device; - //璁惧涓虹┖ - if (deviceUI == null) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if (deviceUI.DeviceEpoint != common.DeviceEpoint || deviceUI.DeviceAddr != common.DeviceAddr) - { - return; - } - deviceUI.IsOnline = common.IsOnline; - //deviceIMG.IsSelected = switchBtn.IsSelected = deviceUI.CommonDevice.IsOnline == 1; - deviceUI.LastDateTime = DateTime.Now; - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - } - #endregion - - #region 鈼� 鍒濆鍖朹____________________ - /// <summary> - /// 閲嶅啓绉婚櫎鏂规硶 - /// </summary> - public override void RemoveFromParent() - { - ZbGateway.StatusList.Remove(this); - action(device, room); - action = null; - RemoveUpdateControlDeviceStatuAction(); - if (IsDrawerLockMode) - { - CommonPage.Instance.IsDrawerLockMode = false; - } - base.RemoveFromParent(); - } - - /// <summary> - /// 鏋勯�犳柟娉� - /// </summary> - public PlugControl() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - ZbGateway.StatusList.Add(this); - } - /// <summary> - /// 鏄剧ず鐣岄潰 - /// </summary> - /// <param name="dev">Device.</param> - /// <param name="room">Room.</param> - public void Show(CommonDevice dev, Shared.Common.Room room) - { - device = dev; - zbGateway = this.device.Gateway; - this.room = room; - - AddTop(); - - AddBodyView(device); - - - var light = dev as ToggleLight; - //琛ヤ笂闈炶繙绋� - if (light.Gateway == null) - { - return; - } - if (light.Gateway.IsVirtual) - { - UserHomeView.ReadStatus(light, () => - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇鐘舵�� - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - light.LastDateTime).TotalSeconds) - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - } - } - - if (UserCenter.HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - collectionBtn.IsSelected = false; - } - else - { - collectionBtn.IsSelected = true; - } - - - BindEvent(); - - } - - #endregion - - #region 鈼� Add______________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - - var moreBtn = new Button - { - X = Application.GetRealWidth(953), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - Gravity = Gravity.CenterVertical, - UnSelectedImagePath = "Item/More.png" - }; - top.topView.AddChidren(moreBtn); - - moreBtn.MouseUpEventHandler += More; - - } - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView(CommonDevice device) - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var itemView = new FrameLayout() - { - Y = Application.GetRealHeight(115), - Width = Application.GetRealWidth(965), - Height = Application.GetRealHeight(1316), - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(itemView); - - collectionBtn = new Button() - { - X = Application.GetRealWidth(850), - Y = Application.GetRealHeight(46), - Width = Application.GetMinReal(69), - Height = Application.GetMinReal(69), - UnSelectedImagePath = "Item/Collection.png", - SelectedImagePath = "Item/CollectionSelected.png" - }; - itemView.AddChidren(collectionBtn); - - var deviceNameBtn = new Button() - { - Y = Application.GetRealHeight(46), - Width = Application.GetRealWidth(500), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - TextSize = 15, - IsBold=true - }; - itemView.AddChidren(deviceNameBtn); - - StatuBtn = new Button - { - Y = Application.GetRealHeight(118), - Width = Application.GetRealWidth(600), - Height = Application.GetRealHeight(60), - Gravity = Gravity.CenterHorizontal, - TextColor = ZigbeeColor.Current.GXCTextGrayColor, - Text = Language.StringByID(R.MyInternationalizationString.Current) + " " + UserCenter.HdlDeviceOtherLogic.Current.GetDeviceStatu(device), - TextSize = 10 - }; - itemView.AddChidren(StatuBtn); - - deviceIMG = new Button() - { - Y = Application.GetRealHeight(344), - Width = Application.GetMinRealAverage(567), - Height = Application.GetMinRealAverage(567), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Light/Plug.png", - SelectedImagePath = "Light/PlugSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(deviceIMG); - - switchBtn = new Button() - { - Y = Application.GetRealHeight(996), - Width = Application.GetMinRealAverage(81), - Height = Application.GetMinRealAverage(81), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/Switch.png", - SelectedImagePath = "Item/SwitchSelected.png", - IsSelected = (device as ToggleLight).OnOffStatus == 1 - }; - itemView.AddChidren(switchBtn); - - var roomBG = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(138 + 50), - BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor, - Radius = (uint)Application.GetRealHeight(CommonFormResouce.BigFormRadius) - }; - itemView.AddChidren(roomBG); - - var roomBG2 = new Button - { - Y = Application.GetRealHeight(1178 - 50), - Height = Application.GetRealHeight(50), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - itemView.AddChidren(roomBG2); - - roomBtn = new Button() - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(1207), - Width = Application.GetMinReal(80), - Height = Application.GetMinReal(80), - UnSelectedImagePath = "Item/Room.png" - }; - itemView.AddChidren(roomBtn); - - roomName = new Button() - { - X = Application.GetRealWidth(150), - Y = Application.GetRealHeight(1224), - Width = Application.GetRealWidth(400), - Height = Application.GetRealHeight(50), - Text = room.Name, - TextAlignment = TextAlignment.CenterLeft, - TextColor = ZigbeeColor.Current.GXCTextWhiteColor, - TextSize=12 - }; - itemView.AddChidren(roomName); - } - - #endregion - - #region 鈼� 缁戝畾鎸夐挳_______________________ - /// <summary> - /// 缁戝畾鎸夐挳鐨勪簨浠� - /// </summary> - private void BindEvent() - { - switchBtn.MouseUpEventHandler += Switch; - deviceIMG.MouseUpEventHandler += Switch; - collectionBtn.MouseUpEventHandler += Collection; - } - - #endregion - - #region 鈼� 寮�鍏砡_________________________ - - /// <summary> - /// 寮�鍏宠缃� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="eventArgs">Event arguments.</param> - private void Switch(object sender, MouseEventArgs eventArgs) - { - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - switchBtn.IsSelected = !switchBtn.IsSelected; - deviceIMG.IsSelected = !deviceIMG.IsSelected; - StatuBtn.Text = Language.StringByID(R.MyInternationalizationString.Current) + " "; - if (deviceIMG.IsSelected == true) - { - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.uOpen1); - } - else - { - StatuBtn.Text += Language.StringByID(R.MyInternationalizationString.Close); - } - if (switchBtn.IsSelected == true) - { - (device as ToggleLight).SwitchControl(1); - } - else - { - (device as ToggleLight).SwitchControl(0); - } - //鎺у埗寤舵椂鍥炶皟 - UserCenter.HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(); - if (sendedControlCommand == false) - { - UserCenter.HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - - - - #endregion - - #region 鈼� 璁剧疆__________________________ - /// <summary> - /// 鏇村璁剧疆 - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void More(object sender, MouseEventArgs e) - { - var detailInfo = new Device.CommonForm.DeviceDetailInfo { }; - UserView.HomePage.Instance.AddChidren(detailInfo); - UserView.HomePage.Instance.PageIndex += 1; - detailInfo.Show(device, room); - detailInfo.EditAction += (curDev, curRoom) => - { - Show(curDev, curRoom); - }; - } - - #endregion - - #region 鈼� 鏀惰棌__________________________ - /// <summary> - /// 鏀惰棌鍒颁富椤� - /// </summary> - /// <param name="sender">Sender.</param> - /// <param name="e">E.</param> - private void Collection(object sender, MouseEventArgs e) - { - //collection - if ((sender as Button).IsSelected) - { - UserCenter.HdlRoomLogic.Current.DeleteLoveDevice(device); - (sender as Button).IsSelected = false; - } - else - { - UserCenter.HdlRoomLogic.Current.AddLoveDevice(device); - (sender as Button).IsSelected = true; - } - } - - #endregion - - #region 鈼� 璁惧鎺у埗鐘舵�乢____________________ - - /// <summary> - /// 鏄剧ず璁惧鎺у埗鐘舵�� - /// </summary> - /// <param name="command">Command.</param> - /// <param name="objValue">Object value.</param> - private void UpdateDeviceControllStatu(string command, object objValue) - { - if (Parent == null) - { - return; - } - if (command != "DeviceDefaultAck" || objValue == null) - { - return; - } - var tempDevice = (CommonDevice)objValue; - if (tempDevice.DeviceEpoint != this.device.DeviceEpoint || tempDevice.DeviceAddr != this.device.DeviceAddr) - { - //涓嶆槸褰撳墠璁惧鐨勬帹閫侊紝鍒欎笉澶勭悊 - return; - } - //鏍囪宸茬粡鍙戦�佹帶鍒跺懡浠ゅ埌缃戝叧 - sendedControlCommand = true; - //DeviceUI.ShowStatuTip(R.MyInternationalizationString.Success); - } - - /// <summary> - /// 绉婚櫎鏇存柊鎺у埗璁惧鐨刟ction - /// </summary> - private void RemoveUpdateControlDeviceStatuAction() - { - //绉婚櫎action - if (zbGateway != null) - { - zbGateway.ReportAction -= UpdateDeviceControllStatu; - } - } - - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs b/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs index 17b995f..a1b1650 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/CustomText.cs @@ -52,6 +52,10 @@ middle.AddChidren(textBtn); string s1 = ""; string s2 = ""; + if (!string.IsNullOrEmpty(Common.Logic.CurrentLogic.LogicCustomPushText)) + { + textBtn.Text = (50 - Common.Logic.CurrentLogic.LogicCustomPushText.Length).ToString(); + } textBox.TextChangeEventHandler += (sender, e) => { var leng = e.Length; diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/OneLogic.cs b/ZigbeeApp/Shared/Phone/Device/Logic/OneLogic.cs index 8ef4c90..7627338 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/OneLogic.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/OneLogic.cs @@ -130,20 +130,25 @@ var conditions = Common.Logic.CurrentLogic.Conditions[i]; switch (Type) { - case 5: + case 0: { - - selecteddevice.ordinaryBtn.Visible = true; - selecteddevice.iconBtn.UnSelectedImagePath = "ZigeeLogic/timeparagraph.png"; - string s1 = "", s2 = ""; - s1 = conditions["StartMin"].Length < 2 ? "0" + conditions["StartMin"] : conditions["StartMin"]; - s2 = conditions["StopMin"].Length < 2 ? "0" + conditions["StopMin"] : conditions["StopMin"]; - ///鏄剧ず鏃堕棿 - selecteddevice.ordinaryBtn.Text = conditions["StartHour"] + ":" + s1 + "-" + conditions["StopHour"] + ":" + s2; - selecteddevice.selecetddevicestateBtn.Text = Language.StringByID(MyInternationalizationString.timeframe); + + //"0姝e父鏃堕棿鐐�","1鏃ュ嚭鏃堕棿","2鏃ヨ惤鏃堕棿","3姝e崍鏃堕棿" + switch (int.Parse(conditions["DateType"])) + { + case 0: + { + selecteddevice.ordinaryBtn.Text = Language.StringByID(MyInternationalizationString.immediateexecution); + selecteddevice.iconBtn.UnSelectedImagePath = "ZigeeLogic/timepoint.png"; + string s = ""; + s = conditions["StartMin"].Length < 2 ? "0" + conditions["StartMin"] : conditions["StartMin"]; + selecteddevice.selecetddevicestateBtn.Text= conditions["StartHour"] + ":" + s; + } + break; + } + } break; - } if (Yes) { @@ -154,13 +159,19 @@ ///缂栬緫 selecteddevice.edit.MouseUpEventHandler += (sender, e) => { - if (Type==5) { - var timePage = new TimePage(); - UserView.HomePage.Instance.AddChidren(timePage); + if (Type == 0) + { + var oneTimePoint = new OneTimePoint(); + UserView.HomePage.Instance.AddChidren(oneTimePoint); UserView.HomePage.Instance.PageIndex += 1; - timePage.str1 = conditions["StartHour"] + ":" + conditions["StartMin"] + "-" + conditions["StopHour"] + ":" + conditions["StopMin"]; - timePage.IsEditor = true; - timePage.Show(true); + oneTimePoint.Show((timeString) => + { + if (!string.IsNullOrEmpty(timeString)) + { + //缂栬緫瀹屽洖鏉ュ厛鏇存柊鏃堕棿 + selecteddevice.selecetddevicestateBtn.Text = timeString; + } + }); } }; diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/OneTimePoint.cs b/ZigbeeApp/Shared/Phone/Device/Logic/OneTimePoint.cs new file mode 100755 index 0000000..4ceb68f --- /dev/null +++ b/ZigbeeApp/Shared/Phone/Device/Logic/OneTimePoint.cs @@ -0,0 +1,106 @@ +锘縰sing System; +using System.Collections.Generic; +using Shared; +using Shared.Common; +using Shared.Phone; +using Shared.Phone.Device.Logic.LogicView; +using Shared.R; +using ZigBee.Device; + +namespace Shared.Phone.Device.Logic +{ + public class OneTimePoint : FrameLayout + { + public OneTimePoint() + { + Tag = "Logic"; + } + + public void Show(Action<string> action) + { + #region 涓婇潰鐨勫竷灞�浠g爜 + TopView view = new TopView(); + this.AddChidren(view.TopRowView()); + view.toptitleNameBtn.TextID = MyInternationalizationString.addtime; + view.clickBtn.MouseDownEventHandler += (sender, e) => { + RemoveFromParent(); + action(""); + }; + #endregion + + var middle = new FrameLayout + { + Y = view.topRowLayout.Bottom, + Height = Application.GetRealHeight(1920 - 184 - 260), + BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, + }; + this.AddChidren(middle); + #region -----绫诲瀷 鏃跺埢 鑷畾涔夋椂闂� + TypeView typeView = new TypeView(); + middle.AddChidren(typeView.Show()); + typeView.textBtn.TextID = MyInternationalizationString.type; + typeView.titleBtn.Width = Application.GetRealWidth(630 + 70); + typeView.titleBtn.TextID = MyInternationalizationString.immediateexecution; + typeView.backBtn.Visible = false; + + TypeView skView = new TypeView(); + skView.frameLayout.Y = typeView.frameLayout.Bottom; + middle.AddChidren(skView.Show()); + skView.textBtn.TextID = MyInternationalizationString.moment; + skView.backBtn.UnSelectedImagePath = "ZigeeLogic/dropdown.png"; + + #endregion + + var rowTimeView = new FrameLayout + { + Y = skView.frameLayout.Bottom, + Height = Application.GetRealHeight(600), + }; + middle.AddChidren(rowTimeView); + + TimeView timeview = new TimeView + { + + Height = Application.GetRealHeight(550), + BackgroundColor = 0x40ffffff, + Width = Application.GetRealWidth(1080), + }; + rowTimeView.AddChidren(timeview); + + //淇濆瓨 + SaveView saveView = new SaveView(); + saveView.frameLayout.Y = middle.Bottom; + this.AddChidren(saveView.Show()); + saveView.clickviewBtn.MouseUpEventHandler += (sender, e) => + { + string h = timeview.Hour.ToString(); + string m = timeview.Minute.ToString(); + Dictionary<string, string> timeIfon = new Dictionary<string, string>(); + timeIfon.Add("Type", "0"); + timeIfon.Add("IsValid", "1"); + timeIfon.Add("DateType", "0"); + timeIfon.Add("RemindTime", "0"); + timeIfon.Add("EnDelay", "0"); + timeIfon.Add("DelayTime", "0"); + timeIfon.Add("DoorLockOpenDelayTime", "0"); + timeIfon.Add("StartHour", h); + timeIfon.Add("StartMin", m); + for (int i = 0; i < Common.Logic.CurrentLogic.Conditions.Count; i++) + { + if (Common.Logic.CurrentLogic.Conditions[i]["Type"] == "0") + { + Common.Logic.CurrentLogic.Conditions.RemoveAt(i); + Common.Logic.CurrentLogic.Conditions.Insert(i, timeIfon); + break; + } + } + string s = h + ":" + (m.Length < 2 ? "0" + m : m); + this.RemoveFromParent(); + action(s); + }; + + } + + } +} + diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs b/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs index 8c89431..6d0a404 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/Send.cs @@ -1113,6 +1113,14 @@ /// <param name="logic">閫昏緫瀵硅薄</param> public static void Zj(bool tag, Common.Logic logic) { + + if (string.IsNullOrEmpty(logic.LogicCustomPushText)) + { + ///榛樿鎺ㄩ�佽嚜瀹氫箟鍐呭 + string str = logic.LogicName + Language.StringByID(R.MyInternationalizationString.defaulttext); + logic.LogicCustomPushText = str; + } + new System.Threading.Thread(() => { if (logic.LogicId != 0) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs index e20c360..78b35c0 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs @@ -13,12 +13,13 @@ /// <summary> /// 鍏跺畠鐣岄潰璺宠繘鏉ョ殑鍏ュ彛 /// </summary> - public static void SkipAddLogic(int intvalue,DoorLock doorLock=null,UserCenter.MemberInfoRes accountObj = null) + public static void SkipAddLogic(int intvalue, DoorLock doorLock = null, UserCenter.MemberInfoRes accountObj = null) { /// 0.姝e父鑷姩鍖�;1.闂ㄩ攣鑷姩鍖�;2.闂ㄩ攣甯稿紑.鍏�; switch (intvalue) { - case 0: { + case 0: + { //new涓�涓柊閫昏緫瀵硅薄锛� //鏂板姝e父鑷姩鍖栧叆鍙� Common.Logic.CurrentLogic = new Common.Logic(); @@ -29,15 +30,17 @@ UserView.HomePage.Instance.AddChidren(addLogicPage); UserView.HomePage.Instance.PageIndex += 1; addLogicPage.Show(); - } break; - case 1: { + } + break; + case 1: + { //杩涘叆闂ㄩ攣鑱斿姩浜嬩欢鍏ュ彛 Send.UserMemberInfoRes = accountObj; Send.CurrentDoorLock = doorLock; if (accountObj == null) { ///闃叉鎶涘紓甯� - Send.UserMemberInfoRes = new UserCenter.MemberInfoRes(); + Send.UserMemberInfoRes = new UserCenter.MemberInfoRes(); } if (doorLock == null) { @@ -54,52 +57,49 @@ UserView.HomePage.Instance.AddChidren(doorLockLogicList); UserView.HomePage.Instance.PageIndex += 1; doorLockLogicList.Show(); - } break; - case 2: { + } + break; + case 2: + { Common.Logic.LogicDviceList.Clear(); if (Common.Logic.LogicDviceList.Count == 0) { Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); } //璇诲彇绯荤粺褰撳墠鏃堕棿锛氭椂-鍒� - int h =int.Parse(DateTime.Now.ToString("hh")); - int m = int.Parse(DateTime.Now.ToString("mm")); - //榛樿涓�涓椂闂存(寮�濮嬫椂闂翠负:绯荤粺褰撳墠锛岀粨鏉熸椂闂翠负:寮�濮嬫椂闂�+1涓椂闂�) - Dictionary<string, string> timeDictionary = new Dictionary<string, string>(); - timeDictionary.Add("Type", "5"); - timeDictionary.Add("IsValid", "1"); - timeDictionary.Add("StartHour", h.ToString()); - timeDictionary.Add("StartMin", m.ToString()); - if (h + 1 == 24) - { - //缁撴潫鏃堕棿瓒呭嚭24灏忔椂澶勭悊鏂规硶; - timeDictionary.Add("StopHour", h.ToString()); - timeDictionary.Add("StopMin", "59"); - } - else - { - timeDictionary.Add("StopHour", (h + 1).ToString()); - timeDictionary.Add("StopMin", m.ToString()); - } + //璇诲彇绯荤粺褰撳墠鏃堕棿锛氭椂-鍒� + var h = DateTime.Now.ToString("HH"); + var m = DateTime.Now.ToString("mm"); + Dictionary<string, string> timeConditionsInfo = new Dictionary<string, string>(); + timeConditionsInfo.Add("Type", "0"); + timeConditionsInfo.Add("IsValid", "1"); + timeConditionsInfo.Add("DateType", "0"); + timeConditionsInfo.Add("RemindTime", "0"); + timeConditionsInfo.Add("EnDelay", "0"); + timeConditionsInfo.Add("DelayTime", "0"); + timeConditionsInfo.Add("DoorLockOpenDelayTime", "0"); + timeConditionsInfo.Add("StartHour", h); + timeConditionsInfo.Add("StartMin", m); Dictionary<string, object> actionsInfo = new Dictionary<string, object>(); actionsInfo.Add("LinkType", 8); actionsInfo.Add("DeviceAddr", doorLock.DeviceAddr); actionsInfo.Add("Epoint", doorLock.DeviceEpoint); - actionsInfo.Add("PassData", "055704010112");//榛樿闂ㄩ攣甯稿紑 - + actionsInfo.Add("PassData", "055704010113");//榛樿闂ㄩ攣甯稿叧 + //new涓�涓柊閫昏緫瀵硅薄锛� //鏂板闂ㄩ攣甯稿紑妯″紡鑷姩鍖栧叆鍙o紱 Common.Logic.CurrentLogic = new Common.Logic(); Common.Logic.CurrentLogic.IsEnable = 1;//榛樿涓哄紑 Common.Logic.CurrentLogic.LogicType = 2;//鏍囪閫昏緫绫诲瀷 Common.Logic.CurrentLogic.LogicName = Language.StringByID(MyInternationalizationString.openmode); - Common.Logic.CurrentLogic.Conditions.Add(timeDictionary);//娣诲姞鏉′欢 + Common.Logic.CurrentLogic.Conditions.Add(timeConditionsInfo);//娣诲姞鏉′欢 Common.Logic.CurrentLogic.Actions.Add(actionsInfo);//娣诲姞鐩爣 var oneLogic = new OneLogic(); UserView.HomePage.Instance.AddChidren(oneLogic); UserView.HomePage.Instance.PageIndex += 1; oneLogic.Show(false); - } break; + } + break; } } @@ -180,8 +180,8 @@ X = Application.GetRealWidth(58), Y = scenehorizontalScrol.Bottom, }; - functionSceneAutoBodyView.AddChidren(logicScrolView); - + functionSceneAutoBodyView.AddChidren(logicScrolView); + logicScrolView.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); bool no = false; //鏄剧ず榛樿妯℃澘鐨勭晫闈簨浠� @@ -286,10 +286,10 @@ Read(logicScrolView, no); //鍏抽棴鍒锋柊View锛� logicScrolView.EndHeaderRefreshing(); - }; - - //鑷姩鍖� - Read(logicScrolView, no); + }; + + //鑷姩鍖� + Read(logicScrolView, no); } /// <summary> @@ -299,36 +299,43 @@ private static async void Read(VerticalRefreshLayout logicScrolView, bool no) { CommonPage.Loading.Start(); - if (Common.Logic.LogicList.Count == 0) + try { - var Idlist1 = await Send.GetLogicId(0);// - var Idlist2 = await Send.GetLogicId(2);//闂ㄩ攣甯稿紑妯″紡 - if (Idlist1.Count != 0) + if (Common.Logic.LogicList.Count == 0) { - var listlogic1 = await Send.ReadList(Idlist1.Count, 0); - for (int j = 0; j < listlogic1.Count; j++) + var Idlist1 = await Send.GetLogicId(0);// + var Idlist2 = await Send.GetLogicId(2);//闂ㄩ攣甯稿紑妯″紡 + if (Idlist1.Count != 0) { - var logic = listlogic1[j]; - if (logic.LogicType != 0) + var listlogic1 = await Send.ReadList(Idlist1.Count, 0); + for (int j = 0; j < listlogic1.Count; j++) { - continue; + var logic = listlogic1[j]; + if (logic.LogicType != 0) + { + continue; + } + Common.Logic.LogicList.Add(logic); } - Common.Logic.LogicList.Add(logic); + } + if (Idlist2.Count != 0) + { + var listlogic2 = await Send.ReadList(Idlist2.Count, 2); + for (int j = 0; j < listlogic2.Count; j++) + { + var logic = listlogic2[j]; + if (logic.LogicType != 2) + { + continue; + } + Common.Logic.LogicList.Add(logic); + } } } - if (Idlist2.Count != 0) - { - var listlogic2 = await Send.ReadList(Idlist2.Count, 2); - for (int j = 0; j < listlogic2.Count; j++) - { - var logic = listlogic2[j]; - if (logic.LogicType != 2) - { - continue; - } - Common.Logic.LogicList.Add(logic); - } - } + } + catch (Exception e) + { + var dd = e.Message; } //鑷姩鍖� Automationview(logicScrolView, no); @@ -347,7 +354,7 @@ refresview.BackgroundColor = 0x00000000; var noFrameLayout = new FrameLayout { - Height = Application.GetRealHeight(434 + 200 + 32 + 294-55), + Height = Application.GetRealHeight(434 + 200 + 32 + 294 - 55), //BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, }; refresview.AddChidren(noFrameLayout); @@ -355,7 +362,7 @@ var noIconBtn = new Button { - Y = Application.GetRealHeight(294-55), + Y = Application.GetRealHeight(294 - 55), Width = Application.GetMinRealAverage(756), Height = Application.GetMinRealAverage(434), UnSelectedImagePath = "Item/NoFunction.png", @@ -394,7 +401,7 @@ int i = 1;//灞�閮ㄥ彉閲忥紝榛樿鏄涓�鏉¢�昏緫; foreach (var logic in Common.Logic.LogicList) { - + var fLayout = new FrameLayout { Height = Application.GetRealHeight(190 + 30), @@ -402,7 +409,7 @@ BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, }; refresview.AddChidren(fLayout); - + var logicRowlayout = new RowLayout { Height = Application.GetRealHeight(190 + 30), @@ -419,8 +426,8 @@ fLayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); logicRowlayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); i = 2; - } - + } + var logicnameBtn = new Button { Height = Application.GetRealHeight(58), @@ -461,7 +468,7 @@ logic.IsEnable = 0; StatusColor(logic, logicRowlayout, 0); } - Send.LogicControlSwitch(logic); + Send.LogicControlSwitch(logic); //Logic.Send.AddModifyLogic(logic); }; if (logic.IsEnable == 1) @@ -482,8 +489,9 @@ TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, }; logicRowlayout.AddRightView(edit); - if (logic.LogicType==2) { - edit.TextID=MyInternationalizationString.look; + if (logic.LogicType == 2) + { + edit.TextID = MyInternationalizationString.look; } edit.MouseUpEventHandler += (sender, e) => { @@ -534,7 +542,9 @@ Width = Application.GetRealWidth(1080 - 58), BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor, }; - fLayout.AddChidren(line); + fLayout.AddChidren(line); + + } } @@ -572,9 +582,9 @@ { indexlist.Add(linkType); } - } - //鎺掑垪鍥炬爣椤哄簭; - if (indexlist.Contains("0")|| indexlist.Contains("8")) + } + //鎺掑垪鍥炬爣椤哄簭; + if (indexlist.Contains("0") || indexlist.Contains("8")) { iconIndexlist.Add("0"); } @@ -702,10 +712,10 @@ /// <param name="timeVlaue">鏃堕棿鍊�</param> /// <param name="common">璁惧</param> /// <returns></returns> - public static void LockAddModifyLogic(int timeVlaue, CommonDevice common) + public static async System.Threading.Tasks.Task<bool> LockAddModifyLogic(int timeVlaue, CommonDevice common) { //璇诲彇绯荤粺褰撳墠鏃堕棿锛氭椂-鍒� - var h = DateTime.Now.ToString("hh"); + var h = DateTime.Now.ToString("HH"); var m = DateTime.Now.ToString("mm"); Dictionary<string, string> timeConditionsInfo = new Dictionary<string, string>(); timeConditionsInfo.Add("Type", "0"); @@ -730,21 +740,29 @@ currentLogic.LogicName = Language.StringByID(R.MyInternationalizationString.openmode); currentLogic.Conditions.Add(timeConditionsInfo); currentLogic.Actions.Add(actionsInfo); - Exist(3);//鏌ユ壘鏄惁瀛樺湪璁剧疆杩囧け鏁堟椂闂�(鏈夌殑璇濆垹闄わ紝鍐嶆坊鍔�) - Send.AddModifyLogic(currentLogic); + Exist(3);//鏌ユ壘鏄惁瀛樺湪璁剧疆杩囧け鏁堟椂闂�(鏈夌殑璇濆垹闄わ紝鍐嶆坊鍔�) + var logicIfon = await Send.AddModifyLogic(currentLogic); + if (logicIfon != null && logicIfon.LogicId != 0) + { + //娣诲姞闂ㄩ攣澶辨晥鏃堕棿鐨勫巻鍙茶褰� + UserCenter.HdlDeviceDoorLockLogic.Current.AddDoorHistoryLog((DoorLock)common, 9003, timeVlaue.ToString()); + return true;//琛ㄧず娣诲姞鎴愬姛; + } + return false;//琛ㄧず娣诲姞澶辫触; } ///<summary> /// s-one闂ㄩ攣鏄惁瀛樺湪鑷姩鍖栫殑鏂规硶(true涓哄瓨鍦�) /// </summary> - public static async System.Threading.Tasks.Task<bool> Exist(int valueInt=2) + public static async System.Threading.Tasks.Task<bool> Exist(int valueInt = 2) { bool exist = false; var Idlist = await Send.GetLogicId(valueInt); if (Idlist.Count != 0) { - if (valueInt==3) { + if (valueInt == 3) + { for (int i = 0; i < Idlist.Count; i++) { //valueInt=3涓�鏉$壒娈婄殑鑷姩鍖�(鐢ㄦ潵璁剧疆澶辨晥鏃堕棿) @@ -762,8 +780,8 @@ public static async void LockCloseLogic(CommonDevice common) { //璇诲彇绯荤粺褰撳墠鏃堕棿锛氭椂-鍒� - int h =int.Parse(DateTime.Now.ToString("hh")); - int m= int.Parse(DateTime.Now.ToString("mm")); + int h = int.Parse(DateTime.Now.ToString("HH")); + int m = int.Parse(DateTime.Now.ToString("mm")); //杞寲涓哄灏戝垎閽�; int s = h * 60 + m; var logicList = new List<Common.Logic>(); @@ -786,14 +804,14 @@ int stopHour = int.Parse(conditions["StopHour"]); int s1 = startMin + startHour * 60;//寮�濮嬫椂闂村�� int s2 = stopMin + stopHour * 60;//缁撴潫鏃堕棿鍊� - if (s >= s1&&s<=s2) - { - //鏌ユ壘绯荤粺鏃堕棿鍊兼槸鍚﹀睘浜庤繖涓寖鍥达紱 + if (s >= s1 && s <= s2) + { + //鏌ユ壘绯荤粺鏃堕棿鍊兼槸鍚﹀睘浜庤繖涓寖鍥达紱 logicList.Add(logic); } } - } - + } + } } foreach (var logic in logicList) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/TimePage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/TimePage.cs index a679593..f0f6be9 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/TimePage.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/TimePage.cs @@ -19,7 +19,7 @@ public string str1; Dictionary<string, string> timeBucketConditionsInfo = new Dictionary<string, string>(); - public void Show(bool _if=false) + public void Show() { #region 涓婇潰鐨勫竷灞�浠g爜 @@ -33,7 +33,7 @@ var middle = new FrameLayout { Y = view.topRowLayout.Bottom, - Height = Application.GetRealHeight(1920 - 184-260), + Height = Application.GetRealHeight(1920 - 184 - 260), BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, }; this.AddChidren(middle); @@ -50,7 +50,7 @@ TypeView typeView = new TypeView(); middle.AddChidren(typeView.Show()); typeView.textBtn.TextID = MyInternationalizationString.type; - typeView.titleBtn.Width = Application.GetRealWidth(630+70); + typeView.titleBtn.Width = Application.GetRealWidth(630 + 70); typeView.titleBtn.TextID = MyInternationalizationString.timeframe; typeView.backBtn.Visible = false; @@ -82,18 +82,18 @@ { if (str1 != null) { - + string[] timestr = str1.Split('-'); string[] starttime = timestr[0].Split(':'); string[] endtime = timestr[1].Split(':'); string s1 = "", s2 = ""; if (starttime[1].Length < 2) { - s1 = "0" + starttime[1]; + s1 = "0" + starttime[1]; } else { - s1 = starttime[1]; + s1 = starttime[1]; } if (endtime[1].Length < 2) { @@ -104,7 +104,7 @@ s2 = endtime[1]; } startView.titleBtn.Text = starttime[0] + ":" + s1; - endView.titleBtn.Text =endtime[0] + ":" + s2; + endView.titleBtn.Text = endtime[0] + ":" + s2; //btnstarttime.Text = timestr[0]; //btnendtime.Text = timestr[1]; @@ -148,7 +148,7 @@ { Y = Application.GetRealHeight(1920 - 600), Height = Application.GetRealHeight(600), - BackgroundColor =ZigbeeColor.Current.LogicTimeViewColor, + BackgroundColor = ZigbeeColor.Current.LogicTimeViewColor, Width = Application.GetRealWidth(1080), }; flMain.AddChidren(timeview); @@ -161,7 +161,7 @@ Height = Application.GetRealHeight(150), Text = Language.StringByID(MyInternationalizationString.complete), // TextColor = 0xFF121212, - TextColor =ZigbeeColor.Current.LogicTimeViewSaveButton, + TextColor = ZigbeeColor.Current.LogicTimeViewSaveButton, //TextAlignment = TextAlignment.CenterRight X = Application.GetRealWidth(1080 - 200), }; @@ -173,9 +173,9 @@ var startval = timeview.Hour * 60 + timeview.Minute; - if (endView.titleBtn.Tag.ToString() != "0" && startval.ToString()== endView.titleBtn.Tag.ToString()) + if (endView.titleBtn.Tag.ToString() != "0" && startval.ToString() == endView.titleBtn.Tag.ToString()) { - + var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, Language.StringByID(MyInternationalizationString.nottime), Language.StringByID(MyInternationalizationString.confrim)); @@ -184,7 +184,7 @@ } if (endView.titleBtn.Tag.ToString() != "0" && startval > int.Parse(endView.titleBtn.Tag.ToString())) { - + var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, Language.StringByID(MyInternationalizationString.timesetting), Language.StringByID(MyInternationalizationString.confrim)); @@ -202,155 +202,146 @@ startView.titleBtn.Tag = timeview.Hour * 60 + timeview.Minute; timeBucketConditionsInfo.Add("StartHour", timeview.Hour.ToString()); timeBucketConditionsInfo.Add("StartMin", timeview.Minute.ToString()); - startView.titleBtn.Text = timeview.Hour.ToString() + ":" + (timeview.Minute.ToString().Length < 2?"0"+timeview.Minute.ToString():timeview.Minute.ToString()); + startView.titleBtn.Text = timeview.Hour.ToString() + ":" + (timeview.Minute.ToString().Length < 2 ? "0" + timeview.Minute.ToString() : timeview.Minute.ToString()); }; }; - endView.clickviewBtn.MouseUpEventHandler+= (sender, e) => - { + endView.clickviewBtn.MouseUpEventHandler += (sender, e) => + { - var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicTranslucentColor }; - AddChidren(flMain); - flMain.MouseUpEventHandler += (sender11, e11) => - { - flMain.RemoveFromParent(); - }; + var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicTranslucentColor }; + AddChidren(flMain); + flMain.MouseUpEventHandler += (sender11, e11) => + { + flMain.RemoveFromParent(); + }; - var timeview = new TimeView - { - Y = Application.GetRealHeight(1920 - 600), - Height = Application.GetRealHeight(600), - BackgroundColor =ZigbeeColor.Current.LogicTimeViewColor, - Width = Application.GetRealWidth(1080), - }; - flMain.AddChidren(timeview); + var timeview = new TimeView + { + Y = Application.GetRealHeight(1920 - 600), + Height = Application.GetRealHeight(600), + BackgroundColor = ZigbeeColor.Current.LogicTimeViewColor, + Width = Application.GetRealWidth(1080), + }; + flMain.AddChidren(timeview); - var btnSave = new Button - { - Y = Application.GetRealHeight(1920 - 600), - Width = Application.GetRealWidth(200), - Height = Application.GetRealHeight(150), - Text = Language.StringByID(MyInternationalizationString.complete), + var btnSave = new Button + { + Y = Application.GetRealHeight(1920 - 600), + Width = Application.GetRealWidth(200), + Height = Application.GetRealHeight(150), + Text = Language.StringByID(MyInternationalizationString.complete), //TextColor = 0xFF121212, - TextColor =ZigbeeColor.Current.LogicTimeViewSaveButton, + TextColor = ZigbeeColor.Current.LogicTimeViewSaveButton, //TextAlignment = TextAlignment.CenterRight X = Application.GetRealWidth(1080 - 200), - }; - flMain.AddChidren(btnSave); + }; + flMain.AddChidren(btnSave); - btnSave.MouseUpEventHandler += (sender2, e2) => - { - flMain.RemoveFromParent(); + btnSave.MouseUpEventHandler += (sender2, e2) => + { + flMain.RemoveFromParent(); - var endval = timeview.Hour * 60 + timeview.Minute; + var endval = timeview.Hour * 60 + timeview.Minute; - if (startView.titleBtn.Tag.ToString() != "0" && endval.ToString() == startView.titleBtn.Tag.ToString()) - { - - var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, - Language.StringByID(MyInternationalizationString.nottime), - Language.StringByID(MyInternationalizationString.confrim)); - alert.Show(); - return; - } - if (startView.titleBtn.Tag.ToString() != "0" && endval < int.Parse(startView.titleBtn.Tag.ToString())) - { - - var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, - Language.StringByID(MyInternationalizationString.timesetting), - Language.StringByID(MyInternationalizationString.confrim)); - alert.Show(); - return; - } - - if (timeBucketConditionsInfo.ContainsKey("StopHour")) - { - timeBucketConditionsInfo.Remove("StopHour"); - } - if (timeBucketConditionsInfo.ContainsKey("StopMin")) - { - timeBucketConditionsInfo.Remove("StopMin"); - } - endView.titleBtn.Tag = timeview.Hour * 60 + timeview.Minute; - timeBucketConditionsInfo.Add("StopHour",timeview.Hour.ToString()); - timeBucketConditionsInfo.Add("StopMin", timeview.Minute.ToString()); - endView.titleBtn.Text = timeview.Hour.ToString() + ":" + (timeview.Minute.ToString().Length < 2?"0"+timeview.Minute.ToString():timeview.Minute.ToString()); - }; - }; - + if (startView.titleBtn.Tag.ToString() != "0" && endval.ToString() == startView.titleBtn.Tag.ToString()) + { + + var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, + Language.StringByID(MyInternationalizationString.nottime), + Language.StringByID(MyInternationalizationString.confrim)); + alert.Show(); + return; + } + if (startView.titleBtn.Tag.ToString() != "0" && endval < int.Parse(startView.titleBtn.Tag.ToString())) + { + + var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, + Language.StringByID(MyInternationalizationString.timesetting), + Language.StringByID(MyInternationalizationString.confrim)); + alert.Show(); + return; + } + + if (timeBucketConditionsInfo.ContainsKey("StopHour")) + { + timeBucketConditionsInfo.Remove("StopHour"); + } + if (timeBucketConditionsInfo.ContainsKey("StopMin")) + { + timeBucketConditionsInfo.Remove("StopMin"); + } + endView.titleBtn.Tag = timeview.Hour * 60 + timeview.Minute; + timeBucketConditionsInfo.Add("StopHour", timeview.Hour.ToString()); + timeBucketConditionsInfo.Add("StopMin", timeview.Minute.ToString()); + endView.titleBtn.Text = timeview.Hour.ToString() + ":" + (timeview.Minute.ToString().Length < 2 ? "0" + timeview.Minute.ToString() : timeview.Minute.ToString()); + }; + }; + ///瀹屾垚鐐瑰嚮浜嬩欢 - saveView.clickviewBtn.MouseUpEventHandler+= (sender, e) => - { - if (timeBucketConditionsInfo.ContainsKey("Type")) - { - timeBucketConditionsInfo.Remove("Type"); - } - if (timeBucketConditionsInfo.ContainsKey("IsValid")) - { - timeBucketConditionsInfo.Remove("IsValid"); - } - timeBucketConditionsInfo.Add("Type", "5"); - timeBucketConditionsInfo.Add("IsValid", "1"); + saveView.clickviewBtn.MouseUpEventHandler += (sender, e) => + { + if (timeBucketConditionsInfo.ContainsKey("Type")) + { + timeBucketConditionsInfo.Remove("Type"); + } + if (timeBucketConditionsInfo.ContainsKey("IsValid")) + { + timeBucketConditionsInfo.Remove("IsValid"); + } + timeBucketConditionsInfo.Add("Type", "5"); + timeBucketConditionsInfo.Add("IsValid", "1"); - if (string.IsNullOrEmpty(startView.titleBtn.Text) || string.IsNullOrEmpty(endView.titleBtn.Text)) - { - var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, - Language.StringByID(MyInternationalizationString.completeNext), - Language.StringByID(MyInternationalizationString.confrim)); - alert.Show(); - return; - } - if (startView.titleBtn.Text == endView.titleBtn.Text) - { - var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, - Language.StringByID(MyInternationalizationString.sametime), - Language.StringByID(MyInternationalizationString.confrim)); - alert.Show(); - return; - } + if (string.IsNullOrEmpty(startView.titleBtn.Text) || string.IsNullOrEmpty(endView.titleBtn.Text)) + { + var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, + Language.StringByID(MyInternationalizationString.completeNext), + Language.StringByID(MyInternationalizationString.confrim)); + alert.Show(); + return; + } + if (startView.titleBtn.Text == endView.titleBtn.Text) + { + var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, + Language.StringByID(MyInternationalizationString.sametime), + Language.StringByID(MyInternationalizationString.confrim)); + alert.Show(); + return; + } - if (IsEditor) - { - for (int i = 0; i < Common.Logic.CurrentLogic.Conditions.Count; i++) - { - if (Common.Logic.CurrentLogic.Conditions[i]["Type"] == "5") - { + if (IsEditor) + { + for (int i = 0; i < Common.Logic.CurrentLogic.Conditions.Count; i++) + { + if (Common.Logic.CurrentLogic.Conditions[i]["Type"] == "5") + { - var timeBucketInfo = Common.Logic.CurrentLogic.Conditions[i]; - var s = timeBucketInfo["StartHour"] + ":" + timeBucketInfo["StartMin"] + "-" + timeBucketInfo["StopHour"] + ":" + timeBucketInfo["StopMin"]; - if (str1 == s) - { - Common.Logic.CurrentLogic.Conditions.RemoveAt(i); - Common.Logic.CurrentLogic.Conditions.Insert(i, timeBucketConditionsInfo); - } + var timeBucketInfo = Common.Logic.CurrentLogic.Conditions[i]; + var s = timeBucketInfo["StartHour"] + ":" + timeBucketInfo["StartMin"] + "-" + timeBucketInfo["StopHour"] + ":" + timeBucketInfo["StopMin"]; + if (str1 == s) + { + Common.Logic.CurrentLogic.Conditions.RemoveAt(i); + Common.Logic.CurrentLogic.Conditions.Insert(i, timeBucketConditionsInfo); + } - } - } - } - else - { - Common.Logic.CurrentLogic.Conditions.Add(timeBucketConditionsInfo); - } + } + } + } + else + { + Common.Logic.CurrentLogic.Conditions.Add(timeBucketConditionsInfo); + } //LogicIfon.logicIfon.Addconditions(timeBucketConditionsInfo,timeBucketConditionsInfo.Type); - if (_if) { - //璺冲埌S-one闂ㄩ攣 - var oneLogic = new OneLogic { }; - UserView.HomePage.Instance.AddChidren(oneLogic); - UserView.HomePage.Instance.PageIndex += 1; - oneLogic.Show(false); - } - else - { - var logicCommunalPage = new LogicCommunalPage { }; - UserView.HomePage.Instance.AddChidren(logicCommunalPage); - UserView.HomePage.Instance.PageIndex += 1; - logicCommunalPage.Show(() => { }); - } - }; + var logicCommunalPage = new LogicCommunalPage { }; + UserView.HomePage.Instance.AddChidren(logicCommunalPage); + UserView.HomePage.Instance.PageIndex += 1; + logicCommunalPage.Show(() => { }); + + }; } } diff --git a/ZigbeeApp/Shared/Phone/Device/Room/AddRoomSelectPicByLocal.cs b/ZigbeeApp/Shared/Phone/Device/Room/AddRoomSelectPicByLocal.cs deleted file mode 100755 index c79d6fc..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Room/AddRoomSelectPicByLocal.cs +++ /dev/null @@ -1,90 +0,0 @@ -锘縰sing System; -using Shared.Common; -namespace Shared.Phone.Device.Room -{ - public class AddRoomSelectPicByLocal:FrameLayout - { - public Action<string> action; - public AddRoomSelectPicByLocal() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - public override void RemoveFromParent() - { - base.RemoveFromParent(); - } - public void Show() - { - ShowPic(); - } - void ShowPic() - { - #region topview - var topBGView = new FrameLayout()鈥� {鈥� Height = Application.GetRealHeight(CommonPage.Navigation_Height),鈥� BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor鈥� };鈥� AddChidren(topBGView);鈥� var topView = new FrameLayout()鈥� {鈥� Y = Application.GetRealHeight(CommonPage.NavigationTitle_Y),鈥� Height = Application.GetRealHeight(CommonPage.Navigation_Height - CommonPage.NavigationTitle_Y),鈥� BackgroundColor = ZigbeeColor.Current.GXCTopViewBackgroundColor,鈥� };鈥� AddChidren(topView); - - var title = new Button() - { - TextAlignment = TextAlignment.Center, - //TextID = R.MyInternationalizationString.SelectPic, - TextSize = 20, - TextColor = ZigbeeColor.Current.GXCTextBlackColor, - Width = Application.GetRealWidth(500), - Gravity = Gravity.CenterHorizontal - }; - topView.AddChidren(title); - - var back = new UserCenter.BackViewControl();鈥� topView.AddChidren(back); - back.InitControl(); - - back.ButtonClickEvent += (sender, e) => - { - this.RemoveFromParent(); - }; - #endregion - - #region midFL - var midFl = new VerticalScrolViewLayout() - { - Height = Application.GetRealHeight(CommonPage.AppRealHeight - CommonPage.Navigation_Height), - Y = topView.Bottom, - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - }; - this.AddChidren(midFl); - - int k = 0; - for (int j = 0; j < 11; j++) - { - var itemView = new FrameLayout() - { - Height = Application.GetRealHeight(311 + 58) - }; - midFl.AddChidren(itemView); - for (int i = 0; i < 2; i++) - { - var icon = new ImageView() - { - X = Application.GetRealWidth(58 + i * (467 + 32)), - Y = Application.GetRealHeight(58), - Width = Application.GetRealWidth(467), - Height = Application.GetRealHeight(311), - ImagePath = $"RoomIcon/{k}.jpg", - Radius = (uint)Application.GetRealHeight(17) - }; - itemView.AddChidren(icon); - icon.SetViewShadow(true); - k++; - - EventHandler<MouseEventArgs> selectIcon = (sender, e) => - { - action?.Invoke(icon.ImagePath); - action = null; - this.RemoveFromParent(); - }; - icon.MouseUpEventHandler += selectIcon; - } - } - - #endregion - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Room/EditRoom.cs b/ZigbeeApp/Shared/Phone/Device/Room/EditRoom.cs deleted file mode 100755 index 1a22030..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Room/EditRoom.cs +++ /dev/null @@ -1,588 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using System.Globalization; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.DeviceLogic; -using Shared.Phone.UserCenter; -using Shared.Phone.UserView; -using ZigBee.Device; - -namespace Shared.Phone.Device.Room -{ - public class EditRoom : FrameLayout, ZigBee.Common.IStatus - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - - /// <summary> - /// The room. - /// </summary> - public Shared.Common.Room room; - - /// <summary> - /// The action. - /// </summary> - public Action action; - - /// <summary> - /// backGround - /// </summary> - private ImageView backGround; - /// <summary> - /// IconPathType - /// </summary> - public int IconPathType; - /// <summary> - /// OldBackgroundImagePath - /// </summary> - private string OldBackgroundImagePath; - - /// <summary> - /// OldIconPathType - /// </summary> - public int OldIconPathType; - - public CommonDevice temperDevice; - - public CommonDevice humidDevice; - - DeviceInfoRow temperatureRow; - - DeviceInfoRow humidityRow; - - #endregion - - #region 鈼� 鎺ュ彛__________________________ - - /// <summary> - /// 璁惧鐘舵�佹洿鏂版帴鍙� - /// <para>type锛氬鏋滀负 DeviceInComingRespon:璁惧鏂颁笂鎶�</para> - /// <para>type锛氬鏋滀负 IASInfoReport:RemoveDeviceRespon</para> - /// <para>type锛氬鏋滀负 DeviceStatusReport:璁惧涓婃姤</para> - /// <para>type锛氬鏋滀负 IASInfoReport:IAS瀹夐槻淇℃伅涓婃姤</para> - /// <para>type锛氬鏋滀负 OnlineStatusChange: 璁惧鍦ㄧ嚎鐘舵�佹洿鏂�</para> - /// </summary> - /// <param name="common">Common.</param> - /// <param name="typeTag">Type tag.</param> - public void DeviceInfoChange(CommonDevice common, string typeTag) - { - if (typeTag == "DeviceStatusReport") - { - Application.RunOnMainThread(() => - { - try - { - if (common.DeviceStatusReport.AttriBute == null || common.DeviceStatusReport.AttriBute.Count == 0) - { - return; - } - //鏄惁涓哄綋鍓嶈澶� - if ((temperDevice?.DeviceEpoint != common.DeviceEpoint || temperDevice?.DeviceAddr != common.DeviceAddr) && (humidDevice?.DeviceEpoint != common.DeviceEpoint || humidDevice?.DeviceAddr != common.DeviceAddr)) - { - return; - } - - //if (common.Type == DeviceType.TemperatureSensor) - //{ - if (common.DeviceStatusReport.CluterID == 1026) - { - foreach (var data in common.DeviceStatusReport.AttriBute) - { - if (data.AttributeId == (int)ZigBee.Device.AttriButeId.MeasuredValue) - { - if (data.AttriButeData == 0) - { - //0鈩� - temperatureRow.NameText.Text = "--鈩�"; - room.Temperatrue = 0; - } - else if (data.AttriButeData > 32767) - { - //璐熸暟(鐗规畩澶勭悊) - string strValue = (data.AttriButeData - 65536).ToString(); - //灏忔暟鐐归渶瑕佷竴浣� - strValue = strValue.Substring(0, strValue.Length - 1); - temperatureRow.NameText.Text = strValue.Insert(strValue.Length - 1, ".") + "鈩�"; - room.Temperatrue = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - } - else - { - //灏忔暟鐐归渶瑕佷竴浣� - string strValue = data.AttriButeData.ToString(); - strValue = strValue.Substring(0, strValue.Length - 1); - temperatureRow.NameText.Text = strValue.Insert(strValue.Length - 1, ".") + "鈩�"; - room.Temperatrue = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - } - } - } - } - else if (common.DeviceStatusReport.CluterID == 1029) - { - foreach (var data in common.DeviceStatusReport.AttriBute) - { - if (data.AttributeId == (int)ZigBee.Device.AttriButeId.MeasuredValue) - { - if (data.AttriButeData == 0) - { - //0 - humidityRow.NameText.Text = "--%"; - room.Humidity = 0; - } - else - { - //灏忔暟鐐归渶瑕佷竴浣�(婀垮害娌℃湁璐熸暟) - string strValue = data.AttriButeData.ToString(); - strValue = strValue.Substring(0, strValue.Length - 1); - humidityRow.NameText.Text = strValue.Insert(strValue.Length - 1, ".") + "%"; - room.Humidity = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - } - } - } - } - //} - } - catch (Exception ex) - { - System.Console.WriteLine($"Error:{ex.Message}"); - } - }); - } - } - #endregion - - - - public EditRoom() - { - ZbGateway.StatusList.Add(this); - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - - /// <summary> - /// Show this instance. - /// </summary> - public void Show(Shared.Common.Room r) - { - room = r; - IconPathType = r.BackgroundImageType; - OldIconPathType = r.BackgroundImageType; - if (IconPathType != 0) - { - OldBackgroundImagePath = r.BackgroundImage; - } - AddTop(); - - AddBodyView(); - - } - - public override void RemoveFromParent() - { - ZbGateway.StatusList.Remove(this); - CommonPage.Instance.IsDrawerLockMode = false; - base.RemoveFromParent(); - } - - #region Add____________________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.EditRoom); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - } - - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView() - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - var backGround1 = new ImageView() - { - Y = Application.GetRealHeight(60), - Width = Application.GetMinRealAverage(916), - Height = Application.GetMinRealAverage(487), - Gravity = Gravity.CenterHorizontal, - ImagePath = "Room/Room_Rectangle.png" - }; - bodyFrameLayout.AddChidren(backGround1); - - backGround = new ImageView() - { - Y = Application.GetRealHeight(60), - Width = Application.GetMinRealAverage(887), - Height = Application.GetMinRealAverage(444), - Gravity = Gravity.CenterHorizontal, - Radius = (uint)Application.GetMinRealAverage(CommonFormResouce.BigFormRadius), - ImagePath = room.BackgroundImageType == 0 ? room.BackgroundImage : System.IO.Path.Combine(Config.Instance.FullPath, room.BackgroundImage) - }; - bodyFrameLayout.AddChidren(backGround); - - if (room.BackgroundImageType != 0) - { - backGround.ImageBytes = Shared.IO.FileUtils.ReadFile(backGround.ImagePath); - } - backGround.MouseUpEventHandler += backGroundIMGHander; - - var infoFL = new FrameLayout - { - Y = Application.GetRealHeight(562), - Height = Application.GetRealHeight(1175), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - bodyFrameLayout.AddChidren(infoFL); - var rectCornerID = HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight; - infoFL.SetCornerWithSameRadius(Application.GetRealHeight(50), rectCornerID); - - var infoEdit = new Button - { - X = Application.GetRealWidth(CommonFormResouce.X_Left), - Y = Application.GetRealHeight(80), - Height = Application.GetRealHeight(60), - Width = Application.GetRealWidth(700), - TextID = R.MyInternationalizationString.EditInfo, - TextColor = ZigbeeColor.Current.GXCTextDeepBlackColor, - TextAlignment = TextAlignment.CenterLeft, - TextSize = 15 - }; - infoFL.AddChidren(infoEdit); - - var nameRow = new DeviceInfoEditRow(170); - nameRow.Init(); - nameRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.RoomName)} :"); - nameRow.SetTitle(room.Name); - infoFL.AddChidren(nameRow); - if (room.IsLove) - { - nameRow.NameText.Enable = false; - } - - var floorRow = new DeviceInfoRow(308); - floorRow.Init(); - floorRow.SetTipTitle($"{Language.StringByID(R.MyInternationalizationString.BelongFloor)} :"); - if (Config.Instance.Home.FloorDics.Count > 0 && room.IsLove == false) - { - infoFL.AddChidren(floorRow); - } - floorRow.SetTitle(HdlResidenceLogic.Current.GetFloorNameById(room.FloorId)); - floorRow.ClickBtn.MouseUpEventHandler += (sender, e) => - { - if (Config.Instance.Home.FloorDics != null) - { - List<string> floorIds = new List<string> { }; - List<string> floorNames = new List<string> { }; - foreach (var floor in Config.Instance.Home.FloorDics) - { - floorIds.Add(floor.Key); - floorNames.Add(floor.Value); - } - - PickerView.Show(floorNames, (index) => - { - room.FloorId = floorIds[index]; - floorRow.SetTitle(HdlResidenceLogic.Current.GetFloorNameById(room.FloorId)); - }, floorIds.IndexOf(room.FloorId), Language.StringByID(R.MyInternationalizationString.BelongFloor), Language.StringByID(R.MyInternationalizationString.Confrim), Language.StringByID(R.MyInternationalizationString.Cancel)); - } - }; - - - temperatureRow = new DeviceInfoRow(446); - temperatureRow.Init(); - temperatureRow.SetTipTitle(R.MyInternationalizationString.Temperature); - temperatureRow.NameText.TextAlignment = TextAlignment.CenterRight; - infoFL.AddChidren(temperatureRow); - temperatureRow.ClickBtn.MouseUpEventHandler += (sender, e) => - { - var tem = new RoomTemperatureSetting { }; - HomePage.Instance.AddChidren(tem); - HomePage.Instance.PageIndex += 1; - tem.tempDevice = Common.LocalDevice.Current.GetDevice(room.TemperatrueDevice); - tem.Show(room); - tem.selectDeviceAction = (selectTemp) => - { - if (selectTemp == null) - { - return; - } - room.TemperatrueDevice = $"{selectTemp.DeviceAddr}{selectTemp.DeviceEpoint}"; - temperDevice=Common.LocalDevice.Current.GetDevice(room.TemperatrueDevice); - temperatureRow.SetTitle(R.MyInternationalizationString.Getting); - //鍙戦�佽幏鍙栨俯搴︾殑鍛戒护 - ReadDeviceAttributeLogic.Instance.SendTemperatureStatuComand(selectTemp); - }; - }; - if (string.IsNullOrEmpty(room.TemperatrueDevice) == false) - { - temperatureRow.SetTitle(room.Temperatrue == 0 ? "--鈩�" : $"{room.Temperatrue}鈩�"); - //鍙戦�佽幏鍙栨俯搴︾殑鍛戒护 - temperDevice = Common.LocalDevice.Current.GetDevice(room.TemperatrueDevice); - ReadDeviceAttributeLogic.Instance.SendTemperatureStatuComand(temperDevice); - } - else - { - temperatureRow.SetTitle(R.MyInternationalizationString.No); - } - - - humidityRow = new DeviceInfoRow(585); - humidityRow.Init(); - humidityRow.SetTipTitle(R.MyInternationalizationString.Humidity); - humidityRow.NameText.TextAlignment = TextAlignment.CenterRight; - infoFL.AddChidren(humidityRow); - humidityRow.ClickBtn.MouseUpEventHandler += (sender, e) => - { - var tem = new RoomHumiditySetting { }; - HomePage.Instance.AddChidren(tem); - HomePage.Instance.PageIndex += 1; - tem.tempDevice = Common.LocalDevice.Current.GetDevice(room.HumidityDevice); - tem.Show(room); - tem.selectDeviceAction = (selectTemp) => - { - if (selectTemp == null) - { - return; - } - room.HumidityDevice = $"{selectTemp.DeviceAddr}{selectTemp.DeviceEpoint}"; - humidDevice = Common.LocalDevice.Current.GetDevice(room.HumidityDevice); - humidityRow.SetTitle(R.MyInternationalizationString.Getting); - - //鍙戦�佽幏鍙栨箍搴︾殑鍛戒护 - ReadDeviceAttributeLogic.Instance.SendHumidityStatuComand(selectTemp); - }; - }; - if (string.IsNullOrEmpty(room.HumidityDevice) == false) - { - humidityRow.SetTitle(room.Humidity == 0 ? "--%" : $"{room.Humidity}%"); - //鍙戦�佽幏鍙栨箍搴︾殑鍛戒护 - humidDevice = Common.LocalDevice.Current.GetDevice(room.HumidityDevice); - ReadDeviceAttributeLogic.Instance.SendHumidityStatuComand(humidDevice); - } - else - { - humidityRow.SetTitle(R.MyInternationalizationString.No); - } - - if (Config.Instance.Home.FloorDics.Count == 0 || room.IsLove) - { - temperatureRow.Y = Application.GetRealHeight(308); - humidityRow.Y = Application.GetRealHeight(446); - } - - var confirm = new Device.CommonForm.CompleteButton(1700, 900, 127); - confirm.SetTitle(R.MyInternationalizationString.Save); - AddChidren(confirm); - confirm.MouseUpEventHandler += (sender, e) => - { - var tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); - var fileName = $"RoomIcon_{tradeTime}.png"; - room.Name = nameRow.NameText.Text.Trim(); - if (OldIconPathType != 0) - { - Shared.IO.FileUtils.DeleteFile(System.IO.Path.Combine(Config.Instance.FullPath, OldBackgroundImagePath)); - HdlAutoBackupLogic.DeleteFile(OldBackgroundImagePath); - } - if (IconPathType == 0) - { - room.BackgroundImage = backGround.ImagePath; - } - else - { - Shared.IO.FileUtils.WriteFileByBytes(System.IO.Path.Combine(Config.Instance.FullPath, fileName), backGround.ImageBytes); - HdlAutoBackupLogic.AddOrEditorFile(fileName); - room.BackgroundImage = fileName; - } - room.BackgroundImageType = IconPathType; - room.Save(); - action?.Invoke(); - RemoveFromParent(); - }; - } - - /// <summary> - /// 閫夋嫨鑳屾櫙鍥� - /// </summary> - /// <param name="sender"></param> - /// <param name="e"></param> - private void backGroundIMGHander(object sender, MouseEventArgs e) - { - if (room != null && room.IsSharedRoom) - { - RoomCommon.ShowTipRoomIsShared(); - return; - } - - int selectRow_Height = 150; - int selectRow_Width = 1034; - var selectFL = new FrameLayout() - { - BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor - }; - AddChidren(selectFL); - - var itemFL = new FrameLayout() - { - Y = Application.GetRealHeight(1276), - Height = Application.GetRealHeight(450), - Width = Application.GetRealWidth(selectRow_Width), - Gravity = Gravity.CenterHorizontal, - Radius = (uint)Application.GetRealHeight(35), - BackgroundColor = ZigbeeColor.Current.GXCTextWhiteColor - }; - selectFL.AddChidren(itemFL); - //itemFL.Animate = Animate.DownToUp; - - var selectLocalPicture = new Button() - { - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.LocalPicture, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectLocalPicture); - var selectLocalLine = new Button() - { - Y = selectLocalPicture.Bottom, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2 - }; - itemFL.AddChidren(selectLocalLine); - - var selectPhotographBtn = new Button() - { - Y = selectLocalLine.Bottom, - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.Photograph, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectPhotographBtn); - var selectPhotographLine = new Button() - { - Y = selectPhotographBtn.Bottom, - Height = 1, - BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2, - }; - itemFL.AddChidren(selectPhotographLine); - - var selectAblumsBtn = new Button() - { - Y = selectPhotographLine.Bottom, - Height = Application.GetRealHeight(selectRow_Height) - 1, - TextID = R.MyInternationalizationString.MyAblums, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - TextSize = 17 - }; - itemFL.AddChidren(selectAblumsBtn); - - var cancelBtn = new Button() - { - Y = Application.GetRealHeight(1742), - Height = Application.GetRealHeight(selectRow_Height), - Width = Application.GetRealWidth(selectRow_Width), - Gravity = Gravity.CenterHorizontal, - TextID = R.MyInternationalizationString.Cancel, - TextColor = ZigbeeColor.Current.GXCTextSelectedColor4, - BackgroundColor = ZigbeeColor.Current.GXCTextWhiteColor, - Radius = (uint)Application.GetRealHeight(35), - TextSize = 17 - }; - selectFL.AddChidren(cancelBtn); - - selectLocalPicture.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var localPic = new AddRoomSelectPicByLocal(); - Shared.Phone.UserView.HomePage.Instance.AddChidren(localPic); - Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; - localPic.Show(); - localPic.action = (imgPath) => - { - IconPathType = 0; - backGround.ImageBytes = null; - backGround.ImagePath = imgPath; - }; - }; - selectPhotographBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); - var fileName = $"RoomIcon_{tradeTime}.png"; - //閫氳繃鐩告満鎷嶇収瑁佸壀 - CropImage.TakePicture((imagePath) => - { - if (string.IsNullOrEmpty(imagePath)) - { - return; - } - if (IconPathType != 0) - { - Global.DeleteFilebyHomeId(backGround.ImagePath); - } - - IconPathType = 1; - backGround.ImageBytes = Shared.IO.FileUtils.ReadFile(imagePath); - backGround.ImagePath = imagePath; - System.IO.File.Delete(imagePath); - - }, fileName, 2, 1); - }; - - selectAblumsBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - var tradeTime = DateTime.Now.ToString("yyyyMMddHHmmss", DateTimeFormatInfo.InvariantInfo); - var fileName = $"RoomIcon_{tradeTime}.png"; - //浠庣浉鍐岄�夋嫨鍥剧墖瑁佸壀 - CropImage.SelectPicture((imagePath) => - { - if (string.IsNullOrEmpty(imagePath)) - { - return; - } - if (IconPathType != 0) - { - Global.DeleteFilebyHomeId(backGround.ImagePath); - } - - IconPathType = 2; - backGround.ImageBytes = Shared.IO.FileUtils.ReadFile(imagePath); - backGround.ImagePath = imagePath; - System.IO.File.Delete(imagePath); - - }, fileName, 2, 1); - }; - - cancelBtn.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - }; - selectFL.MouseUpEventHandler += (send, ee) => - { - selectFL.RemoveFromParent(); - }; - } - - #endregion - - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Room/RoomCommon.cs b/ZigbeeApp/Shared/Phone/Device/Room/RoomCommon.cs deleted file mode 100755 index 6980b22..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Room/RoomCommon.cs +++ /dev/null @@ -1,30 +0,0 @@ -锘縰sing System; -using Shared.Phone.Device.CommonForm; - -namespace Shared.Phone.Device.Room -{ - public class RoomCommon - { - /// <summary> - /// 鎻愮ず鐢ㄦ埛璇ユ埧闂存槸鍒嗕韩杩囨潵鐨勶紝涓嶅厑璁歌繘琛屾搷浣� - /// </summary> - public static void ShowTipRoomIsShared() - { - Application.RunOnMainThread(() => - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.TheRoomIsSharedNotAllowedToOperate)); - }); - } - - /// <summary> - /// 鎻愮ず鐢ㄦ埛杩樻病閫夋嫨鎴块棿 - /// </summary> - public static void ShowTipNoRoom() - { - Application.RunOnMainThread(() => - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.NotSelectZone)); - }); - } - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs b/ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs deleted file mode 100755 index 89fc274..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs +++ /dev/null @@ -1,174 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using ZigBee.Device; - -namespace Shared.Phone.Device.Room -{ - public class RoomHumiditySetting:FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// verticalScrolView - /// </summary> - private VerticalScrolViewLayout verticalScrolView; - /// <summary> - /// The room. - /// </summary> - public Shared.Common.Room room; - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice> selectDeviceAction; - - /// <summary> - /// tempDeviceRow - /// </summary> - private DeviceInfoWithZoneRow tempDeviceRow = null; - /// <summary> - /// tempDevice - /// </summary> - public CommonDevice tempDevice; - - #endregion - - public RoomHumiditySetting() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - - /// <summary> - /// Show this instance. - /// </summary> - public void Show(Shared.Common.Room r) - { - room = r; - - AddTop(); - - AddBodyView(); - - } - - #region Add____________________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.Humidity); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - } - - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView() - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - verticalScrolView = new VerticalScrolViewLayout - { - Height = Application.GetRealHeight(1737) - }; - bodyFrameLayout.AddChidren(verticalScrolView); - - var confirm = new Device.CommonForm.CompleteButton(1700, 900, 127); - confirm.SetTitle(R.MyInternationalizationString.Save); - AddChidren(confirm); - confirm.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - if (tempDevice != null) - { - selectDeviceAction?.Invoke(tempDevice); - } - }; - - var deviceList = GetHumidityDevice(); - - for (int i = 0; i < deviceList.Count; i++) - { - var fl = new FrameLayout - { - Height = Application.GetRealHeight(127 + 20), - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor - }; - verticalScrolView.AddChidren(fl); - - var device = deviceList[i]; - var devRow = new DeviceInfoWithZoneRow(20); - fl.AddChidren(devRow); - devRow.Init(); - devRow.SetIcon(device.IconPath); - devRow.SetName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - devRow.SetZone(UserCenter.HdlRoomLogic.Current.GetRoomNameByDevice(device)); - if (i == deviceList.Count - 1) - { - devRow.HideLine(true); - } - - if (tempDevice != null && tempDevice == device) - { - tempDeviceRow = devRow; - tempDevice = device; - devRow.SetStatu(true); - } - else - { - if (i == 0 && tempDevice == null) - { - tempDeviceRow = devRow; - tempDevice = device; - devRow.SetStatu(true); - } - } - - devRow.ClickButton.MouseUpEventHandler += (sender, e) => - { - tempDeviceRow.SetStatu(false); - devRow.SetStatu(true); - tempDeviceRow = devRow; - tempDevice = device; - }; - } - - } - - /// <summary> - /// 婀垮害浼犳劅鍣ㄥ垪琛� - /// </summary> - private List<ZigBee.Device.CommonDevice> GetHumidityDevice() - { - var listDevice = new List<ZigBee.Device.CommonDevice>(); - foreach (var device in Common.LocalDevice.Current.listAllDevice) - { - //鑾峰彇婀垮害浼犳劅鍣� - if (device is ZigBee.Device.TemperatureSensor && ((ZigBee.Device.TemperatureSensor)device).SensorDiv == 2) - { - listDevice.Add(device); - } - } - return listDevice; - } - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Room/RoomShareSetting.cs b/ZigbeeApp/Shared/Phone/Device/Room/RoomShareSetting.cs deleted file mode 100755 index 61e3606..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Room/RoomShareSetting.cs +++ /dev/null @@ -1,105 +0,0 @@ -锘縰sing System; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -namespace Shared.Phone.Device.Room -{ - public class RoomShareSetting:FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// verticalScrolView - /// </summary> - private VerticalScrolViewLayout verticalScrolView; - /// <summary> - /// The room. - /// </summary> - public Shared.Common.Room room; - /// <summary> - /// The action. - /// </summary> - public Action<string> action; - - #endregion - - public RoomShareSetting() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - - /// <summary> - /// Show this instance. - /// </summary> - public void Show(Shared.Common.Room r) - { - room = r; - - AddTop(); - - AddBodyView(); - - } - - #region Add____________________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.Share); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - } - - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView() - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - verticalScrolView = new VerticalScrolViewLayout - { - Height = Application.GetRealHeight(1737) - }; - bodyFrameLayout.AddChidren(verticalScrolView); - - var confirm = new Device.CommonForm.CompleteButton(1700, 700, 127); - confirm.SetTitle(R.MyInternationalizationString.Save); - AddChidren(confirm); - - for (int i = 0; i < 15; i++) - { - AddItem(verticalScrolView, 20 + i * (127 + 20)); - } - } - /// <summary> - /// AddItem - /// </summary> - /// <param name="vertical"></param> - public void AddItem(VerticalScrolViewLayout vertical, int y) - { - var dev = new DeviceInfoRow(y); - vertical.AddChidren(dev); - dev.Init(); - dev.SetTipTitle("鐢ㄦ埛 " + y); - } - - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/Device/Room/RoomTemperatureSetting.cs b/ZigbeeApp/Shared/Phone/Device/Room/RoomTemperatureSetting.cs deleted file mode 100755 index 60d6d8f..0000000 --- a/ZigbeeApp/Shared/Phone/Device/Room/RoomTemperatureSetting.cs +++ /dev/null @@ -1,170 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using ZigBee.Device; - -namespace Shared.Phone.Device.Room -{ - public class RoomTemperatureSetting : FrameLayout - { - #region 鈼� 鍙橀噺____________________________ - /// <summary> - /// bodyFrameLayout - /// </summary> - private FrameLayout bodyFrameLayout; - /// <summary> - /// The action. - /// </summary> - public Action<CommonDevice> selectDeviceAction; - /// <summary> - /// verticalScrolView - /// </summary> - private VerticalScrolViewLayout verticalScrolView; - /// <summary> - /// The room. - /// </summary> - public Shared.Common.Room room; - /// <summary> - /// tempDeviceRow - /// </summary> - private DeviceInfoWithZoneRow tempDeviceRow = null; - /// <summary> - /// tempDevice - /// </summary> - public CommonDevice tempDevice; - - #endregion - - public RoomTemperatureSetting() - { - BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; - } - - /// <summary> - /// Show this instance. - /// </summary> - public void Show(Shared.Common.Room r) - { - room = r; - - AddTop(); - - AddBodyView(); - - } - - #region Add____________________________________ - - /// <summary> - /// AddTop - /// </summary> - public void AddTop() - { - var top = new TopFrameLayout(); - AddChidren(top); - top.InitTopview(); - top.SetTopTitle(R.MyInternationalizationString.Temperature); - top.backButton.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - }; - } - - /// <summary> - /// AddBodyView - /// </summary> - public void AddBodyView() - { - bodyFrameLayout = new FrameLayout() - { - Y = Application.GetRealHeight(184), - Height = Application.GetRealHeight(1737), - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor, - }; - AddChidren(bodyFrameLayout); - - verticalScrolView = new VerticalScrolViewLayout - { - Height = Application.GetRealHeight(1737) - }; - bodyFrameLayout.AddChidren(verticalScrolView); - - var confirm = new Device.CommonForm.CompleteButton(1700, 900, 127); - confirm.SetTitle(R.MyInternationalizationString.Save); - AddChidren(confirm); - confirm.MouseUpEventHandler += (sender, e) => - { - RemoveFromParent(); - if(tempDevice!=null) - { - selectDeviceAction?.Invoke(tempDevice); - } - }; - var deviceList = GetTemperatrueDevices(); - for (int i = 0; i < deviceList.Count; i++) - { - var fl = new FrameLayout - { - Height = Application.GetRealHeight(127 + 20), - BackgroundColor=ZigbeeColor.Current.GXCBackgroundColor - }; - verticalScrolView.AddChidren(fl); - var device = deviceList[i]; - var devRow = new DeviceInfoWithZoneRow(20); - fl.AddChidren(devRow); - devRow.Init(); - devRow.SetIcon(device.IconPath); - devRow.SetName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - devRow.SetZone(UserCenter.HdlRoomLogic.Current.GetRoomNameByDevice(device)); - if (i == deviceList.Count - 1) - { - devRow.HideLine(true); - } - - if (tempDevice!=null && tempDevice==device) - { - tempDeviceRow = devRow; - tempDevice = device; - devRow.SetStatu(true); - } - else - { - if (i == 0 && tempDevice == null) - { - tempDeviceRow = devRow; - tempDevice = device; - devRow.SetStatu(true); - } - } - - devRow.ClickButton.MouseUpEventHandler += (sender, e) => - { - tempDeviceRow.SetStatu(false); - devRow.SetStatu(true); - tempDeviceRow = devRow; - tempDevice = device; - }; - } - } - - /// <summary> - /// 娓╁害浼犳劅鍣ㄥ垪琛� - /// </summary> - private List<ZigBee.Device.CommonDevice> GetTemperatrueDevices() - { - var listDevice = new List<ZigBee.Device.CommonDevice>(); - foreach (var device in Common.LocalDevice.Current.listAllDevice) - { - //鑾峰彇娓╁害浼犳劅鍣� - if (device is ZigBee.Device.TemperatureSensor && ((ZigBee.Device.TemperatureSensor)device).SensorDiv == 1) - { - listDevice.Add(device); - } - } - return listDevice; - } - - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceAcDetailCardForm.cs b/ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceAcDetailCardForm.cs index 2c67573..9631854 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceAcDetailCardForm.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/ControlForm/DeviceAcDetailCardForm.cs @@ -144,6 +144,7 @@ { arcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); } + //绌鸿皟鎺т欢閲岄潰鐨勯偅涓樉绀哄埗鐑�,鍒跺喎鐨勬帶浠� this.btnNowModeView = new NormalViewControl(200, 55, true); btnNowModeView.Y = Application.GetMinRealAverage(184); @@ -193,6 +194,16 @@ btnUint.Text = "鈩�"; btnUint.TextSize = 18; frameAcBack.AddChidren(btnUint); + + //閫侀娌℃湁娓╁害鐨勬蹇� + if (deviceAc.currentSystemMode == 7) + { + //棰滆壊鍙樻洿 + arcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); + arcScaleSeekBar.IsClickable = false; + this.btnReduce.CanClick = false; + this.btnAdd.CanClick = false; + } //鏄惁鍚敤鎽嗛 int IconSpace = Application.GetRealWidth(156); @@ -1004,6 +1015,13 @@ arcScaleSeekBar.IsClickable = ACControlBase.IsOpen(deviceAc); //璁剧疆鐘舵�佹枃瀛� 褰撳墠瀹ゆ俯 this.SetStatuText(deviceAc.currentLocalTemperature + "鈩�"); + //閫侀娌℃湁娓╁害鐨勬蹇� + if (deviceAc.currentSystemMode == 7) + { + //棰滆壊鍙樻洿 + arcScaleSeekBar.SetProgressBarColors(ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor, ZigbeeColor.Current.GXCWaveSeekBarUnSelectedColor); + arcScaleSeekBar.IsClickable = false; + } }); //宸茬粡鎺ユ敹鍒扮綉鍏崇殑鍙嶉 return true; diff --git a/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs b/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs index 5868b0d..e40e221 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs @@ -68,9 +68,9 @@ public DeviceCardCommon() { //鍥剧墖鐪熷疄瀹藉害+鍥剧墖鑷韩宸﹀彸绌虹櫧 - this.Width = Application.GetMinRealAverage(458 + 14 * 2); + this.Width = HdlControlLogic.Current.GetPictrueRealSize(458 + 14 * 2); //鍥剧墖楂樺害+闃村奖 - this.Height = Application.GetMinRealAverage(305 + 43); + this.Height = HdlControlLogic.Current.GetPictrueRealSize(305 + 43); //鍙栨秷鐐瑰嚮鐗规晥 this.UseClickStatu = false; } @@ -91,8 +91,8 @@ //璁惧鍚嶇О鎺т欢 this.btnDeviceName = new NormalViewControl(320, 63, true); - btnDeviceName.X = Application.GetMinRealAverage(40); - btnDeviceName.Y = Application.GetMinRealAverage(17); + btnDeviceName.X = HdlControlLogic.Current.GetPictrueRealSize(40); + btnDeviceName.Y = HdlControlLogic.Current.GetPictrueRealSize(17); btnDeviceName.TextSize = 16; btnDeviceName.TextColor = UserCenterColor.Current.TextGrayColor1; btnDeviceName.SelectedTextColor = UserCenterColor.Current.White; @@ -101,8 +101,8 @@ //鏀堕泦鎺т欢 this.btnCollect = new IconViewControl(107); - btnCollect.X = Application.GetMinRealAverage(350); - btnCollect.Y = Application.GetMinRealAverage(12); + btnCollect.X = HdlControlLogic.Current.GetPictrueRealSize(350); + btnCollect.Y = HdlControlLogic.Current.GetPictrueRealSize(12); btnCollect.UnSelectedImagePath = "Item/Collection1.png"; btnCollect.SelectedImagePath = "Item/CollectionSelected1.png"; this.AddChidren(btnCollect, ChidrenBindMode.NotBind); @@ -130,11 +130,11 @@ //璁惧鐨勮儗鏅渾鍦堝浘 this.fraDeviceRound = new FrameLayout(); - fraDeviceRound.Width = Application.GetMinRealAverage(124); - fraDeviceRound.Height = Application.GetMinRealAverage(124); - fraDeviceRound.Radius = (uint)Application.GetMinRealAverage(124) / 2; - fraDeviceRound.X = Application.GetMinRealAverage(44); - fraDeviceRound.Y = Application.GetMinRealAverage(101); + fraDeviceRound.Width = HdlControlLogic.Current.GetPictrueRealSize(124); + fraDeviceRound.Height = HdlControlLogic.Current.GetPictrueRealSize(124); + fraDeviceRound.Radius = (uint)HdlControlLogic.Current.GetPictrueRealSize(124) / 2; + fraDeviceRound.X = HdlControlLogic.Current.GetPictrueRealSize(44); + fraDeviceRound.Y = HdlControlLogic.Current.GetPictrueRealSize(101); fraDeviceRound.BackgroundColor = Common.ZigbeeColor.Current.GXCForFunctionUnSelectedBackgroundColor; this.AddChidren(fraDeviceRound, ChidrenBindMode.BindEventOnly); @@ -145,9 +145,9 @@ this.ChangedChidrenBindMode(fraDeviceRound, ChidrenBindMode.BindEventOnly); //鐘舵�佹枃鏈帶浠� - this.btnStatu = new NormalViewControl(Application.GetMinRealAverage(280), Application.GetMinRealAverage(63), false); - btnStatu.X = Application.GetMinRealAverage(46); - btnStatu.Y = Application.GetMinRealAverage(236); + this.btnStatu = new NormalViewControl(HdlControlLogic.Current.GetPictrueRealSize(280), HdlControlLogic.Current.GetPictrueRealSize(63), false); + btnStatu.X = HdlControlLogic.Current.GetPictrueRealSize(46); + btnStatu.Y = HdlControlLogic.Current.GetPictrueRealSize(236); btnStatu.TextColor = UserCenterColor.Current.TextColor1; btnStatu.SelectedTextColor = Common.ZigbeeColor.Current.GXCTextSelectedColor; btnStatu.IsBold = true; @@ -155,8 +155,8 @@ //寮�鍏虫帶浠�(涓嶅姞鍏ョ埗鎺т欢涓�) this.btnSwitch = new PicViewControl(109, 104); - btnSwitch.X = Application.GetMinRealAverage(325); - btnSwitch.Y = Application.GetMinRealAverage(202); + btnSwitch.X = HdlControlLogic.Current.GetPictrueRealSize(325); + btnSwitch.Y = HdlControlLogic.Current.GetPictrueRealSize(202); btnSwitch.UnSelectedImagePath = "Item/Switch1.png"; btnSwitch.SelectedImagePath = "Item/SwitchSelected1.png"; diff --git a/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/DeviceCurtainCardControl.cs b/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/DeviceCurtainCardControl.cs index 8944a09..533c332 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/DeviceCurtainCardControl.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/DeviceCurtainCardControl.cs @@ -79,7 +79,7 @@ /// <returns></returns> public override bool CheckIsOpenStatu(CommonDevice i_device) { - return ((Rollershade)i_device).WcdCurrentPositionLiftPercentage > 10; + return ((Rollershade)i_device).WcdCurrentPositionLiftPercentage > 0; } #endregion diff --git a/ZigbeeApp/Shared/Phone/MainPage/Controls/ListRoomCardControl.cs b/ZigbeeApp/Shared/Phone/MainPage/Controls/ListRoomCardControl.cs index ae4657c..319a7f6 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/Controls/ListRoomCardControl.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/Controls/ListRoomCardControl.cs @@ -38,8 +38,8 @@ /// </summary> public ListRoomCardControl() { - this.Width = Application.GetRealWidth(495); - this.Height = Application.GetRealHeight(354); + this.Width = HdlControlLogic.Current.GetPictrueRealSize(495); + this.Height = HdlControlLogic.Current.GetPictrueRealSize(354); } /// <summary> @@ -58,8 +58,8 @@ //鎴块棿鍥剧墖 this.picRoom = new ImageView(); picRoom.Gravity = Gravity.CenterHorizontal; - picRoom.Width = Application.GetRealWidth(467); - picRoom.Height = Application.GetRealHeight(311); + picRoom.Width = HdlControlLogic.Current.GetPictrueRealSize(467); + picRoom.Height = HdlControlLogic.Current.GetPictrueRealSize(311); picRoom.Radius = (uint)Application.GetRealHeight(29); this.AddChidren(picRoom, ChidrenBindMode.NotBind); @@ -70,30 +70,15 @@ frameBack.BackgroundColor = 0x33000000; this.AddChidren(picRoom, ChidrenBindMode.BindEventOnly); - ////鎴块棿鍚嶅瓧鐨勮儗鏅� - //var btnRoomNameBackGroud = new NormalViewControl(Application.GetRealWidth(141), Application.GetRealHeight(84), false); - //btnRoomNameBackGroud.X = Application.GetRealWidth(14); - //btnRoomNameBackGroud.UnSelectedImagePath = "Room/RoomCardView_Name.png"; - //this.AddChidren(btnRoomNameBackGroud, ChidrenBindMode.BindEventOnly); - - ////鎴块棿鍚嶅瓧 - //this.btnRoomName = new NormalViewControl(btnRoomNameBackGroud.Width, btnRoomNameBackGroud.Height, false); - //btnRoomName.X = Application.GetRealWidth(14); - //btnRoomName.TextSize = 12; - //btnRoomName.IsBold = true; - //btnRoomName.TextAlignment = TextAlignment.Center; - //btnRoomName.TextColor = UserCenterColor.Current.White; - //this.AddChidren(btnRoomName, ChidrenBindMode.BindEventOnly); - //鎴块棿鍚嶅瓧鐨勮儗鏅� - this.btnRoomNameBackGroud = new NormalViewControl(Application.GetRealWidth(141), Application.GetRealHeight(84), false); - btnRoomNameBackGroud.X = Application.GetRealWidth(14); + this.btnRoomNameBackGroud = new NormalViewControl(HdlControlLogic.Current.GetPictrueRealSize(141), Application.GetRealHeight(84), false); + btnRoomNameBackGroud.X = HdlControlLogic.Current.GetPictrueRealSize(14); btnRoomNameBackGroud.BackgroundColor = 0x80000000; this.AddChidren(btnRoomNameBackGroud, ChidrenBindMode.BindEventOnly); //鎴块棿鍚嶅瓧 this.btnRoomName = new NormalViewControl(50, Application.GetRealHeight(84), false); - btnRoomName.X = Application.GetRealWidth(14); + btnRoomName.X = HdlControlLogic.Current.GetPictrueRealSize(14); btnRoomName.TextSize = 12; btnRoomName.IsBold = true; btnRoomName.TextAlignment = TextAlignment.Center; @@ -118,14 +103,14 @@ { //鍒锋柊鍚嶅瓧 btnRoomName.Text = room.Name; - int realWidth = btnRoomName.GetRealWidthByText() + Application.GetRealWidth(70); - if (realWidth < Application.GetRealWidth(141)) + int realWidth = btnRoomName.GetRealWidthByText() + HdlControlLogic.Current.GetPictrueRealSize(70); + if (realWidth < HdlControlLogic.Current.GetPictrueRealSize(141)) { - realWidth = Application.GetRealWidth(141); + realWidth = HdlControlLogic.Current.GetPictrueRealSize(141); } - else if (realWidth > Application.GetRealWidth(420)) + else if (realWidth > HdlControlLogic.Current.GetPictrueRealSize(420)) { - realWidth = Application.GetRealWidth(420); + realWidth = HdlControlLogic.Current.GetPictrueRealSize(420); } btnRoomName.Width = realWidth; btnRoomNameBackGroud.Width = realWidth; diff --git a/ZigbeeApp/Shared/Phone/MainPage/Controls/SceneCardControl.cs b/ZigbeeApp/Shared/Phone/MainPage/Controls/SceneCardControl.cs index 7290a4b..fbb0cd2 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/Controls/SceneCardControl.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/Controls/SceneCardControl.cs @@ -51,9 +51,9 @@ public SceneCardControl() { //鍥剧墖鐪熷疄瀹藉害+鍥剧墖鑷韩宸﹀彸绌虹櫧 - this.Width = Application.GetMinRealAverage(458 + 14 * 2); + this.Width = HdlControlLogic.Current.GetPictrueRealSize(458 + 14 * 2); //鍥剧墖楂樺害+闃村奖 - this.Height = Application.GetMinRealAverage(305 + 43); + this.Height = HdlControlLogic.Current.GetPictrueRealSize(305 + 43); //鍙栨秷鐐瑰嚮鐗规晥 this.UseClickStatu = false; @@ -77,10 +77,10 @@ //鍦烘櫙鍥剧墖鎺т欢 this.btnScenePic = new ImageView(); - btnScenePic.X = Application.GetMinRealAverage(14); - btnScenePic.Width = Application.GetMinRealAverage(458); - btnScenePic.Height = Application.GetMinRealAverage(305); - btnScenePic.Radius = (uint)Application.GetMinRealAverage(17); + btnScenePic.X = HdlControlLogic.Current.GetPictrueRealSize(14); + btnScenePic.Width = HdlControlLogic.Current.GetPictrueRealSize(458); + btnScenePic.Height = HdlControlLogic.Current.GetPictrueRealSize(305); + btnScenePic.Radius = (uint)Application.GetRealHeight(17); this.AddChidren(btnScenePic, ChidrenBindMode.NotBind); //鍦烘櫙鑳屾櫙鍥炬帶浠� @@ -89,9 +89,9 @@ this.AddChidren(btnSceneBackGroud, ChidrenBindMode.BindEventOnly); //寤舵椂鏃堕棿鏄剧ず鎺т欢 - this.btnTimeView = new NormalViewControl(Application.GetMinRealAverage(280), Application.GetMinRealAverage(63), false); - btnTimeView.X = Application.GetMinRealAverage(37); - btnTimeView.Y = Application.GetMinRealAverage(10); + this.btnTimeView = new NormalViewControl(HdlControlLogic.Current.GetPictrueRealSize(280), HdlControlLogic.Current.GetPictrueRealSize(63), false); + btnTimeView.X = HdlControlLogic.Current.GetPictrueRealSize(37); + btnTimeView.Y = HdlControlLogic.Current.GetPictrueRealSize(10); btnTimeView.TextColor = 0xffffb400; btnTimeView.IsBold = true; if (i_scene.SceneDelayTime > 0) @@ -102,8 +102,8 @@ //鏃堕棿鍥炬爣鎺т欢 this.btnTimeIcon = new IconViewControl(63); - btnTimeIcon.X = Application.GetMinRealAverage(37); - btnTimeIcon.Y = Application.GetMinRealAverage(20); + btnTimeIcon.X = HdlControlLogic.Current.GetPictrueRealSize(37); + btnTimeIcon.Y = HdlControlLogic.Current.GetPictrueRealSize(20); btnTimeIcon.UnSelectedImagePath = "Item/Time.png"; this.AddChidren(btnTimeIcon, ChidrenBindMode.NotBind); if (i_scene.SceneDelayTime > 0) @@ -136,8 +136,8 @@ //鏀惰棌鎺т欢 var btnCollect = new IconViewControl(107); - btnCollect.X = Application.GetMinRealAverage(350); - btnCollect.Y = Application.GetMinRealAverage(12); + btnCollect.X = HdlControlLogic.Current.GetPictrueRealSize(350); + btnCollect.Y = HdlControlLogic.Current.GetPictrueRealSize(12); btnCollect.UnSelectedImagePath = "Item/Collection1.png"; btnCollect.SelectedImagePath = "Item/CollectionSelected1.png"; this.AddChidren(btnCollect, ChidrenBindMode.NotBind); @@ -164,9 +164,9 @@ }; //鍦烘櫙鍚嶇О鎺т欢 - this.btnSceneName = new NormalViewControl(Application.GetMinRealAverage(280), Application.GetMinRealAverage(63), false); - btnSceneName.X = Application.GetMinRealAverage(37); - btnSceneName.Y = Application.GetMinRealAverage(236); + this.btnSceneName = new NormalViewControl(HdlControlLogic.Current.GetPictrueRealSize(280), HdlControlLogic.Current.GetPictrueRealSize(63), false); + btnSceneName.X = HdlControlLogic.Current.GetPictrueRealSize(37); + btnSceneName.Y = HdlControlLogic.Current.GetPictrueRealSize(236); btnSceneName.IsBold = true; btnSceneName.TextColor = UserCenterColor.Current.White; this.AddChidren(btnSceneName, ChidrenBindMode.BindEventOnly); @@ -219,9 +219,11 @@ //鍒锋柊鍥剧墖 if (i_scene.IconPathType == 0) { - if (this.btnScenePic.ImagePath != i_scene.IconPath) + //涓婚〉鐨勫満鏅崱鐗囩敤鐨勬槸鍙﹀鐨勫浘 + string newPath = i_scene.IconPath.Replace("SceneIcon", "SceneCardIcon"); + if (this.btnScenePic.ImagePath != newPath) { - this.btnScenePic.ImagePath = i_scene.IconPath; + this.btnScenePic.ImagePath = newPath; } } else diff --git a/ZigbeeApp/Shared/Phone/MainPage/DeviceDetailInfoForm.cs b/ZigbeeApp/Shared/Phone/MainPage/DeviceDetailInfoForm.cs index 71524d2..5512a41 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/DeviceDetailInfoForm.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/DeviceDetailInfoForm.cs @@ -29,7 +29,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; #endregion @@ -70,15 +70,19 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 418, 1319); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1319); //鍥剧墖 var btnPic = new DeviceInfoIconControl(); btnPic.Y = Application.GetRealHeight(46); btnPic.Gravity = Gravity.CenterHorizontal; - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); btnPic.InitControl(device.DeviceAddr, device.DeviceEpoint); btnPic.ButtonClickEvent += (sender, e) => { @@ -105,7 +109,7 @@ btnBelongType.TextID = infoType.BeloneTextId; btnBelongType.TextSize = 15; btnBelongType.TextAlignment = TextAlignment.Center; - bodyFrameLayout.AddChidren(btnBelongType); + listBackControl.frameTable.AddChidren(btnBelongType); //鍔熻兘鍚嶇О string caption = Language.StringByID(R.MyInternationalizationString.FunctionName); @@ -159,7 +163,7 @@ this.AddFunctionTypeRowByAdmin(btnBelongType); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; //淇濆瓨 @@ -194,15 +198,19 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 418, 1319); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1319); //鍥剧墖 var btnPic = new DeviceInfoIconControl(); btnPic.Y = Application.GetRealHeight(92); btnPic.Gravity = Gravity.CenterHorizontal; - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); btnPic.InitControl(device.DeviceAddr, device.DeviceEpoint); //璁惧鎵�灞炵被鍨� @@ -213,7 +221,7 @@ btnBelongType.TextID = infoType.BeloneTextId; btnBelongType.TextSize = 15; btnBelongType.TextAlignment = TextAlignment.Center; - bodyFrameLayout.AddChidren(btnBelongType); + listBackControl.frameTable.AddChidren(btnBelongType); //鍔熻兘鍚嶇О string caption = Language.StringByID(R.MyInternationalizationString.FunctionName); @@ -253,7 +261,7 @@ this.AddFunctionTypeRowByMember(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; } diff --git a/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs b/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs index 7710abe..e80c361 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs @@ -370,13 +370,13 @@ //鎴块棿婊戝姩鎺т欢宸﹁竟鐨勮櫄鎷熷浘鐗� var mLeftImageView = new ImageView(); - mLeftImageView.ImagePath = "RoomIcon/1.jpg"; + mLeftImageView.ImagePath = "RoomIcon/19.jpg"; mLeftImageView.Radius = (uint)Application.GetRealHeight(17); mLeftImageView.Width = Application.GetRealWidth(717); mLeftImageView.Height = Application.GetRealHeight(478); //鎴块棿婊戝姩鎺т欢鍙宠竟鐨勮櫄鎷熷浘鐗� var mRightImageView = new ImageView(); - mRightImageView.ImagePath = "RoomIcon/2.jpg"; + mRightImageView.ImagePath = "RoomIcon/19.jpg"; mRightImageView.Radius = (uint)Application.GetRealHeight(17); mRightImageView.Width = mLeftImageView.Width; mRightImageView.Height = mLeftImageView.Height; @@ -428,7 +428,7 @@ btnRoomLeftShadow.Gravity = Gravity.CenterVertical; btnRoomLeftShadow.BackgroundColor = 0x1c000000; btnRoomLeftShadow.SetCornerWithSameRadius(Application.GetRealHeight(12), HDLUtils.RectCornerTopRight | HDLUtils.RectCornerBottomRight); - frameBack.AddChidren(btnRoomLeftShadow); + //frameBack.AddChidren(btnRoomLeftShadow);//鏆傛椂涓嶅姞閬僵 //鍦ㄦ埧闂村崱鐗囧彸杈规坊鍔犻伄缃� var btnRoomRightShadow = new FrameLayout(); @@ -438,7 +438,7 @@ btnRoomRightShadow.Gravity = Gravity.CenterVertical; btnRoomRightShadow.BackgroundColor = btnRoomLeftShadow.BackgroundColor; btnRoomRightShadow.SetCornerWithSameRadius(Application.GetRealHeight(12), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerBottomLeft); - frameBack.AddChidren(btnRoomRightShadow); + //frameBack.AddChidren(btnRoomRightShadow);//鏆傛椂涓嶅姞閬僵 //鎺т欢寮�濮嬫粦鍔ㄧ殑浜嬩欢 roomPageView.StartScrollAction += () => @@ -480,13 +480,11 @@ }; //璁剧疆鎴块棿鐨勫垵濮嬮�夋嫨 roomPageView.PageIndex = curIndex; -#if iOS - //Ios濡傛灉绱㈠紩鏄涓�涓椂锛屽畠瑙﹀彂涓嶄簡浜嬩欢,闇�瑕佹墜鍔ㄨЕ鍙� + //濡傛灉绱㈠紩鏄涓�涓椂锛屽畠瑙﹀彂涓嶄簡浜嬩欢,闇�瑕佹墜鍔ㄨЕ鍙� if (curIndex == 0) { roomPageView.EndScrollAction(); } -#endif } /// <summary> @@ -834,7 +832,7 @@ HdlThreadLogic.Current.RunThread(() => { - //鍒濆鍖栬澶囧崱鐗囧垪琛ㄦ帶浠� + //鍒濆鍖栧満鏅崱鐗囧垪琛ㄦ帶浠� this.InitSceneListCardControl(listSceneBackContr, listScene); }); } @@ -848,7 +846,7 @@ //鍦烘櫙璁℃暟 int contrCount = 0; //X杞村潗鏍�(鍥剧墖宸﹁竟鏈変綑鐧�) - int XX = Application.GetMinRealAverage(44); + int XX = this.GetPictrueRealSize(44); //Y杞村潗鏍� int YY = 0; foreach (var sceneUi in listScene) @@ -875,11 +873,11 @@ //璁惧璁℃暟 contrCount++; //姣忎袱涓悗,X杞撮噸缃� - XX = contrCount % 2 == 0 ? Application.GetMinRealAverage(44) : cardContr.Right + Application.GetMinRealAverage(20); + XX = contrCount % 2 == 0 ? this.GetPictrueRealSize(44) : cardContr.Right + this.GetPictrueRealSize(20); if (contrCount % 2 == 0) { //娌′袱涓箣鍚�,Y杞撮�掑 - YY = cardContr.Bottom + Application.GetMinRealAverage(15); + YY = cardContr.Bottom + this.GetPictrueRealSize(15); } //鎺т欢璁板綍鍒扮紦瀛樹腑 this.dicSceneCardControl[sceneUi.Id] = cardContr; @@ -909,25 +907,19 @@ /// </summary> private void ShowNoSceneTip() { - var noScene = new Button - { - Y = Application.GetRealHeight(69), - Width = Application.GetMinRealAverage(683), - Height = Application.GetMinRealAverage(392), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/NoFunction.png" - }; - bodyFrameLayout.AddChidren(noScene); - var noScenceTip = new Button() - { - Y = noScene.Bottom, - Height = Application.GetRealHeight(200), - Text = Language.StringByID(R.MyInternationalizationString.NoScene_Tip).Replace("{\\r\\n}", "\r\n"), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, - TextAlignment = TextAlignment.Center, - IsMoreLines = true - }; - bodyFrameLayout.AddChidren(noScenceTip); + var picNoFunc = new PicViewControl(683, 392); + picNoFunc.Y = Application.GetRealHeight(69); + picNoFunc.Gravity = Gravity.CenterHorizontal; + picNoFunc.UnSelectedImagePath = "Item/NoFunction.png"; + bodyFrameLayout.AddChidren(picNoFunc); + + var btnTip = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(200), false); + btnTip.Y = picNoFunc.Bottom; + btnTip.Text = Language.StringByID(R.MyInternationalizationString.NoScene_Tip).Replace("{\\r\\n}", "\r\n"); + btnTip.TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor; + btnTip.TextAlignment = TextAlignment.Center; + btnTip.IsMoreLines = true; + bodyFrameLayout.AddChidren(btnTip); } /// <summary> diff --git a/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs b/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs index 009eccd..aba2d34 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs @@ -164,9 +164,9 @@ listRoom.Insert(0, HdlRoomLogic.Current.GetLoveRoom()); //X杞� - int XX = Application.GetRealWidth(43); + int XX = this.GetPictrueRealSize(43); //Y杞� - int YY = Application.GetRealWidth(58); + int YY = this.GetPictrueRealSize(58); //鎴块棿璁℃暟 int roomCount = 0; foreach (var room in listRoom) @@ -181,11 +181,11 @@ //鍔犵紦瀛� this.dicCardControl[room.Id] = contr; //姣忎袱涓噸缃甔杞� - XX = roomCount % 2 == 0 ? Application.GetRealWidth(43) : contr.Right + Application.GetRealWidth(3); + XX = roomCount % 2 == 0 ? this.GetPictrueRealSize(43) : contr.Right + this.GetPictrueRealSize(3); //姣忎袱涓疮鍔燳杞� if (roomCount >= 2 && roomCount % 2 == 0) { - YY = contr.Bottom + Application.GetRealHeight(14); + YY = contr.Bottom + this.GetPictrueRealSize(14); } contr.ButtonClickEvent += (sender, e) => { @@ -239,8 +239,8 @@ var frameBack = new FrameLayoutControl(); frameBack.X = XX; frameBack.Y = YY; - frameBack.Width = Application.GetRealWidth(495); - frameBack.Height = Application.GetRealHeight(354); + frameBack.Width = this.GetPictrueRealSize(495); + frameBack.Height = this.GetPictrueRealSize(354); listView.frameTable.AddChidren(frameBack); //搴曢儴闃村奖鏁堟灉 @@ -249,23 +249,23 @@ frameBack.AddChidren(btnShadow, ChidrenBindMode.NotBind); //鑳屾櫙鎺т欢 - var picBackGroud = new NormalViewControl(467, 311, true); + var picBackGroud = new NormalViewControl(this.GetPictrueRealSize(467), this.GetPictrueRealSize(311), false); picBackGroud.Gravity = Gravity.CenterHorizontal; - picBackGroud.Radius = (uint)Application.GetRealHeight(29); + picBackGroud.Radius = (uint)this.GetPictrueRealSize(29); picBackGroud.BackgroundColor = ZigbeeColor.Current.GXCBlackBackgroundColor3; frameBack.AddChidren(picBackGroud, ChidrenBindMode.BindEventOnly); //鏈垎閰嶅浘鏍� var btnIcon = new PicViewControl(92, 72); - btnIcon.X = Application.GetRealWidth(129); - btnIcon.Y = Application.GetRealHeight(141); + btnIcon.X = this.GetPictrueRealSize(129); + btnIcon.Y = this.GetPictrueRealSize(141); btnIcon.UnSelectedImagePath = "Room/NoNameRoom.png"; frameBack.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly); //鏈垎閰� var btnName = new NormalViewControl(141, 84, true); - btnName.X = Application.GetRealWidth(244); - btnName.Y = Application.GetRealHeight(131); + btnName.X = this.GetPictrueRealSize(244); + btnName.Y = this.GetPictrueRealSize(131); btnName.IsBold = true; btnName.TextColor = UserCenterColor.Current.White; btnName.TextID = R.MyInternationalizationString.Unallocated; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterColor.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterColor.cs index 42d802e..8277d2c 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterColor.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterColor.cs @@ -145,6 +145,10 @@ /// </summary> public uint ErrorColor = 0xfff75858; /// <summary> + /// 鍥剧墖閬僵鐨勯鑹� + /// </summary> + public uint PictrueZhezhaoColor = 0x12000000; + /// <summary> /// 鐏拌壊(0xff6b6b6b) 鍏朵粬鍦版柟浼间箮鍦ㄧ敤,寤鸿涓嶈浣跨敤 /// </summary> public uint Gray = 0xff6b6b6b; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs index 198b5b1..158bed1 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Common/UserCenterCommon.cs @@ -869,6 +869,10 @@ /// 涓婃姤鏃堕棿(hh:mm:ss) /// </summary> public string Time = string.Empty; + /// <summary> + /// 2020.04.13杩藉姞鏂板垎绫� 1:涓�鑸姤璀� 9000:闂ㄩ攣甯稿紑妯″紡鎶ヨ + /// </summary> + public int MsgDiv = 1; } #endregion @@ -1284,6 +1288,10 @@ /// 寮哄埗璺宠浆鐪熷疄璁惧鐣岄潰 1->璁惧鍒楄〃寮哄埗璺宠浆 /// </summary> public int GotoRealDeviceForm = 0; + /// <summary> + /// 寮哄埗璺宠浆缃戝叧浜у搧鐣岄潰 1->缃戝叧鍒楄〃寮哄埗璺宠浆 + /// </summary> + public int GotoGatewayProductInfoForm = 0; } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs index b4aea46..6427e96 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs @@ -113,17 +113,35 @@ } /// <summary> - /// 鍒濆鍖栨帶浠跺ぇ灏�(浠ュ钩鍧囧�艰繘琛岀湡瀹炴暟鍊艰绠�) + /// 鍒濆鍖栧浘鏍囨帶浠跺ぇ灏�(浠ュ钩鍧囧�艰繘琛岀湡瀹炴暟鍊艰绠�) /// </summary> /// <param name="i_Width">瀹藉害</param> /// <param name="i_Height">楂樺害</param> /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> - public void InitAvgSize(int i_Width, int i_Height, bool real = true) + public void InitIconSize(int i_Width, int i_Height, bool real = true) { if (real == true) { i_Width = Application.GetMinRealAverage(i_Width); i_Height = Application.GetMinRealAverage(i_Height); + } + + this.Height = i_Height; + this.Width = i_Width; + } + + /// <summary> + /// 鍒濆鍖栧浘鐗囨帶浠跺ぇ灏� + /// </summary> + /// <param name="i_Width">瀹藉害</param> + /// <param name="i_Height">楂樺害</param> + /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> + public void InitPictrueSize(int i_Width, int i_Height, bool real = true) + { + if (real == true) + { + i_Width = HdlControlLogic.Current.GetPictrueRealSize(i_Width); + i_Height = HdlControlLogic.Current.GetPictrueRealSize(i_Height); } this.Height = i_Height; @@ -281,7 +299,7 @@ return; } //Y杞撮噸缃� - this.Y = UserCenterLogic.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space); + this.Y = HdlControlLogic.Current.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space); } /// <summary> diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs index d48e6be..4c69fe1 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs @@ -141,7 +141,7 @@ return; } //Y杞撮噸缃� - this.Y = UserCenterLogic.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space); + this.Y = HdlControlLogic.Current.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space); } #endregion } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs index cbae180..62f0a2b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/InformationEditorControl.cs @@ -9,23 +9,42 @@ /// </summary> public class InformationEditorControl { + #region 鈻� 鍙橀噺澹版槑___________________________ + + /// <summary> + /// 鏄庣粏鍒楄〃鐨勬甯冿紝鐧借壊鑳屾櫙 + /// </summary> + private FrameLayout detailBackFrame = null; + /// <summary> + /// 鍒楄〃鎺т欢 + /// </summary> + private FrameListControl listview = null; + /// <summary> + /// 鏈�灏忛珮搴� + /// </summary> + private int minHeight = -1; + + #endregion + + #region 鈻� 鍒濆鍖朹____________________________ + /// <summary> /// 鍒濆鍖栨帶浠�(杩斿洖鐨勬槸淇℃伅瀹瑰櫒鎺т欢) /// </summary> - /// <param name="bodyFrameLayout">bodyFrameLayout</param> + /// <param name="bodyFrameLayout">鐖舵帶浠�</param> /// <param name="title">鏍囬鏂囨湰</param> - /// <param name="Y">bodyFrameLayout閲岄潰鐨刌杞村潗鏍�</param> /// <param name="Height">钃濇箹UI閲岄潰瀹冪殑楂樺害</param> /// <returns>淇℃伅瀹瑰櫒鎺т欢</returns> - public VerticalListControl InitControl(FrameLayout bodyFrameLayout, string title, int Y, int Height) + public FrameListControl InitControl(FrameLayout bodyFrameLayout, string title, int Height) { //鏄庣粏鍒楄〃鐨勬甯冿紝鐧借壊鑳屾櫙 - var detailBackFrame = new FrameLayout(); - detailBackFrame.Y = Application.GetRealHeight(Y); - detailBackFrame.Height = Application.GetRealHeight(Height + 100);//楂樺害灏辨槸瑕佸畠瓒呰繃 + this.detailBackFrame = new FrameLayout(); + detailBackFrame.Height = Application.GetRealHeight(Height); detailBackFrame.BackgroundColor = UserCenterColor.Current.White; detailBackFrame.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); + detailBackFrame.Gravity = Gravity.BottomCenter; bodyFrameLayout.AddChidren(detailBackFrame); + this.minHeight = detailBackFrame.Height; //淇℃伅缂栬緫 var btnTile = new NormalViewControl(800, 60, true); @@ -36,7 +55,8 @@ btnTile.Text = title; detailBackFrame.AddChidren(btnTile); - var listview = new VerticalListControl(12); + //鍒楄〃鎺т欢 + this.listview = new FrameListControl(12); listview.Y = btnTile.Bottom + Application.GetRealHeight(17); listview.Height = Application.GetRealHeight(Height) - btnTile.Bottom - Application.GetRealHeight(17); detailBackFrame.AddChidren(listview); @@ -45,31 +65,95 @@ } /// <summary> - /// 瀹屾垚鍒濆鍖�(褰撹鏁板鐨勬椂鍊�,杩欎釜鍑芥暟寰堟湁鐢ㄣ�傝鏁颁笉瓒呰繃瀹瑰櫒鏃讹紝璋冧笉璋冪敤杩欎釜鍑芥暟閮芥病浜�) + /// 瀹屾垚鍒濆鍖� /// </summary> - /// <param name="bodyFrameLayout">bodyFrameLayout</param> - /// <param name="listview">瀹瑰櫒鎺т欢</param> - public void FinishInitControl(FrameLayout bodyFrameLayout, VerticalListControl listview) + /// <param name="HadBottomButton">杩欎釜鎺т欢鎵�鍦ㄧ殑鐣岄潰,搴曢儴鏈夋病鏈変繚瀛樻寜閽�</param> + /// <param name="mandatoryAdjustment">寮哄埗璋冩暣楂樺害</param> + public void FinishInitControl(bool HadBottomButton = true, bool mandatoryAdjustment = false) { - var btnFinish = new BottomClickButton(); - //鍊熺敤Y杞村潗鏍�(璁╄繖涓尯鍩熶笉鑳界偣鍑昏彍鍗�) - //var frameBack = new FrameLayout(); - //frameBack.Y = btnFinish.Yaxis; - //frameBack.Height = bodyFrameLayout.Height - btnFinish.Yaxis; - //bodyFrameLayout.AddChidren(frameBack); - - if (listview.ChildrenCount > 0) + if (HadBottomButton == true) { - var realHeight = listview.GetChildren(0).Height * listview.ChildrenCount; - if (bodyFrameLayout.Height - btnFinish.Yaxis + realHeight > listview.Height) + var btnFinish = new BottomClickButton(); + //璁╁畠鍒敼鍙樺潗鏍� + int tempSpace = listview.rowSpace; + listview.rowSpace = 0; + //淇冧娇琚尅浣忕殑鑿滃崟鑳藉鍚戜笂婊戝姩 + var frameTemp = new FrameLayout(); + frameTemp.Height = ControlCommonResourse.BodyFrameHeight - btnFinish.Yaxis + Application.GetRealHeight(23); + listview.AddChidren(frameTemp); + + listview.rowSpace = tempSpace; + } + + //璋冩暣瀹瑰櫒楂樺害澶у皬 + int value = this.GetLocationMostLastViewBottom(); + if (mandatoryAdjustment == false) + { + if (value + Application.GetRealHeight(23) < listview.Height) { - //淇冧娇琚尅浣忕殑鑿滃崟鑳藉鍚戜笂婊戝姩 - var frameTemp = new FrameLayout(); - //frameTemp.Height = frameBack.Height + Application.GetRealHeight(115); - frameTemp.Height = bodyFrameLayout.Height - btnFinish.Yaxis + Application.GetRealHeight(115); - listview.AddChidren(frameTemp); + //涓嶉渶瑕佽皟鏁� + return; } } + //璋冩暣澶у皬 + listview.Height = value + Application.GetRealHeight(23); + + int backHeigth = listview.Bottom; + if (minHeight > backHeigth) + { + //瀹冩湁涓渶灏忛珮搴� + backHeigth = minHeight; + } + this.detailBackFrame.Height = backHeigth; + + //鑾峰彇listview鎵�鍦ㄧ殑鍏ㄥ眬瀹瑰櫒鎺т欢 + var contrFather = GetVerticalFrameControl(listview); + //璋冩暣妗屽竷澶у皬 + contrFather?.AdjustTableHeight(); } + + #endregion + + #region 鈻� 涓�鑸柟娉昣__________________________ + + /// <summary> + /// 鑾峰彇listview鎵�鍦ㄧ殑鍏ㄥ眬瀹瑰櫒鎺т欢 + /// </summary> + /// <param name="listview"></param> + /// <returns></returns> + private VerticalFrameControl GetVerticalFrameControl(FrameListControl listview) + { + var myContr = listview.Parent; + while (myContr != null) + { + if (myContr is VerticalFrameControl) + { + return (VerticalFrameControl)myContr; + } + myContr = myContr.Parent; + } + return null; + } + + /// <summary> + /// 鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣 + /// </summary> + /// <returns></returns> + private int GetLocationMostLastViewBottom() + { + int bottomHeight = -1; + + for (int i = 0; i < this.listview.ChildrenCount; i++) + { + var child = this.listview.GetChildren(i); + if (child.Bottom > bottomHeight) + { + bottomHeight = child.Bottom; + } + } + return bottomHeight; + } + + #endregion } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/RoomDeviceGroupMenuControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/RoomDeviceGroupMenuControl.cs index d0599a6..9d32c3d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/RoomDeviceGroupMenuControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/RoomDeviceGroupMenuControl.cs @@ -21,7 +21,7 @@ /// </summary> public Action<List<CommonDevice>> SelectDeviceEvent = null; /// <summary> - /// 褰撳墠閫夋嫨鐨勪富閿� + /// 褰撳墠閫夋嫨鐨勪富閿�(鎴块棿绫诲瀷鏃讹細鎴块棿ID 璁惧绫诲瀷鏃讹細R鏂囦欢閲岄潰鐨処D) /// </summary> public string nowSelectKeys { @@ -29,20 +29,28 @@ { if (dicDevice != null) { - return oldSelectKeys.ToString(); + int index = 0; + foreach (var rId in dicDevice.Keys) + { + if (index == oldSelectIndex) + { + return rId.ToString(); + } + } + return string.Empty; } - return dicRoom[oldSelectKeys].Id; + return listRoom[oldSelectIndex].Id; } } /// <summary> - /// 褰撳墠閫夋嫨鐨勪富閿�(鍐呴儴浣跨敤) + /// 褰撳墠閫夋嫨鐨勭储寮�(鍐呴儴浣跨敤) /// </summary> - private int oldSelectKeys = -1; + private int oldSelectIndex = -1; /// <summary> /// 鎴块棿瀵硅薄 /// </summary> - private Dictionary<int, Common.Room> dicRoom = null; + private List<Common.Room> listRoom = null; /// <summary> /// 璁惧瀵硅薄 /// </summary> @@ -66,11 +74,7 @@ /// <param name="i_listRoom">鎴块棿鍒楄〃</param> public RoomDeviceGroupMenuControl(List<Common.Room> i_listRoom) { - this.dicRoom = new Dictionary<int, Common.Room>(); - for (int i = 0; i < i_listRoom.Count; i++) - { - this.dicRoom[i] = i_listRoom[i]; - } + this.listRoom = i_listRoom; this.Height = Application.GetRealHeight(204); } @@ -102,20 +106,20 @@ var btnTempWidth = new ButtonBase(); btnTempWidth.TextSize = 12; - if (this.dicRoom != null) + if (this.listRoom != null) { //鍒濆鍖栨埧闂存ā寮忕殑鎺т欢 - foreach (int keys in dicRoom.Keys) + for (int i = 0; i < listRoom.Count; i++) { - if (oldSelectKeys == -1) + if (oldSelectIndex == -1) { //鍒濆鍊� - oldSelectKeys = keys; + oldSelectIndex = i; } //璁$畻瀛楃鐨勭湡瀹炲搴� - btnTempWidth.Text = dicRoom[keys].Name; - this.DoInitControl(scrolContr, keys, dicRoom[keys].Name, btnTempWidth.GetRealWidthByText()); + btnTempWidth.Text = listRoom[i].Name; + this.DoInitControl(scrolContr, i, i, listRoom[i].Name, btnTempWidth.GetRealWidthByText()); } } else @@ -124,19 +128,19 @@ int index = 0; foreach (int keys in dicDevice.Keys) { - if (oldSelectKeys == -1) + if (oldSelectIndex == -1) { //鍒濆鍊� - oldSelectKeys = keys; + oldSelectIndex = index; } //璁$畻瀛楃鐨勭湡瀹炲搴� btnTempWidth.Text = Language.StringByID(keys); - this.DoInitControl(scrolContr, keys, btnTempWidth.Text, btnTempWidth.GetRealWidthByText()); + this.DoInitControl(scrolContr, keys, index, btnTempWidth.Text, btnTempWidth.GetRealWidthByText()); index++; } } //璁╂帶浠舵粦鍔ㄥ埌鎸囧畾鐨勭储寮曚綅缃� - scrolContr.ScrollToViewIndex(oldSelectKeys + 1); + scrolContr.ScrollToViewIndex(oldSelectIndex + 1); } /// <summary> @@ -144,9 +148,10 @@ /// </summary> /// <param name="scrolContr">鍒楄〃鎺т欢</param> /// <param name="keys">瀛楀吀鐨勪富閿�</param> + /// <param name="index">绱㈠紩</param> /// <param name="text">鏄剧ず鏂囨湰</param> /// <param name="textWidth">鏂囨湰鐪熷疄瀹藉害</param> - private void DoInitControl(HorizontalScrolViewLayout scrolContr, int keys, string text, int textWidth) + private void DoInitControl(HorizontalScrolViewLayout scrolContr, int keys, int index, string text, int textWidth) { //甯﹀簳鍥炬帶浠剁殑鏈�灏忓搴� int minWidth = Application.GetRealWidth(255); @@ -163,7 +168,7 @@ frameBack.Gravity = Gravity.Center; frameBack.Height = Application.GetRealHeight(159); frameBack.Width = realWidth; - if (oldSelectKeys == keys) + if (oldSelectIndex == index) { frameBack.BackgroundImagePath = "Item/RoomIconBackgroundSelected.png"; oldFrameBack = frameBack; @@ -179,7 +184,7 @@ btnText.Text = text; btnText.TextSize = 12; btnText.TextAlignment = TextAlignment.Center; - if (oldSelectKeys == keys) + if (oldSelectIndex == index) { btnText.TextColor = UserCenterColor.Current.White; oldBtnText = btnText; @@ -192,12 +197,12 @@ frameBack.ButtonClickEvent += (sender, e) => { - if (oldSelectKeys == keys) + if (oldSelectIndex == index) { //鍚屼竴涓笢瑗� return; } - oldSelectKeys = keys; + oldSelectIndex = index; //鐘舵�佸彉鏇� frameBack.BackgroundImagePath = "Item/RoomIconBackgroundSelected.png"; @@ -212,25 +217,122 @@ { this.SelectDeviceEvent?.Invoke(this.dicDevice[keys]); } - else if (this.dicRoom != null) + else if (this.listRoom != null) { - this.SelectRoomEvent?.Invoke(this.dicRoom[keys]); + this.SelectRoomEvent?.Invoke(this.listRoom[keys]); } }; //璋冪敤鍥炶皟鍑芥暟 - if (oldSelectKeys == keys) + if (oldSelectIndex == index) { if (this.dicDevice != null) { this.SelectDeviceEvent?.Invoke(this.dicDevice[keys]); } - else if (this.dicRoom != null) + else if (this.listRoom != null) { - this.SelectRoomEvent?.Invoke(this.dicRoom[keys]); + this.SelectRoomEvent?.Invoke(this.listRoom[keys]); } } } + + /// <summary> + /// 鍒濆鍖栨帶浠� + /// </summary> + /// <param name="scrolContr">鍒楄〃鎺т欢</param> + /// <param name="keys">瀛楀吀鐨勪富閿�</param> + /// <param name="index">绱㈠紩</param> + /// <param name="text">鏄剧ず鏂囨湰</param> + /// <param name="textWidth">鏂囨湰鐪熷疄瀹藉害</param> + private void DoInitControl2(HorizontalScrolViewLayout scrolContr, int keys, int index, string text, int textWidth) + { + //甯﹀簳鍥炬帶浠剁殑鏈�灏忓搴� + int minWidth = Application.GetRealWidth(255); + //甯﹀簳鍥炬帶浠剁殑鐪熷疄瀹藉害 <鏂囧瓧鐨勫搴︾殑璁$畻 frameBack.Width - (int)(frameBack.Height * 0.47)> + int realWidth = textWidth + (int)(Application.GetRealHeight(159) * 0.47); + if (realWidth < minWidth) + { + realWidth = minWidth; + } + + //甯﹀浘鐗囩殑 + var frameBack = new FrameLayoutControl(); + frameBack.UseClickStatu = false; + frameBack.Gravity = Gravity.Center; + frameBack.Height = Application.GetRealHeight(159); + frameBack.Width = realWidth; + frameBack.BorderWidth = 1; + frameBack.BorderColor = UserCenterColor.Current.TextColor1; + scrolContr.AddChidren(frameBack); + if (oldSelectIndex == index) + { + frameBack.SetViewShadow(true); + frameBack.BackgroundColor = UserCenterColor.Current.TextColor1; + oldFrameBack = frameBack; + } + + //鏂囧瓧 + var btnText = new NormalViewControl(textWidth, frameBack.Height, false); + btnText.Gravity = Gravity.CenterHorizontal; + btnText.Text = text; + btnText.TextSize = 12; + btnText.TextAlignment = TextAlignment.Center; + if (oldSelectIndex == index) + { + btnText.TextColor = UserCenterColor.Current.White; + oldBtnText = btnText; + } + else + { + btnText.TextColor = UserCenterColor.Current.TextGrayColor1; + } + frameBack.AddChidren(btnText, ChidrenBindMode.BindEventOnly); + + frameBack.ButtonClickEvent += (sender, e) => + { + if (oldSelectIndex == index) + { + //鍚屼竴涓笢瑗� + return; + } + oldSelectIndex = index; + + //鐘舵�佸彉鏇� + frameBack.SetViewShadow(true); + frameBack.BackgroundColor = UserCenterColor.Current.TextColor1; + btnText.TextColor = UserCenterColor.Current.White; + + oldFrameBack.SetViewShadow(false); + oldFrameBack.BackgroundColor = UserCenterColor.Current.Transparent; + oldBtnText.TextColor = UserCenterColor.Current.TextGrayColor1; + oldFrameBack = frameBack; + oldBtnText = btnText; + //璋冪敤鍥炶皟鍑芥暟 + if (this.dicDevice != null) + { + this.SelectDeviceEvent?.Invoke(this.dicDevice[keys]); + } + else if (this.listRoom != null) + { + this.SelectRoomEvent?.Invoke(this.listRoom[keys]); + } + }; + + //璋冪敤鍥炶皟鍑芥暟 + if (oldSelectIndex == index) + { + if (this.dicDevice != null) + { + this.SelectDeviceEvent?.Invoke(this.dicDevice[keys]); + } + else if (this.listRoom != null) + { + this.SelectRoomEvent?.Invoke(this.listRoom[keys]); + } + } + } + #endregion @@ -257,13 +359,13 @@ /// <param name="keys">鎴块棿ID 鎴栬�� R鏂囦欢閲岄潰鐨勬暟鍊肩紪鍙�(杞负瀛楃涓茬被鍨�)</param> public void SetDefultIndex(string keys) { - if (dicRoom != null) + if (listRoom != null) { - foreach (int index in dicRoom.Keys) + for (int index = 0; index < listRoom.Count; index++) { - if (dicRoom[index].Id == keys) + if (listRoom[index].Id == keys) { - oldSelectKeys = index; + oldSelectIndex = index; break; } } @@ -276,7 +378,7 @@ { if (rId == textId) { - oldSelectKeys = i; + oldSelectIndex = i; break; } i++; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameListControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameListControl.cs index a32a785..cc83e75 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameListControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameListControl.cs @@ -54,5 +54,27 @@ base.AddChidren(view); } } + + /// <summary> + /// 璋冩暣鐪熷疄楂樺害 + /// </summary> + /// <param name="bottomSpace">搴曢儴楂樺害(闈炵湡瀹炲��)</param> + public void AdjustRealHeight(int bottomSpace = 0) + { + int bottomHeight = -1; + + for (int i = 0; i < this.ChildrenCount; i++) + { + var child = this.GetChildren(i); + if (child.Bottom > bottomHeight) + { + bottomHeight = child.Bottom; + } + } + if (bottomHeight != -1) + { + this.Height = bottomHeight + bottomSpace; + } + } } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs index 0a70c26..f2add7e 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/ListViewLayoutControls/VerticalFrameControl.cs @@ -5,7 +5,7 @@ namespace Shared.Phone.UserCenter { /// <summary> - /// 鍋氭垚涓�涓噷闈㈠彧瑁匜rameLayout鐨勫垪琛ㄥ瀷鎺т欢(瀹冧笉浼氳皟鏁撮珮搴�) + /// 鍋氭垚涓�涓噷闈㈠彧瑁匜rameLayout鐨勫垪琛ㄥ瀷鎺т欢(瀹冧笉浼氳皟鏁撮珮搴�,鏈夋甯�) /// </summary> public class VerticalFrameControl : VerticalScrolViewLayout { @@ -96,13 +96,14 @@ /// <param name="buttomSpace">搴曢儴绌虹櫧闂磋窛(鐪熷疄鍊�)</param> public void AdjustChidrenFrameHeight(FrameLayout frame, int buttomSpace) { - var child = frame.GetChildren(frame.ChildrenCount - 1); - if (child != null) + //鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣 + int value = this.GetLocationMostLastViewBottom(); + if (value != -1) { //璋冩暣妗屽竷楂樺害 - if (frame.Height < child.Bottom + buttomSpace) + if (frame.Height < value + buttomSpace) { - frame.Height = child.Bottom + buttomSpace; + frame.Height = value + buttomSpace; } } } @@ -112,11 +113,12 @@ /// </summary> public void AdjustTableHeight() { - var child = this.m_frameTable?.GetChildren(this.m_frameTable.ChildrenCount - 1); - if (child != null) + //鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣 + int value = this.GetLocationMostLastViewBottom(); + if (value != -1) { //璋冩暣妗屽竷楂樺害 - this.m_frameTable.Height = child.Bottom; + this.m_frameTable.Height = value; } } @@ -149,6 +151,27 @@ } } + /// <summary> + /// 鑾峰彇鍧愭爣搴曢儴鏈�涓嬮潰鐨勯偅涓帶浠剁殑搴曢儴鍧愭爣 + /// </summary> + /// <returns></returns> + private int GetLocationMostLastViewBottom() + { + int bottomHeight = -1; + + if (this.m_frameTable == null) { return bottomHeight; } + + for (int i = 0; i < this.m_frameTable.ChildrenCount; i++) + { + var child = this.m_frameTable.GetChildren(i); + if (child.Bottom > bottomHeight) + { + bottomHeight = child.Bottom; + } + } + return bottomHeight; + } + #endregion } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/DateSelectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/DateSelectControl.cs index f05c584..97a1833 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/DateSelectControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/DateSelectControl.cs @@ -83,8 +83,13 @@ this.dateFomat = i_dateFomat; this.titleText = i_titleText; + //鐢ㄦ潵璁$畻闀垮害鐨� + string dateTextTemp = DateTime.Now.ToString(i_dateFomat); this.TextSize = 12; - this.InitSize(210, 49, true); + this.Text = dateTextTemp; + + this.InitSize(this.GetRealWidthByText(), Application.GetRealHeight(50), false); + this.Text = string.Empty; //寮硅捣鏃ユ湡閫夋嫨 this.ButtonClickEvent += (sender, e) => diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/IconViewControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/IconViewControl.cs index f626800..6068952 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/IconViewControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/IconViewControl.cs @@ -20,7 +20,7 @@ /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> public IconViewControl(int size = 110, bool real = true) { - this.InitAvgSize(size, size, real); + this.InitIconSize(size, size, real); this.IconSize = size; if (real == true) { diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs index 5572b5a..70dd722 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/InformationTipView.cs @@ -16,7 +16,7 @@ /// <param name="size">瑙掓爣澶у皬</param> public InformationTipView(ButtonBase TargetView, int size = 30) { - this.InitAvgSize(size, size, true); + this.InitIconSize(size, size, true); this.BackgroundColor = UserCenterColor.Current.Red; this.Radius = (uint)Application.GetMinRealAverage(size) / 2; this.X = TargetView.X + TargetView.Width / 2 + Application.GetRealWidth(10); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/PicViewControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/PicViewControl.cs index 7216c7c..4e4a5e3 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/PicViewControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/PicViewControl.cs @@ -5,19 +5,19 @@ namespace Shared.Phone.UserCenter { /// <summary> - /// 鍋氭垚涓�涓樉绀哄浘鐗囩殑鏅�氭帶浠�(姣旂巼閲囧彇骞冲潎鍊�)鉁� + /// 鍋氭垚涓�涓樉绀哄浘鐗囩殑鏅�氭帶浠垛湬 /// </summary> public class PicViewControl : ButtonBase { /// <summary> - /// 鍋氭垚涓�涓樉绀哄浘鐗囩殑鏅�氭帶浠�(姣旂巼閲囧彇骞冲潎鍊�) + /// 鍋氭垚涓�涓樉绀哄浘鐗囩殑鏅�氭帶浠� /// </summary> /// <param name="i_Width">瀹藉害</param> /// <param name="i_Height">楂樺害</param> /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> public PicViewControl(int i_Width, int i_Height, bool real = true) { - this.InitAvgSize(i_Width, i_Height, real); + this.InitPictrueSize(i_Width, i_Height, real); } } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs index c017895..1e42396 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs @@ -91,8 +91,9 @@ /// <summary> /// 娣诲姞缂栬緫鎺т欢 /// </summary> + /// <param name="hideMenuByClick">鐐瑰嚮鏃�,鏄惁闅愯棌宸︽粦鑿滃崟</param> /// <returns></returns> - public NormalViewControl AddEditorControl() + public NormalViewControl AddEditorControl(bool hideMenuByClick = true) { var btnEditor = new NormalViewControl(Application.GetRealWidth(184), this.Height, false); btnEditor.BackgroundColor = 0xff4a4a4a; @@ -101,6 +102,14 @@ btnEditor.TextAlignment = TextAlignment.Center; btnEditor.TextID = R.MyInternationalizationString.uEditor; this.AddRightView(btnEditor); + if (hideMenuByClick == true) + { + btnEditor.ButtonClickEvent += (sender, e) => + { + //鍏抽棴宸︽粦鑿滃崟 + this.HideMenu(); + }; + } return btnEditor; } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlAlarmsLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlAlarmsLogic.cs index 5246663..88b24d8 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlAlarmsLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlAlarmsLogic.cs @@ -579,17 +579,31 @@ } else if (info.AlarmCode == 216) { - //甯稿紑妯″紡寮�鍚� + //甯稿紑妯″紡寮�鍚�(闂ㄩ攣瑙﹀彂) alarmInfo.AlarmMsg = Language.StringByID(R.MyInternationalizationString.uDoorLockAlarmMsg6); + alarmInfo.MsgDiv = 9000; } else if (info.AlarmCode == 217) { - //甯稿紑妯″紡缁撴潫 - alarmInfo.AlarmMsg = Language.StringByID(R.MyInternationalizationString.uDoorLockAlarmMsg7); + //甯稿紑妯″紡缁撴潫(闂ㄩ攣瑙﹀彂) + alarmInfo.AlarmMsg = Language.StringByID(R.MyInternationalizationString.uDoorLockAlarmMsg7); + alarmInfo.MsgDiv = 9000; + } + else if (info.AlarmCode == 218) + { + //甯稿紑妯″紡寮�鍚�(缃戝叧瑙﹀彂) + alarmInfo.AlarmMsg = Language.StringByID(R.MyInternationalizationString.uDoorLockAlarmMsg9); + alarmInfo.MsgDiv = 9000; + } + else if (info.AlarmCode == 219) + { + //甯稿紑妯″紡缁撴潫(缃戝叧瑙﹀彂) + alarmInfo.AlarmMsg = Language.StringByID(R.MyInternationalizationString.uDoorLockAlarmMsg10); + alarmInfo.MsgDiv = 9000; } else if (info.AlarmCode == 232) { - //闂ㄩ搩瑙﹀彂 + //鏈変汉璁块棶 alarmInfo.AlarmMsg = Language.StringByID(R.MyInternationalizationString.uDoorLockAlarmMsg8); } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlControlLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlControlLogic.cs new file mode 100755 index 0000000..dff6a77 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlControlLogic.cs @@ -0,0 +1,84 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Shared.Phone.UserCenter +{ + /// <summary> + /// 鎺т欢鐨勯�昏緫 + /// </summary> + public class HdlControlLogic + { + #region 鈻� 鍙橀噺澹版槑___________________________ + + /// <summary> + /// 鎺т欢鐨勯�昏緫 + /// </summary> + private static HdlControlLogic m_Current = null; + /// <summary> + /// 鎺т欢鐨勯�昏緫 + /// </summary> + public static HdlControlLogic Current + { + get + { + if (m_Current == null) + { + m_Current = new HdlControlLogic(); + } + return m_Current; + } + } + + #endregion + + #region 鈻� 瀛愭帶浠剁殑Y杞村潗鏍嘷___________________ + + /// <summary> + /// 鎸囧畾浣嶇疆绫诲瀷鑾峰彇Rowlayout鐨勫瓙鎺т欢鐨刌杞村潗鏍�(璇风‘淇濆瓙鎺т欢涓嶅ぇ浜庣埗瀹瑰櫒) + /// </summary> + /// <param name="fatherCtrHeight">鐖舵帶浠剁殑鐪熷疄楂樺害</param> + /// <param name="ctrHeight">瀛愭帶浠剁殑鐪熷疄楂樺害</param> + /// <param name="alignment">浣嶇疆瀵归綈鏂瑰紡</param> + /// <param name="Space">涓婁笅闂寸殑绌虹櫧闂磋窛,鐪佺暐鏃讹紝鍙栬鎺т欢鍏遍�氬彉閲忕殑鍊笺�傝缃负-1鏃讹紝涓嶈绠楃┖鐧介棿璺�</param> + /// <returns></returns> + public int GetControlChidrenYaxis(int fatherCtrHeight, int ctrHeight, UViewAlignment alignment, int Space = 0) + { + if (Space < 0) + { + //涓嶈绠楅棿璺濆�� + Space = 0; + } + + if (alignment == UViewAlignment.Center) + { + return fatherCtrHeight / 2 - ctrHeight / 2; + } + else if (alignment == UViewAlignment.Top) + { + return (fatherCtrHeight / 2 - Space / 2) / 2 - ctrHeight / 2; + } + else + { + int top = fatherCtrHeight / 2 + Space / 2; + return top + (fatherCtrHeight - top) / 2 - ctrHeight / 2; + } + } + + #endregion + + #region 鈻� 璁$畻鍥剧墖鐪熷疄澶у皬___________________ + + /// <summary> + /// 璁$畻鍥剧墖鐨勭湡瀹為珮瀹藉害 + /// </summary> + /// <param name="i_size"></param> + /// <returns></returns> + public int GetPictrueRealSize(int i_size) + { + return Application.GetRealWidth(i_size); + } + + #endregion + } +} diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceDoorLockLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceDoorLockLogic.cs new file mode 100755 index 0000000..fae3017 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceDoorLockLogic.cs @@ -0,0 +1,191 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Shared.Phone.UserCenter +{ + /// <summary> + /// 闂ㄩ攣鍘嗗彶璁板綍鐨勯�昏緫 + /// </summary> + public class HdlDeviceDoorLockLogic + { + #region 鈻� 鍙橀噺澹版槑___________________________ + + /// <summary> + /// 闂ㄩ攣鍘嗗彶璁板綍鐨勯�昏緫 + /// </summary> + private static HdlDeviceDoorLockLogic m_Current = null; + /// <summary> + /// 闂ㄩ攣鍘嗗彶璁板綍鐨勯�昏緫 + /// </summary> + public static HdlDeviceDoorLockLogic Current + { + get + { + if (m_Current == null) + { + m_Current = new HdlDeviceDoorLockLogic(); + } + return m_Current; + } + } + + #endregion + + #region 鈻� 娣诲姞鍘嗗彶璁板綍_______________________ + + /// <summary> + /// 娣诲姞鍘嗗彶璁板綍 + /// </summary> + /// <param name="i_doorLock">闂ㄩ攣瀵硅薄</param> + /// <param name="OtherOpenLockMode">鍏朵粬寮�閿佹柟寮� 9001:甯稿紑鎵撳紑 9002:甯稿紑鍙栨秷 9003:甯稿紑鎸佺画</param> + /// <param name="NormallyOpenContinuedTime">甯稿紑鎸佺画鏃堕棿(1~72灏忔椂 OtherOpenLockMode=9003鐨勬椂鍊欐湁鏁�)</param> + public void AddDoorHistoryLog(ZigBee.Device.DoorLock i_doorLock, int OtherOpenLockMode, string NormallyOpenContinuedTime) + { + HdlThreadLogic.Current.RunThread(async () => + { + //鑾峰彇闂ㄩ攣鐨勪富閿甀D + var DoorLockId = await this.GetDoorHistoryDoorLockId(i_doorLock); + + var pra = new AddDoorHistoryLogPra(); + pra.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); + pra.DoorLockId = DoorLockId; + pra.OtherOpenLockMode = OtherOpenLockMode; + pra.NormallyOpenContinuedTime = NormallyOpenContinuedTime; + + //涓嶄簩娆″彂閫�,涓嶆娴嬮敊璇爜 + var listCheck = new List<string>() { "NotSetAgain", "NotCheck" }; + var result = await UserCenterLogic.GetResultStatuByRequestHttps("DoorLock/AddDoorLockHistory", true, pra, listCheck); + if (result == false) + { + } + }); + } + + /// <summary> + /// 鑾峰彇娣诲姞闂ㄩ攣鍘嗗彶璁板綍鐨凞oorLockId + /// </summary> + /// <param name="i_doorLock">闂ㄩ攣瀵硅薄</param> + /// <returns></returns> + private async System.Threading.Tasks.Task<string> GetDoorHistoryDoorLockId(ZigBee.Device.DoorLock i_doorLock) + { + var pra = new GetDoorIdPra(); + pra.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); + pra.DoorLockId = i_doorLock.DeviceAddr + "_" + i_doorLock.DeviceEpoint; + //涓嶄簩娆″彂閫�,涓嶆娴嬮敊璇爜 + var listCheck = new List<string>() { "NotSetAgain", "NotCheck" }; + var result = await UserCenterLogic.GetResponseDataByRequestHttps("DoorLock/GetDoorLockPager", true, pra, listCheck); + if (result == null) { return null; } + + //濡傛灉宸茬粡鍒涘缓浜�,鍒欎笉鍐嶅垱寤� + var myData = Newtonsoft.Json.JsonConvert.DeserializeObject<ZigBee.Device.DoorLock.GetDoorLockDataRes>(result); + if (myData.PageData.Count > 0) + { + return myData.PageData[0].Id; + } + + //濡傛灉杩樻病鏈夊垱寤�,鍒欒櫄鎷熶竴涓壒娈婄殑涓滆タ鍑烘潵 + var pra2 = new AddDoorPra(); + pra2.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); + pra2.DoorLockId = i_doorLock.DeviceAddr + "_" + i_doorLock.DeviceEpoint; + var result2 = await UserCenterLogic.GetResponseDataByRequestHttps("DoorLock/AddDoorLock", true, pra, listCheck); + //浜戠鏄洿鎺ヨ繑鍥炲垱寤虹殑涓婚敭瀛楃涓� + return result2; + } + + /// <summary> + /// 娣诲姞鍘嗗彶璁板綍鐨勫弬鏁� + /// </summary> + private class AddDoorHistoryLogPra : IfacePraCommon + { + /// <summary> + /// RequestVersion + /// </summary> + public string RequestVersion = Common.CommonPage.RequestVersion; + /// <summary> + /// LoginAccessToken + /// </summary> + public string LoginAccessToken = string.Empty; + /// <summary> + /// ZigbeeHomeId + /// </summary> + public string HomeId = Common.Config.Instance.Home.Id; + /// <summary> + /// 闂ㄩ攣浜戠涓婚敭(鍦�(鑾峰彇鏌愪釜浣忓畢闂ㄩ攣鍒嗛〉)鎺ュ彛鍝嶅簲涓殑Id鍊�) + /// </summary> + public string DoorLockId = string.Empty; + /// <summary> + /// 鍏朵粬寮�閿佹柟寮� 9001:甯稿紑鎵撳紑 9002:甯稿紑鍙栨秷 9003:甯稿紑鎸佺画 + /// </summary> + public int OtherOpenLockMode = -1; + /// <summary> + /// 甯稿紑鎸佺画鏃堕棿(1~72灏忔椂 OtherOpenLockMode=9003鐨勬椂鍊欐湁鏁�) + /// </summary> + public string NormallyOpenContinuedTime = string.Empty; + } + + /// <summary> + /// 鑾峰彇娣诲姞闂ㄩ攣鍘嗗彶璁板綍鐨凞oorLockId鐨勫弬鏁� + /// </summary> + private class GetDoorIdPra : IfacePraCommon + { + /// <summary> + /// RequestVersion + /// </summary> + public string RequestVersion = Common.CommonPage.RequestVersion; + /// <summary> + /// LoginAccessToken + /// </summary> + public string LoginAccessToken = string.Empty; + /// <summary> + /// ZigbeeHomeId + /// </summary> + public string HomeId = Common.Config.Instance.Home.Id; + /// <summary> + /// 濉獹UID + /// </summary> + public string CloudAccountId = Common.Config.Instance.Guid; + /// <summary> + /// 杩欎釜鏄棬閿佺殑 Mac_绔偣 + /// </summary> + public string DoorLockId = string.Empty; + /// <summary> + /// 寮�閿佹柟寮�:鍥哄畾9000 + /// </summary> + public int OpenLockMode = 9000; + } + + /// <summary> + /// 娣诲姞闂ㄩ攣鐨勫弬鏁� + /// </summary> + private class AddDoorPra : IfacePraCommon + { + /// <summary> + /// RequestVersion + /// </summary> + public string RequestVersion = Common.CommonPage.RequestVersion; + /// <summary> + /// LoginAccessToken + /// </summary> + public string LoginAccessToken = string.Empty; + /// <summary> + /// ZigbeeHomeId + /// </summary> + public string HomeId = Common.Config.Instance.Home.Id; + /// <summary> + /// 濉獹UID + /// </summary> + public string CloudAccountId = Common.Config.Instance.Guid; + /// <summary> + /// 杩欎釜鏄棬閿佺殑 Mac_绔偣 + /// </summary> + public string DoorLockId = string.Empty; + /// <summary> + /// 鍏朵粬寮�閿佹柟寮� 鍥哄畾9000 + /// </summary> + public int OpenLockMode = 9000; + } + + #endregion + } +} diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlRoomLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlRoomLogic.cs index 4952414..4f3a0c7 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlRoomLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlRoomLogic.cs @@ -307,10 +307,19 @@ /// </summary> /// <returns>鎴块棿鍚�</returns> /// <param name="device">璁惧瀵硅薄</param> - /// <param name="append">鍦ㄦゼ灞傚拰鎴块棿鍚嶅瓧鐨勪腑闂存坊鍔犵殑瀛楃(浠呴檺鏈夋ゼ灞傜殑鏃跺�欐湁鏁�)</param> - public string GetRoomNameByDevice(CommonDevice device, string append = " ") + public string GetRoomNameByDevice(CommonDevice device) { var room = this.GetRoomByDevice(device); + return this.GetFloorRoomName(room); + } + + /// <summary> + /// 鑾峰彇鎴块棿鍚嶅瓧(妤煎眰+鎴块棿鍚�) + /// </summary> + /// <returns>鎴块棿鍚�</returns> + /// <param name="room">鎴块棿瀵硅薄</param> + public string GetFloorRoomName(Room room) + { if (room == null) { //鏈垎閰嶅尯鍩� @@ -319,7 +328,7 @@ if (Config.Instance.Home.FloorDics.ContainsKey(room.FloorId) == true) { //(妤煎眰+鎴块棿鍚�) - return Config.Instance.Home.FloorDics[room.FloorId] + append + room.Name; + return Config.Instance.Home.FloorDics[room.FloorId] + " " + room.Name; } return room.Name; } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs index 4a49fa5..35fc675 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSafeguardLogic.cs @@ -2085,7 +2085,7 @@ dicSort[modelNo] = Language.StringByID(R.MyInternationalizationString.Mode_Dry); } } - else if (info.Data1 == 4 || info.Data1 == 5) + else if (info.Data1 == 4 || info.Data1 == 5|| info.Data1 == 7) { //娓╁害 dicSort[temparetureNo] = $"{ info.Data2 / 100}鈩�"; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSceneLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSceneLogic.cs index 925d1eb..ce36714 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSceneLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSceneLogic.cs @@ -353,7 +353,7 @@ //寤舵椂 removeData.Type = 2; removeData.DelayTime = data.DelayTime; - removeData.MemberNumber = i + 1; + removeData.MemberNumber = data.MemberNumber; } //鎷ユ湁鎴愬姛鐨� deleteTargetData.Add(removeData); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs index bb2ab6f..2beb098 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/UserCenterLogic.cs @@ -734,41 +734,6 @@ #endregion - #region 鈻� 瀛愭帶浠剁殑Y杞村潗鏍嘷___________________ - - /// <summary> - /// 鎸囧畾浣嶇疆绫诲瀷鑾峰彇Rowlayout鐨勫瓙鎺т欢鐨刌杞村潗鏍�(璇风‘淇濆瓙鎺т欢涓嶅ぇ浜庣埗瀹瑰櫒) - /// </summary> - /// <param name="fatherCtrHeight">鐖舵帶浠剁殑鐪熷疄楂樺害</param> - /// <param name="ctrHeight">瀛愭帶浠剁殑鐪熷疄楂樺害</param> - /// <param name="alignment">浣嶇疆瀵归綈鏂瑰紡</param> - /// <param name="Space">涓婁笅闂寸殑绌虹櫧闂磋窛,鐪佺暐鏃讹紝鍙栬鎺т欢鍏遍�氬彉閲忕殑鍊笺�傝缃负-1鏃讹紝涓嶈绠楃┖鐧介棿璺�</param> - /// <returns></returns> - public static int GetControlChidrenYaxis(int fatherCtrHeight, int ctrHeight, UViewAlignment alignment, int Space = 0) - { - if (Space < 0) - { - //涓嶈绠楅棿璺濆�� - Space = 0; - } - - if (alignment == UViewAlignment.Center) - { - return fatherCtrHeight / 2 - ctrHeight / 2; - } - else if (alignment == UViewAlignment.Top) - { - return (fatherCtrHeight / 2 - Space / 2) / 2 - ctrHeight / 2; - } - else - { - int top = fatherCtrHeight / 2 + Space / 2; - return top + (fatherCtrHeight - top) / 2 - ctrHeight / 2; - } - } - - #endregion - #region 鈻� 鎷兼帴淇℃伅___________________________ /// <summary> diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitSettionForm.cs index 5dbc59c..8c174d1 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitSettionForm.cs @@ -15,7 +15,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 褰撳墠閫夋嫨鐨勭綉鍏� /// </summary> @@ -78,15 +78,19 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 369, 1368); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1368); //鍥剧墖 var btnPic = new DeviceInfoIconControl(); btnPic.Y = Application.GetRealHeight(92); btnPic.Gravity = Gravity.CenterHorizontal; - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); btnPic.InitControl(this.deviceAc); //璁惧澶囨敞 @@ -190,7 +194,7 @@ }; //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; //淇濆瓨 diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs index 7b91537..23e2b3a 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs @@ -1,7 +1,6 @@ 锘縰sing System; using System.Collections.Generic; using Shared.Common; -using Shared.Phone.Device.Light; using Shared.Phone.UserCenter.Device; using ZigBee.Device; using static ZigBee.Device.BindObj; @@ -625,15 +624,17 @@ var btnChoose = new Button() { - Width = Application.GetRealWidth(60), - Height = Application.GetRealHeight(60), + Width = Application.GetMinReal(60), + Height = Application.GetMinReal(60), X = Application.GetRealWidth(861 + 81), Y = Application.GetRealHeight(35), SelectedImagePath = "DoorLock/SelectedIcon.png", TextColor = Shared.Common.ZigbeeColor.Current.XMWhite, Visible = false, Tag = device.DeviceEpointName, + Gravity = Gravity.CenterVertical, }; + rowLayout.AddChidren(btnChoose); var line2 = new Button() diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs index 0dfc34c..72c60b7 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using Microsoft.AppCenter.Crashes; using Shared.Common; -using Shared.Phone.Device.Light; using Shared.Phone.UserCenter.Device; using ZigBee.Device; using static ZigBee.Device.BindObj; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs index 9c6b433..a6cb796 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs @@ -53,8 +53,8 @@ //璁剧疆鍏ㄩ儴鍥炶矾鐨勯粯璁ゅ悕瀛� this.SetAllEpointName(); - //淇濆瓨闂ㄩ攣鏃堕棿 - this.SaveDoorTime(); + // 璁剧疆缃戝叧鎵�鍦ㄧ殑鏃跺尯鐨勬椂闂寸粰闂ㄩ攣鏃堕棿 + this.SetDoorTime(); } /// <summary> @@ -283,9 +283,9 @@ } /// <summary> - /// 淇濆瓨闂ㄩ攣鏃堕棿 + /// 璁剧疆缃戝叧鎵�鍦ㄧ殑鏃跺尯鐨勬椂闂寸粰闂ㄩ攣鏃堕棿 /// </summary> - private async void SaveDoorTime() + private async void SetDoorTime() { //濡傛灉鏄棬閿� if (this.listNewDevice[0].Type == DeviceType.DoorLock) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceDryContactSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceDryContactSettionForm.cs index 46ead4f..be1e0ef 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceDryContactSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceDryContactSettionForm.cs @@ -17,7 +17,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 褰撳墠閫夋嫨鐨勮澶� /// </summary> @@ -80,12 +80,16 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� this.tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 562, 1175); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1175); //鍒濆鍖栬澶囧洖璺浘鏍� - this.InitDeviceEpointIcon(); + this.InitDeviceEpointIcon(listBackControl); //淇濆瓨 var btnFinish = new BottomClickButton(); @@ -211,7 +215,7 @@ //娣诲姞鑳屽厜鐏 this.AddBackLightRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); } #endregion @@ -431,7 +435,7 @@ /// <summary> /// 鍒濆鍖栬澶囧洖璺浘鏍� /// </summary> - private void InitDeviceEpointIcon() + private void InitDeviceEpointIcon(VerticalFrameControl listBackControl) { //鑾峰彇鎸夌粍鍒嗛厤鐨勮澶� var listIcon = this.GetAllDeviceGroup(); @@ -442,9 +446,7 @@ frameBorder.Width = Application.GetRealWidth(887); frameBorder.Height = Application.GetRealHeight(423); frameBorder.Radius = (uint)Application.GetRealHeight(6); - frameBorder.BorderWidth = 1; - frameBorder.BorderColor = 0xffd0d0d0; - bodyFrameLayout.AddChidren(frameBorder); + listBackControl.frameTable.AddChidren(frameBorder); var frameBack = new FrameLayout(); frameBack.Height = frameBorder.Height; @@ -454,7 +456,7 @@ //闇�瑕佹粦鍔ㄦ帶浠� var listControl = new VerticalScrolViewLayout(); listControl.Height = frameBorder.Height; - bodyFrameLayout.AddChidren(listControl); + listBackControl.frameTable.AddChidren(listControl); listControl.AddChidren(frameBack); } @@ -468,8 +470,8 @@ for (int i = 0; i < listIcon.Count; i++) { var frame = new FrameLayout(); - frame.Width = Application.GetMinRealAverage(887); - frame.Height = Application.GetMinRealAverage(124); + frame.Width = this.GetPictrueRealSize(887); + frame.Height = this.GetPictrueRealSize(124); frameBack.AddChidren(frame); //鍒濆鍖栦竴琛岃澶囧浘鏍� this.InitDeviceIconFrame(frame, listIcon[i], ref index); @@ -480,14 +482,14 @@ } else { - frame.Y = Application.GetMinRealAverage(58) + (frameBack.ChildrenCount - 1) * (frame.Height + Application.GetMinRealAverage(60)); + frame.Y = this.GetPictrueRealSize(58) + (frameBack.ChildrenCount - 1) * (frame.Height + this.GetPictrueRealSize(60)); } } if (listIcon.Count > 2) { //璁$畻鐪熷疄楂樺害 - int realHeight = Application.GetMinRealAverage(58 + 58) + (frameBack.ChildrenCount - 1) * Application.GetMinRealAverage(124 + 60); + int realHeight = this.GetPictrueRealSize(58 + 58) + (frameBack.ChildrenCount - 1) * this.GetPictrueRealSize(124 + 60); if (realHeight > frameBack.Height) { //鍙樻洿楂樺害 @@ -507,7 +509,7 @@ { NormalViewControl btnTemp = null; //闂磋窛 - int space = Application.GetMinRealAverage(84); + int space = this.GetPictrueRealSize(84); int defultXX = (frame.Width - frame.Height * listDevice.Count - (listDevice.Count - 1) * space) / 2; for (int i = 0; i < listDevice.Count; i++) { diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs index 8b0ad83..3a52b0e 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs @@ -15,7 +15,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 褰撳墠閫夋嫨鐨勮澶� /// </summary> @@ -81,12 +81,16 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� this.tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1128); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1128); //鍒濆鍖栬澶囧洖璺浘鏍� - this.InitDeviceEpointIcon(); + this.InitDeviceEpointIcon(listBackControl); //淇濆瓨 var btnFinish = new BottomClickButton(); @@ -210,7 +214,7 @@ //娣诲姞鍔熻兘绫诲瀷琛� this.AddFunctionTypeRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); } #endregion @@ -365,7 +369,7 @@ /// <summary> /// 鍒濆鍖栬澶囧洖璺浘鏍� /// </summary> - private void InitDeviceEpointIcon() + private void InitDeviceEpointIcon(VerticalFrameControl listBackControl) { //鑾峰彇鎸夌粍鍒嗛厤鐨勮澶� var listIcon = this.GetAllDeviceGroup(); @@ -373,10 +377,10 @@ var frameBorder = new FrameLayout(); frameBorder.Y = Application.GetRealHeight(147); frameBorder.Gravity = Gravity.CenterHorizontal; - frameBorder.Width = Application.GetRealWidth(887); + frameBorder.Width = this.GetPictrueRealSize(887); frameBorder.Height = Application.GetRealHeight(423); frameBorder.Radius = (uint)Application.GetRealHeight(6); - bodyFrameLayout.AddChidren(frameBorder); + listBackControl.frameTable.AddChidren(frameBorder); var frameBack = new FrameLayout(); frameBack.Height = frameBorder.Height; @@ -401,7 +405,7 @@ { var frame = new FrameLayout(); frame.Width = frameBorder.Width; - frame.Height = Application.GetMinRealAverage(124); + frame.Height = this.GetPictrueRealSize(124); frameBack.AddChidren(frame); //鍒濆鍖栦竴琛岃澶囧浘鏍� this.InitDeviceIconFrame(frame, listIcon[i], ref index); @@ -412,16 +416,16 @@ } else { - frame.Y = Application.GetMinRealAverage(58) + (frameBack.ChildrenCount - 1) * (frame.Height + Application.GetMinRealAverage(60)); + frame.Y = this.GetPictrueRealSize(58) + (frameBack.ChildrenCount - 1) * (frame.Height + this.GetPictrueRealSize(60)); } } if (listIcon.Count > 2) { //璁$畻鐪熷疄楂樺害 - int realHeight = Application.GetMinRealAverage(58 + 58);//涓婁笅闂磋窛 - realHeight += frameBack.ChildrenCount * Application.GetMinRealAverage(124);//鍦嗗湀楂樺害 - realHeight += (frameBack.ChildrenCount-1) * Application.GetMinRealAverage(60);//鍦嗗湀闂磋窛 + int realHeight = this.GetPictrueRealSize(58 + 58);//涓婁笅闂磋窛 + realHeight += frameBack.ChildrenCount * this.GetPictrueRealSize(124);//鍦嗗湀楂樺害 + realHeight += (frameBack.ChildrenCount-1) * this.GetPictrueRealSize(60);//鍦嗗湀闂磋窛 if (realHeight > frameBack.Height) { //鍙樻洿楂樺害 @@ -441,7 +445,7 @@ { NormalViewControl btnTemp = null; //闂磋窛 - int space = Application.GetMinRealAverage(84); + int space = this.GetPictrueRealSize(84); int defultXX = (frame.Width - frame.Height * listDevice.Count - (listDevice.Count - 1) * space) / 2; for (int i = 0; i < listDevice.Count; i++) { diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs index 0f7a798..95ca2a5 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs @@ -239,13 +239,8 @@ if (listdevice.Count > 0 && Common.LocalDevice.Current.DeviceIsCanFixedPosition(listdevice[0]) == true) { //瀹氫綅 - var btnPosition = new NormalViewControl(Application.GetRealWidth(184), rowMenu.Height, false); + var btnPosition = rowMenu.AddEditorControl(false); btnPosition.TextID = R.MyInternationalizationString.uFixedPosition; - btnPosition.TextAlignment = TextAlignment.Center; - btnPosition.TextSize = 12; - btnPosition.TextColor = UserCenterColor.Current.White; - btnPosition.BackgroundColor = 0xff4a4a4a; - rowMenu.AddRightView(btnPosition); btnPosition.ButtonClickEvent += (sender, e) => { //瀹氫綅 @@ -372,13 +367,8 @@ if (Common.LocalDevice.Current.DeviceIsCanFixedPosition(device) == true) { //瀹氫綅 - var btnPosition = new NormalViewControl(Application.GetRealWidth(184), rowDevice.Height, false); + var btnPosition = rowDevice.AddEditorControl(false); btnPosition.TextID = R.MyInternationalizationString.uFixedPosition; - btnPosition.TextAlignment = TextAlignment.Center; - btnPosition.TextSize = 12; - btnPosition.TextColor = UserCenterColor.Current.White; - btnPosition.BackgroundColor = 0xff4a4a4a; - rowDevice.AddRightView(btnPosition); btnPosition.ButtonClickEvent += (sender, e) => { //瀹氫綅 @@ -453,8 +443,9 @@ //鏂伴闈㈡澘 else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir) { - var form = new DeviceFunctionSettionForm(); - form.AddForm(device, true); + //鏂规偊鏂伴闈㈡澘鐨勬寜閿厤缃� + var form = new DevicePanel.PanelFangyueFreshAirButtonSettionForm(); + form.AddForm(device); } //鏂规偊闈㈡澘 else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueTwo diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs index 2dba546..4865485 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs @@ -20,7 +20,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 璁惧鐨勮澶囩被鍨� /// </summary> @@ -81,15 +81,19 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 369, 1368); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1368); //鍥剧墖 var btnPic = new DeviceInfoIconControl(); btnPic.Y = Application.GetRealHeight(92); btnPic.Gravity = Gravity.CenterHorizontal; - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); btnPic.InitControl(listNewDevice[0]); //璁惧澶囨敞 @@ -171,7 +175,7 @@ this.AddAllMenuRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; //淇濆瓨 @@ -303,7 +307,7 @@ }; actionNone = () => { - Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock, action); + Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock); }; HdlCheckLogic.Current.CheckSecondarySecurity(action, actionNone); } @@ -324,7 +328,7 @@ }; actionNone = () => { - Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock, action); + Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock); }; HdlCheckLogic.Current.CheckSecondarySecurity(action, actionNone); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs index f478b5c..c8e359d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs @@ -53,132 +53,132 @@ bodyFrameLayout.AddChidren(listView); //2鎸夐敭瑙︽懜闈㈡澘 - var objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId202); + var objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName1); var unSelectPic = "Device/ButtonPanelTwo.png"; var arry = objectText.Split(new string[] { "(" }, StringSplitOptions.RemoveEmptyEntries); objectText = arry[0].Trim(); this.AddMenuRow(objectText, unSelectPic, "PanelTwoButtonDirectionForm"); //3鎸夐敭瑙︽懜闈㈡澘 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId201); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName2); arry = objectText.Split(new string[] { "(" }, StringSplitOptions.RemoveEmptyEntries); objectText = arry[0].Trim(); unSelectPic = "Device/ButtonPanelThree.png"; this.AddMenuRow(objectText, unSelectPic, "PanelThreeButtonDirectionForm"); //4鎸夐敭瑙︽懜闈㈡澘 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId200); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName3); arry = objectText.Split(new string[] { "(" }, StringSplitOptions.RemoveEmptyEntries); objectText = arry[0].Trim(); unSelectPic = "Device/ButtonPanelFour.png"; this.AddMenuRow(objectText, unSelectPic, "PanelFourButtonDirectionForm"); //鏂规偊鍗曞紑鍙屾帶闈㈡澘 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId240); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName4); unSelectPic = "Device/ButtonPanelFangyueTwo.png"; this.AddMenuRow(objectText, unSelectPic, "PanelFangyueTwoButtonDirectionForm"); //鏂规偊鍙屽紑鍥涙帶闈㈡澘 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId241); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName5); unSelectPic = "Device/ButtonPanelFangyueFour.png"; this.AddMenuRow(objectText, unSelectPic, "PanelFangyueFourButtonDirectionForm"); //鏂规偊鍥涘紑鍏帶闈㈡澘 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId242); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName6); unSelectPic = "Device/ButtonPanelFangyueEight.png"; this.AddMenuRow(objectText, unSelectPic, "PanelFangyueEightButtonDirectionForm"); //鏂规偊鏂伴灏忔ā鍧�,鍥剧墖鍜�3璺户鐢靛櫒灏忔ā鍧楃浉鍚� - objectText = Language.StringByID(R.MyInternationalizationString.DeviceModelId2310); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName7); unSelectPic = "Device/RelayThreeLoad.png"; this.AddMenuRow(objectText, unSelectPic, "PanelFangyueFreshAirModulDirectionForm"); //鏂规偊鏂伴闈㈡澘 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId250); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName8); unSelectPic = "Device/ButtonPanelFangyueFreshAir.png"; this.AddMenuRow(objectText, unSelectPic, "PanelFangyueFreshAirDirectionForm"); //鏂规偊鐜闈㈡澘 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId253); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName9); unSelectPic = "Device/ButtonPanelFangyueEnvironment.png"; this.AddMenuRow(objectText, unSelectPic, "PanelFangyueEnvironmentDirectionForm"); //绐楀笜闈㈡澘 - objectText = "绐楀笜闈㈡澘"; + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName10); unSelectPic = "Device/ButtonPanelCurtain.png"; this.AddMenuRow(objectText, unSelectPic, "PanelCurtainDirectionForm"); //3璺户鐢靛櫒灏忔ā鍧� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId2300); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName11); unSelectPic = "Device/RelayThreeLoad.png"; this.AddMenuRow(objectText, unSelectPic, "RelayThreeLoadDirectionForm"); //1璺皟鍏夊櫒灏忔ā鍧� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId2500); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName12); unSelectPic = "Device/DimmableLightOneLoad.png"; this.AddMenuRow(objectText, unSelectPic, "DimmableLightOneLoadDirectionForm"); //Zigbee鏅鸿兘寮�鍚堝笜鐢垫満 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId100); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName13); unSelectPic = "Device/CurtainAutoOpen.png"; this.AddMenuRow(objectText, unSelectPic, "CurtainAutoOpenDirectionForm"); //Zigbee鏅鸿兘绠$姸鐢垫満 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId101); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName14); unSelectPic = "Device/CurtainSiphonate.png"; this.AddMenuRow(objectText, unSelectPic, "CurtainSiphonateDirectionForm"); //绌鸿皟 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId3600); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName15); unSelectPic = "Device/AirConditionerZbGateway.png"; this.AddMenuRow(objectText, unSelectPic, "AirConditionerZbGatewayDirectionForm"); //鏅鸿兘闂ㄩ攣 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceBelongId2800); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName16); unSelectPic = "Device/IntelligentLocksH06C.png"; this.AddMenuRow(objectText, unSelectPic, "IntelligentLocksH06cDirectionForm"); //PIR浼犳劅鍣� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId1200); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName17); unSelectPic = "Device/SensorPir.png"; this.AddMenuRow(objectText, unSelectPic, "SensorPirDirectionForm"); //绾㈠浼犳劅鍣� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId1303); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName18); unSelectPic = "Device/SensorInfrared.png"; this.AddMenuRow(objectText, unSelectPic, "SensorInfraredDirectionForm"); //鐕冩皵浼犳劅鍣� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId1300); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName19); unSelectPic = "Device/SensorCarbonMonoxide.png"; this.AddMenuRow(objectText, unSelectPic, "SensorCarbonMonoxideDirectionForm"); //鐑熼浘浼犳劅鍣� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId1302); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName20); unSelectPic = "Device/SensorFire.png"; this.AddMenuRow(objectText, unSelectPic, "SensorFireDirectionForm"); //姘存蹈浼犳劅鍣� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId1304); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName21); unSelectPic = "Device/SensorWater.png"; this.AddMenuRow(objectText, unSelectPic, "SensorWaterDirectionForm"); //闂ㄧ獥浼犳劅鍣� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId1301); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName22); unSelectPic = "Device/SensorDoorWindow.png"; this.AddMenuRow(objectText, unSelectPic, "SensorDoorWindowDirectionForm"); //娓╂箍搴︿紶鎰熷櫒 - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceBelongId10); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName23); unSelectPic = "Device/SensorTemperatureHumidity.png"; this.AddMenuRow(objectText, unSelectPic, "SensorTemperatureHumidityForm"); //涓户鍣� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId3900); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName24); unSelectPic = "Device/RepeaterZigbee.png"; this.AddMenuRow(objectText, unSelectPic, "RepeaterZigbeeDirectionForm"); //绌烘皵寮�鍏� - objectText = Language.StringByID(R.MyInternationalizationString.uDeviceModelId4100); + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName25); unSelectPic = "Device/AirSwitchCloudContr.png"; this.AddMenuRow(objectText, unSelectPic, "AirSwitchCloudContrDirectionForm"); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockHistoryLogForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockHistoryLogForm.cs index c309fd3..aeb1f8a 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockHistoryLogForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockHistoryLogForm.cs @@ -34,13 +34,17 @@ /// </summary> private CommonDevice DeviceDoor = null; /// <summary> - /// 妫�绱㈠璞$殑ID(-1:鎵�鏈� 绌哄瓧绗︿覆:鍏朵粬) + /// 妫�绱㈠璞$殑ID(-1:鎵�鏈� -9999:鍏朵粬) /// </summary> private List<string> listSearchUserId = new List<string>() { "-1" }; /// <summary> - /// 妫�绱㈠紑閿佹柟寮忕殑ID(-1:鎵�鏈� 0:瀵嗙爜 15:鎸囩汗 3:IC鍗�) + /// 妫�绱㈠紑閿佹柟寮忕殑ID(-1:鎵�鏈� 0:瀵嗙爜 15:鎸囩汗 3:IC鍗� 9000:甯稿紑妯″紡(鑷畾涔夌殑)) /// </summary> private List<int> listSearchLockId = new List<int>() { -1 }; + /// <summary> + /// 鑾峰彇鍒扮殑鍘嗗彶璁板綍 + /// </summary> + private List<HistoryInfo> listHistoryInfo = null; /// <summary> /// 鍏朵粬娑堟伅鐨勪富閿�,瀹冨瓨鍦ㄥ彟澶栫殑涓�寮犳暟鎹簱琛ㄤ腑 /// </summary> @@ -109,7 +113,7 @@ this.InitTitleSearchControl(); //鍒濆鍖栬褰曞垪琛� - this.InitLogListInfo(); + this.InitLogListInfo(true); } /// <summary> @@ -134,37 +138,38 @@ dateFromControl.DateSelectEvent += (dateValue) => { //鍒濆鍖栬褰曞垪琛� - this.InitLogListInfo(); + this.InitLogListInfo(true); }; var btnTemp = new NormalViewControl(26, 58, true); btnTemp.Y = Application.GetRealHeight(29); - btnTemp.X = Application.GetRealWidth(357); + btnTemp.X = dateFromControl.Right + Application.GetRealWidth(12); btnTemp.TextColor = UserCenterColor.Current.TextGrayColor1; btnTemp.Text = "-"; frameTitle.AddChidren(btnTemp, ChidrenBindMode.NotBind); dateToControl = new DateSelectControl(Language.StringByID(R.MyInternationalizationString.uEndDate)); dateToControl.Y = Application.GetRealHeight(35); - dateToControl.X = Application.GetRealWidth(395); + dateToControl.X = btnTemp.Right + Application.GetRealWidth(12); dateToControl.dateValue = DateTime.Now.ToString("yyyyMMdd"); frameTitle.AddChidren(dateToControl, ChidrenBindMode.NotBind); dateToControl.DateSelectEvent += (dateValue) => { //鍒濆鍖栬褰曞垪琛� - this.InitLogListInfo(); + this.InitLogListInfo(true); }; //绫诲瀷绛涢�� var btnScreening = frameTitle.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uScreeningType), 145); - frameTitle.ChangedChidrenBindMode(btnScreening, ChidrenBindMode.NotBind); btnScreening.TextSize = 12; - + btnScreening.Width = btnScreening.GetRealWidthByText(); + btnScreening.X = frameTitle.Width - Application.GetRealWidth(58) - btnScreening.Width; btnScreening.ButtonClickEvent += (sender, e) => { //鏄剧ず绫诲瀷绛涢�夌晫闈� this.ShowDoorLockScreeningTypeForm(); }; + frameTitle.ChangedChidrenBindMode(btnScreening, ChidrenBindMode.NotBind); //绫诲瀷绛涢�夌殑鍥炬爣 var btnScreeningIcon = new IconViewControl(69); btnScreeningIcon.X = btnScreening.X - Application.GetRealWidth(12) - btnScreeningIcon.IconSize; @@ -188,7 +193,7 @@ listView.BeginHeaderRefreshingAction += () => { //涓嬫媺鍒锋柊 - this.InitLogListInfo(); + this.InitLogListInfo(true); }; } @@ -199,7 +204,8 @@ /// <summary> /// 鍒濆鍖栬褰曞垪琛� /// </summary> - private void InitLogListInfo() + /// <param name="reReadData">鏄惁浠庢柊浠庝簯绔鍙栨暟鎹�</param> + private void InitLogListInfo(bool reReadData) { this.listView.frameTable.RemoveAll(); listView.frameTable.Height = bodyFrameLayout.Height - Application.GetRealHeight(115 - 3); @@ -211,6 +217,12 @@ this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.uFromTimeIsOverToTime)); return; } + if (reReadData == true) + { + //缃┖鍚�,閲嶆柊鑾峰彇 + this.listHistoryInfo = null; + } + HdlThreadLogic.Current.RunThread(async () => { //鎵撳紑杩涘害鏉� @@ -223,8 +235,14 @@ this.CloseProgressBar(ShowReLoadMode.YES); return; } + //鎴愬憳淇℃伅 + var dicMemberName = new Dictionary<string, string>(); + for (int i = 0; i < listMenberInfo.Count; i++) + { + dicMemberName.Add(listMenberInfo[i].SubAccountDistributedMark, string.IsNullOrEmpty(listMenberInfo[i].UserName) == false ? listMenberInfo[i].UserName : listMenberInfo[i].Account); + } //鍘嗗彶璁板綍 - var historyLog = await this.GetHistoryLogInfo(); + var historyLog = await this.GetHistoryLogInfo(dicMemberName); if (historyLog == null) { //鍏抽棴杩涘害鏉� @@ -234,17 +252,12 @@ //鍏抽棴杩涘害鏉� this.CloseProgressBar(); - var dic = new Dictionary<string, string>(); - for (int i = 0; i < listMenberInfo.Count; i++) - { - dic.Add(listMenberInfo[i].SubAccountDistributedMark, string.IsNullOrEmpty(listMenberInfo[i].UserName) == false ? listMenberInfo[i].UserName : listMenberInfo[i].Account); - } HdlThreadLogic.Current.RunMain(() => { for (int i = 0; i < historyLog.Count; i++) { //娣诲姞璁板綍琛� - this.AddLogInfoRow(historyLog[i], dic, i != historyLog.Count - 1); + this.AddLogInfoRow(historyLog[i], dicMemberName, i != historyLog.Count - 1); } //闅愯棌涓嬫媺鍒锋柊鐗规晥 listView.EndHeaderRefreshing(); @@ -335,6 +348,10 @@ Common.LocalDevice.Current.SetDeviceIconToControl(btnIcon, device); } } + else if (historyInfo.OpenLockMode == 9000) + { + btnIcon.UnSelectedImagePath = "Item/NormallyOpen.png"; + } else if (historyInfo.UnlockIsSuccess == true) { btnIcon.UnSelectedImagePath = "Item/UnLockSuccess.png"; @@ -346,7 +363,7 @@ //淇℃伅 var btnMsg = frameTable.AddTopView("", 600); - if (historyInfo.OpenLockMode == -1) + if (historyInfo.OpenLockMode == -1 || historyInfo.OpenLockMode == 9000) { //鍏朵粬娑堟伅 btnMsg.Text = historyInfo.AlarmMsg; @@ -435,7 +452,7 @@ listSearchLockId.Clear(); listSearchLockId.AddRange(selectLock); //鍒濆鍖栬褰曞垪琛� - this.InitLogListInfo(); + this.InitLogListInfo(false); }; } @@ -447,24 +464,18 @@ /// 鑾峰彇鍘嗗彶璁板綍 /// </summary> /// <returns></returns> - private async Task<List<HistoryInfo>> GetHistoryLogInfo() + private async Task<List<HistoryInfo>> GetHistoryLogInfo(Dictionary<string, string> dicMemberName) { - //鑾峰彇璁块棶浜戠鎺ュ彛鐨勫惎鍔ㄥ弬鏁� - var pra = this.GetDbInterfacePra(); - - //娓呯┖涓婁竴娆$殑鍏朵粬ID - this.listOtherMsgId = new List<string>(); - this.listOtherUserId = new List<string>(); - - //鍏ㄩ儴鎴愬憳淇℃伅 - var dicMemberName = new Dictionary<string, string>(); - for (int i = 0; i < listMenberInfo.Count; i++) + if (this.listHistoryInfo != null) { - dicMemberName.Add(listMenberInfo[i].SubAccountDistributedMark, string.IsNullOrEmpty(listMenberInfo[i].UserName) == false ? listMenberInfo[i].UserName : listMenberInfo[i].Account); + //涓嶄簩娆¤幏鍙�,涓昏閽堝鐨勬槸绛涢�夊姛鑳� + return this.ScreeningHistoryData(dicMemberName); } + //鑾峰彇璁块棶浜戠鎺ュ彛鐨勫惎鍔ㄥ弬鏁� + var pra = this.GetReadHistoryPra(); //鑾峰彇闂ㄩ攣鐨勬墦寮�鍜屽叧闂褰� - var listAllLog = await this.GetDoorOpenHistoryLog(pra, dicMemberName); + var listAllLog = await this.GetDoorOpenHistoryLog(pra); //鑾峰彇闂ㄩ攣鐨勫叾浠栬褰� var listOtherLog = await this.GetDoorOtherHistoryLog(pra.UnlockTimeBegin, pra.UnlockTimeEnd); listAllLog.AddRange(listOtherLog); @@ -472,19 +483,9 @@ //鎺掑簭涓�涓� var dicAllData = new Dictionary<string, List<HistoryInfo>>(); var listSortTime = new List<string>(); - //鏄惁鍖呭惈鍏朵粬 - bool getOtherFlage = this.listSearchUserId.Contains(""); + foreach (var data in listAllLog) { - //濡傛灉鍗曠嫭鎸囧畾鏈夎璐﹀彿,鍙互鏄剧ず - if (this.listSearchUserId.Contains(data.CloudAccountId) == false) - { - //濡傛灉杩欎釜璐﹀彿娌℃湁鎸囧畾,骞朵笖鎸囧畾鏄剧ず鍏朵粬鐨勮瘽,骞朵笖鏃犳硶璇嗗埆杩欎釜鐢ㄦ埛ID鎵嶆樉绀� - if (getOtherFlage == true && dicMemberName.ContainsKey(data.CloudAccountId) == true) - { - continue; - } - } //鎸夋椂闂村垎缁� if (dicAllData.ContainsKey(data.UnlockTime) == false) { @@ -496,13 +497,13 @@ //鎵ц鎺掑簭,鏃堕棿澶х殑鍦ㄥ墠闈� listSortTime.Sort(); - var listSortLog = new List<HistoryInfo>(); + this.listHistoryInfo = new List<HistoryInfo>(); for (int i = listSortTime.Count - 1; i >= 0; i--) { - listSortLog.AddRange(dicAllData[listSortTime[i]]); + this.listHistoryInfo.AddRange(dicAllData[listSortTime[i]]); } - - return listSortLog; + //绛涢�夊巻鍙茶褰� + return this.ScreeningHistoryData(dicMemberName); } /// <summary> @@ -510,7 +511,7 @@ /// </summary> /// <param name="i_pra"></param> /// <returns></returns> - private async Task<List<HistoryInfo>> GetDoorOpenHistoryLog(GetHistoryDataPra i_pra, Dictionary<string, string> dicMemberName) + private async Task<List<HistoryInfo>> GetDoorOpenHistoryLog(GetHistoryDataPra i_pra) { var listLog = new List<HistoryInfo>(); @@ -524,16 +525,7 @@ return null; } var dataInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<GetHistoryDataResult>(result); - foreach (var data in dataInfo.PageData) - { - if (dicMemberName.ContainsKey(data.CloudAccountId) == false - && this.listOtherUserId.Contains(data.CloudAccountId) == false) - { - //鏀堕泦鏃犳硶璇嗗埆鐨勭敤鎴稩D - this.listOtherUserId.Add(data.CloudAccountId); - } - listLog.Add(data); - } + listLog.AddRange(dataInfo.PageData); if (dataInfo.HasNextPage == false) { @@ -555,50 +547,154 @@ { var listLog = new List<HistoryInfo>(); - //鏄惁鍖呭惈鍏朵粬 - bool getOtherFlage = this.listSearchUserId.Contains("") || this.listSearchUserId.Contains("-1"); - if (getOtherFlage == true) + //鍘昏幏鍙栧叾浠栦俊鎭� + var pra2 = new MessageInfoPra(); + pra2.BeginTime = beginTime; + pra2.EndTime = endTime; + pra2.Topic = "/Alarms/SendAlarmInform"; + pra2.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); + var result = await UserCenterLogic.GetResponseDataByRequestHttps("MessageCenter/GetMessageCenterPagger", true, pra2); + if (result == null) { - //鍘昏幏鍙栧叾浠栦俊鎭� - var pra2 = new MessageInfoPra(); - pra2.BeginTime = beginTime; - pra2.EndTime = endTime; - pra2.Topic = "/Alarms/SendAlarmInform"; - pra2.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); - var result = await UserCenterLogic.GetResponseDataByRequestHttps("MessageCenter/GetMessageCenterPagger", true, pra2); - if (result == null) + return null; + } + var dataInfo2 = Newtonsoft.Json.JsonConvert.DeserializeObject<MessageCentetInfo>(result); + string doorKey = this.DeviceDoor.DeviceAddr + "_" + this.DeviceDoor.DeviceEpoint; + foreach (var myInfo in dataInfo2.PageData) + { + //璁惧瀵硅薄 + var jobject = Newtonsoft.Json.Linq.JObject.Parse(myInfo.PayloadJson); + string deviceAddr = jobject.Value<string>("DeviceAddr"); + int deviceEpoint = jobject.Value<int>("Epoint"); + if (doorKey != deviceAddr + "_" + deviceEpoint) { - return null; + //涓嶆槸鍚屼竴涓棬閿佺殑璁板綍 + continue; } - var dataInfo2 = Newtonsoft.Json.JsonConvert.DeserializeObject<MessageCentetInfo>(result); - string doorKey = this.DeviceDoor.DeviceAddr + "_" + this.DeviceDoor.DeviceEpoint; - foreach (var myInfo in dataInfo2.PageData) + + var data = new HistoryInfo(); + data.DeviceMac = deviceAddr; + data.DeviceEpoint = deviceEpoint; + //娑堟伅 + var msgInfo = HdlAlarmsLogic.Current.GetDoorLockAlarmInfo(jobject); + data.AlarmMsg = msgInfo != null ? msgInfo.AlarmMsg : Language.StringByID(R.MyInternationalizationString.uDoorLocksAlarmHadTriggered); + //鏃堕棿 + data.UnlockTime = myInfo.CreatedOnUtc; + //涓婚敭 + data.MsgKeyId = myInfo.Id; + //娑堟伅鍖哄垎 + if (msgInfo.MsgDiv == 9000) { - //璁惧瀵硅薄 - var jobject = Newtonsoft.Json.Linq.JObject.Parse(myInfo.PayloadJson); - string deviceAddr = jobject.Value<string>("DeviceAddr"); - int deviceEpoint = jobject.Value<int>("Epoint"); - if (doorKey != deviceAddr + "_" + deviceEpoint) - { - //涓嶆槸鍚屼竴涓棬閿佺殑璁板綍 - continue; - } - - var data = new HistoryInfo(); - data.DeviceMac = deviceAddr; - data.DeviceEpoint = deviceEpoint; - //娑堟伅 - var msgInfo = HdlAlarmsLogic.Current.GetDoorLockAlarmInfo(jobject); - data.AlarmMsg = msgInfo != null ? msgInfo.AlarmMsg : Language.StringByID(R.MyInternationalizationString.uDoorLocksAlarmHadTriggered); - //鏃堕棿 - data.UnlockTime = myInfo.CreatedOnUtc; - - listLog.Add(data); - this.listOtherMsgId.Add(myInfo.Id); + data.OpenLockMode = 9000; } + listLog.Add(data); } return listLog; + } + + #endregion + + #region 鈻� 绛涢�夎褰昣__________________________ + + /// <summary> + /// 绛涢�夊巻鍙茶褰� + /// </summary> + /// <returns></returns> + private List<HistoryInfo> ScreeningHistoryData(Dictionary<string, string> dicMemberName) + { + //鍘嗗彶璁板綍澶夯鐑︿簡,瀛樺湪涓嶅悓鐨勬暟鎹簱琛ㄩ噷,骞朵笖鏁版嵁杩樹笉涓�鏍�,鍙兘杩欐牱涓�涓釜鍒ゆ柇浜� + var listScreeningData = new List<HistoryInfo>(); + //娓呴櫎鎺変箣鍓嶇殑璁板綍 + this.listOtherUserId = new List<string>(); + this.listOtherMsgId = new List<string>(); + + //鏄惁閫夋嫨鍏ㄩ�夌敤鎴� + bool selectAllUser = this.listSearchUserId.Contains("-1"); + //鏄惁鍗曢�変簡鍏朵粬 + bool selectOtherUser = this.listSearchUserId.Contains("-9999"); + //鏄惁閫夋嫨鍏ㄩ�夊紑閿佹柟寮� + bool selectAllLockMode = this.listSearchLockId.Contains(-1); + + //涓�涓釜鍘婚亶鍘� + foreach (var data in this.listHistoryInfo) + { + //妫�娴嬭鍘嗗彶璁板綍鑳藉惁鏄剧ず + bool result = this.CheckHistoryDataCanShow(data, dicMemberName, selectAllUser, selectOtherUser, selectAllLockMode); + if (result == true) + { + listScreeningData.Add(data); + } + } + + return listScreeningData; + } + + /// <summary> + /// 妫�娴嬭鍘嗗彶璁板綍鑳藉惁鏄剧ず + /// </summary> + /// <param name="info">妫�娴嬪璞�</param> + /// <param name="dicMemberName">鎴愬憳淇℃伅</param> + /// <param name="selectAllUser">鏄惁閫夋嫨鍏ㄩ�夌敤鎴�</param> + /// <param name="selectOtherUser">鏄惁鍗曢�変簡鍏朵粬</param> + /// <param name="slectAllLockMode">鏄惁閫夋嫨鍏ㄩ�夊紑閿佹柟寮�</param> + private bool CheckHistoryDataCanShow(HistoryInfo info, Dictionary<string, string> dicMemberName, + bool selectAllUser, bool selectOtherUser, bool slectAllLockMode) + { + //濡傛灉娌℃湁閫夋嫨 鍏ㄩ�夌敤鎴� + if (selectAllUser == false) + { + //濡傛灉杩欎釜鐢ㄦ埛ID涓嶅寘鍚湪鎸囧畾閫夋嫨鐨勬垚鍛樺垪琛ㄩ噷闈� + if (this.listSearchUserId.Contains(info.CloudAccountId) == false) + { + if (dicMemberName.ContainsKey(info.CloudAccountId) == true) + { + //濡傛灉鑳藉璇嗗埆杩欎釜id鐨勮瘽,鍒欒〃绀哄畠涓嶅睘浜庡叾浠栫被,骞朵笖涔熶笉鍐嶉�夋嫨鐩爣鍐� + return false; + } + //濡傛灉娌℃湁閫夋嫨 鍏朵粬鐨勮瘽,涓嶆樉绀� + if (selectOtherUser == false) + { + return false; + } + } + } + //濡傛灉鏄垚鍛樿韩浠�,骞朵笖鐢ㄦ埛ID涓嶄负绌� + if (UserCenterResourse.UserInfo.AuthorityNo == 3 && info.CloudAccountId != string.Empty) + { + //鎴愬憳涓嶈兘鐪嬪埌 鍏朵粬浜虹殑璁板綍(鎴愬憳鐨勬椂鍊�,杩欎釜鍙橀噺閲岄潰鍙湁浠栬嚜宸变竴涓�) + if (dicMemberName.ContainsKey(info.CloudAccountId) == false) + { + return false; + } + } + //濡傛灉娌℃湁閫夋嫨 鍏ㄩ�夊紑閿佹柟寮� + if (slectAllLockMode == false) + { + //濡傛灉杩欎釜寮�閿佹柟寮忎笉鍦ㄩ�夋嫨鐨勫垪琛ㄩ噷闈㈢殑璇� + if (this.listSearchLockId.Contains(info.OpenLockMode) == false) + { + return false; + } + } + + //鍙︿竴寮犺〃鐨勬暟鎹富閿� + if (info.OpenLockMode == -1 || info.OpenLockMode == 9000) + { + if (info.MsgKeyId != string.Empty) + { + //鍏朵粬娑堟伅鐨勪富閿�,瀹冨瓨鍦ㄥ彟澶栫殑涓�寮犳暟鎹簱琛ㄤ腑 + this.listOtherMsgId.Add(info.MsgKeyId); + } + } + if (info.CloudAccountId != string.Empty && dicMemberName.ContainsKey(info.CloudAccountId) == false + && this.listOtherUserId.Contains(info.CloudAccountId) == false) + { + //鏃犳硶璇嗗埆鐨勫紑閿佽褰曠殑鐢ㄦ埛ID(鍥犱负閭d釜瀵嗙爜鏈夊彲鑳芥病鏈夊垎閰嶇粰鎴愬憳) + this.listOtherUserId.Add(info.CloudAccountId); + } + + return true; } #endregion @@ -611,28 +707,10 @@ private async void ClearAllHistoryLog() { //鑾峰彇璁块棶浜戠鎺ュ彛鐨勫惎鍔ㄥ弬鏁� - var pra = this.GetDbInterfacePra(); - if (listSearchUserId.Contains("") == true) - { - //濡傛灉鎸囧畾鏈夊叾浠�,鍒欑敤鎴稩D閲嶆柊璁剧疆 - pra.CloudAccountIdArr = new List<string>(); - pra.CloudAccountIdArr.AddRange(listSearchUserId); - pra.CloudAccountIdArr.Remove(""); - if (this.listOtherUserId.Count > 0) - { - pra.CloudAccountIdArr.AddRange(listOtherUserId); - } - else - { - //杩欎竴姝ュ緢閲嶈,涓嶇劧鏈夊彲鑳藉崟鐙�夋嫨鍏朵粬鐨勬椂鍊� - //鍦ㄦ病鏈夋暟鎹殑鎯呭喌涓�,浼氭竻绌烘帀鍏ㄩ儴鐨勬暟鎹� - pra.CloudAccountIdArr.Add("other"); - } - } + var pra = this.GetDeleteDataPra(); //鎵撳紑杩涘害鏉� this.ShowProgressBar(); - var result = await UserCenterLogic.GetResultStatuByRequestHttps("DoorLock/ClearDoorLockHistory", true, pra); if (result == false) { @@ -663,6 +741,9 @@ //娓呯┖ this.listOtherMsgId = new List<string>(); + this.listOtherUserId = new List<string>(); + this.listHistoryInfo = null; + HdlThreadLogic.Current.RunMain(() => { this.listView.frameTable.RemoveAll(); @@ -678,24 +759,41 @@ /// 鑾峰彇璁块棶浜戠鎺ュ彛鐨勫惎鍔ㄥ弬鏁� /// </summary> /// <returns></returns> - private GetHistoryDataPra GetDbInterfacePra() + private GetHistoryDataPra GetReadHistoryPra() + { + DateTime dateFrom = new DateTime(dateFromControl.Year, dateFromControl.Month, dateFromControl.Day, 0, 0, 0); + DateTime dateTo = new DateTime(dateToControl.Year, dateToControl.Month, dateToControl.Day, 23, 59, 59); + + //鍏ㄩ儴璇诲彇 + var pra = new GetHistoryDataPra(); + pra.UnlockTimeBegin = dateFrom.ToUniversalTime().ToString(); + pra.UnlockTimeEnd = dateTo.ToUniversalTime().ToString(); + pra.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); + pra.DoorLockId = this.DeviceDoor.DeviceAddr + "_" + this.DeviceDoor.DeviceEpoint; + + return pra; + } + + /// <summary> + /// 鑾峰彇鍒犻櫎鏁版嵁鐨勪簯绔帴鍙g殑鍚姩鍙傛暟 + /// </summary> + /// <returns></returns> + private DeleteHistoryDataPra GetDeleteDataPra() { DateTime dateFrom = new DateTime(dateFromControl.Year, dateFromControl.Month, dateFromControl.Day, 0, 0, 0); DateTime dateTo = new DateTime(dateToControl.Year, dateToControl.Month, dateToControl.Day, 23, 59, 59); List<string> listUser = null; - //涓�鏃︽寚瀹氫簡鍏朵粬,鍒欓渶瑕佸叏閮ㄨ鍙�,鍥犱负鏈変簺寮�閿侊紝瀹冪敤鐨勫瘑鐮佸苟娌℃湁鍒嗛厤缁欐垚鍛� - if (listSearchUserId.Contains("-1") == true || listSearchUserId.Contains("") == true) + //鎸囧畾鐢ㄦ埛 + if (listSearchUserId.Contains("-1") == false) { - //鍏ㄩ�夊嵆涓篘ull - } - else - { - //鎸囧畾鐢ㄦ埛 listUser = new List<string>(); listUser.AddRange(listSearchUserId); - //绉婚櫎鍏朵粬,鍥犱负浜戠鍥哄畾浼氱粰 - listUser.Remove(""); + //濡傛灉鎸囧畾鏈夊叾浠� + if (listSearchUserId.Contains("-9999") == true) + { + listUser.AddRange(this.listOtherUserId); + } } //鍏ㄩ�夊垯涓簄ull @@ -706,13 +804,13 @@ listLock.AddRange(listSearchLockId); } - var pra = new GetHistoryDataPra(); + var pra = new DeleteHistoryDataPra(); pra.UnlockTimeBegin = dateFrom.ToUniversalTime().ToString(); pra.UnlockTimeEnd = dateTo.ToUniversalTime().ToString(); pra.LoginAccessToken = UserCenterLogic.GetConnectMainToken(); pra.DoorLockId = this.DeviceDoor.DeviceAddr + "_" + this.DeviceDoor.DeviceEpoint; - pra.CloudAccountIdArr = listUser; - pra.OpenLockModeArr = listLock; + pra.CloudAccountIds = listUser; + pra.OpenLockModes = listLock; return pra; } @@ -784,12 +882,51 @@ } /// <summary> + /// 鍒犻櫎鍘嗗彶璁板綍鏁版嵁 + /// </summary> + private class DeleteHistoryDataPra : IfacePraCommon + { + /// <summary> + /// RequestVersion + /// </summary> + public string RequestVersion = Common.CommonPage.RequestVersion; + /// <summary> + /// Token + /// </summary> + public string LoginAccessToken = string.Empty; + /// <summary> + /// 浣忓畢ID + /// </summary> + public string HomeId = Common.Config.Instance.Home.Id; + /// <summary> + /// 闂ㄩ攣鐨凪ac鍦板潃 + /// </summary> + public string DoorLockId = string.Empty; + /// <summary> + /// Config.Instance.Guid 鎴栬�� MemberInfoRes.SubAccountDistributedMark + /// </summary> + public List<string> CloudAccountIds = null; + /// <summary> + /// 寮�閿佹柟寮�(0:瀵嗙爜銆�15:鎸囩汗銆�3:IC鍗�) + /// </summary> + public List<int> OpenLockModes = null; + /// <summary> + /// 鎼滅储寮�閿佸紑濮嬫椂闂� + /// </summary> + public string UnlockTimeBegin; + /// <summary> + /// 鎼滅储寮�閿佺粨鏉熸椂闂� + /// </summary> + public string UnlockTimeEnd; + } + + /// <summary> /// 鍘嗗彶璁板綍鐨勭粨鏋� /// </summary> private class HistoryInfo { /// <summary> - /// 寮�閿佹柟寮� 0:瀵嗙爜 15:鎸囩汗 3:IC鍗� + /// 寮�閿佹柟寮� 0:瀵嗙爜 15:鎸囩汗 3:IC鍗� 9000:甯稿紑妯″紡(鑷畾涔夌殑) /// </summary> public int OpenLockMode = -1; /// <summary> @@ -816,6 +953,10 @@ /// 褰撳紑閿佹柟寮忎负-1鏃朵娇鐢�,璁惧绔偣 /// </summary> public int DeviceEpoint = 0; + /// <summary> + /// 褰撳紑閿佹柟寮忎负-1鏃朵娇鐢�,娑堟伅鐨勬暟鎹簱涓婚敭 + /// </summary> + public string MsgKeyId = string.Empty; } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockScreeningTypeForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockScreeningTypeForm.cs index 90cfa37..0bdf308 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockScreeningTypeForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DoorLock/DoorLockScreeningTypeForm.cs @@ -16,19 +16,19 @@ /// </summary> public Action<List<string>, List<int>> FinishSelectEvent = null; /// <summary> - /// 褰撳墠閫夋嫨鐢ㄦ埛 + /// 褰撳墠閫夋嫨鐢ㄦ埛((-1:鎵�鏈� -9999:鍏朵粬)) /// </summary> private List<string> listSelectUser = new List<string>(); /// <summary> - /// 褰撳墠閫夋嫨鐨勫紑閿佹柟寮� + /// 褰撳墠閫夋嫨鐨勫紑閿佹柟寮�(-1:鎵�鏈� 0:瀵嗙爜 15:鎸囩汗 3:IC鍗� 9000:甯稿紑妯″紡(鑷畾涔夌殑)) /// </summary> private List<int> listSelectLock = new List<int>(); /// <summary> - /// 鍓嶅洖鐨勯�夋嫨鐢ㄦ埛 + /// 鍓嶅洖鐨勯�夋嫨鐢ㄦ埛(閲嶇疆閫夐」涓撶敤) /// </summary> private List<string> listOldSelectUser = new List<string>(); /// <summary> - /// 鍓嶅洖鐨勯�夋嫨寮�閿佹柟寮� + /// 鍓嶅洖鐨勯�夋嫨寮�閿佹柟寮�(閲嶇疆閫夐」涓撶敤) /// </summary> private List<int> listOldSelectLock = new List<int>(); @@ -176,7 +176,7 @@ dicUser.Add(keys, i_dicUser[keys]); } //鍏朵粬 - dicUser.Add("", Language.StringByID(R.MyInternationalizationString.uOther)); + dicUser.Add("-9999", Language.StringByID(R.MyInternationalizationString.uOther)); //閫夋嫨鐢ㄦ埛 var btnTitle = new NormalViewControl(600, 58, true); @@ -289,6 +289,13 @@ btnCard.TextID = R.MyInternationalizationString.uIcCard; btnCard.Name = "3"; frameDetail.AddChidren(btnCard); + + //甯稿紑妯″紡 + var btnNormallyOpen = this.InitLockSelectButton(listSelectLock.Contains(9000)); + btnNormallyOpen.Y = btnAll.Bottom + Application.GetRealWidth(29); + btnNormallyOpen.TextID = R.MyInternationalizationString.uNormallyOpenMode; + btnNormallyOpen.Name = "9000"; + frameDetail.AddChidren(btnNormallyOpen); } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelButtonSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelButtonSettionForm.cs index 37de610..390b7e9 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelButtonSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelButtonSettionForm.cs @@ -15,7 +15,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 褰撳墠閫夋嫨鐨勮澶� /// </summary> @@ -79,12 +79,16 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� this.tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028); //鍒濆鍖栬澶囧洖璺浘鏍� - this.InitDeviceEpointIcon(); + this.InitDeviceEpointIcon(listBackControl); //淇濆瓨 var btnFinish = new BottomClickButton(); @@ -185,7 +189,7 @@ this.AddVibrationFeedbackRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); } #endregion @@ -396,7 +400,7 @@ /// <summary> /// 鍒濆鍖栬澶囧洖璺浘鏍� /// </summary> - private void InitDeviceEpointIcon() + private void InitDeviceEpointIcon(VerticalFrameControl listBackControl) { bool hadDevice = false; var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceObj.DeviceAddr); @@ -433,8 +437,8 @@ frameBorder.Y = Application.GetRealHeight(150); frameBorder.Gravity = Gravity.CenterHorizontal; frameBorder.Width = Application.GetMinRealAverage(426); - frameBorder.Height = Application.GetMinRealAverage(426); - bodyFrameLayout.AddChidren(frameBorder); + frameBorder.Height = Application.GetMinRealAverage(426); + listBackControl.frameTable.AddChidren(frameBorder); var btnPic = new PicViewControl(frameBorder.Width, frameBorder.Height, false); btnPic.UnSelectedImagePath = "DeviceItem/PanelTable.png"; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueButtonSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueButtonSettionForm.cs index 9c1b5b4..514859d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueButtonSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueButtonSettionForm.cs @@ -16,7 +16,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 褰撳墠閫夋嫨鐨勮澶� /// </summary> @@ -72,12 +72,16 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� this.tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028); //鍒濆鍖栬澶囧洖璺浘鏍� - this.InitDeviceEpointIcon(); + this.InitDeviceEpointIcon(listBackControl); //淇濆瓨 var btnFinish = new BottomClickButton(); @@ -176,7 +180,7 @@ this.AddBackLightRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); } #endregion @@ -300,7 +304,7 @@ /// <summary> /// 鍒濆鍖栬澶囧洖璺浘鏍� /// </summary> - private void InitDeviceEpointIcon() + private void InitDeviceEpointIcon(VerticalFrameControl listBackControl) { bool hadDevice = false; var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceObj.DeviceAddr); @@ -338,7 +342,7 @@ frameBorder.Gravity = Gravity.CenterHorizontal; frameBorder.Width = Application.GetMinRealAverage(426); frameBorder.Height = Application.GetMinRealAverage(426); - bodyFrameLayout.AddChidren(frameBorder); + listBackControl.frameTable.AddChidren(frameBorder); var btnPic = new PicViewControl(frameBorder.Width, frameBorder.Height, false); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueEnvironmentButtonSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueEnvironmentButtonSettionForm.cs index ffaf75f..40c2040 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueEnvironmentButtonSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueEnvironmentButtonSettionForm.cs @@ -15,7 +15,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 璁惧鐨勬煇涓�鍥炶矾 /// </summary> @@ -51,22 +51,26 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍥剧墖 var btnPic = new PicViewControl(426, 426); btnPic.Y = Application.GetRealHeight(150); btnPic.UnSelectedImagePath = "DeviceItem/ButtonPanelFangyueEnvironmentBigPic.png"; btnPic.Gravity = Gravity.CenterHorizontal; - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028); //鍒濆鍖栬彍鍗曡 this.InitMenuRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; //淇濆瓨 diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs index cc5d10d..a2c97bb 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs @@ -78,10 +78,10 @@ //娣诲姞灞忓箷浜害绾у埆鎺т欢 this.AddScreenBrightnesLevelControl(); - //娣诲姞鑳屽厜鐏寒搴︽帶浠� - this.AddBackLightControl(); - - this.FinishInitControl(listview, energyModeInfo.enable); + //娣诲姞鑳屽厜鐏寒搴︽帶浠躲�愭殏鏃朵笉闇�瑕侊紝鍙兘鍚庢湡鏂伴闈㈡澘鐨勮繖涓鑹茶琛ュ洖鏉ャ�� + //this.AddBackLightControl(); + //銆愭殏鏃朵笉闇�瑕侊紝鍙兘鍚庢湡鏂伴闈㈡澘鐨勮繖涓鑹茶琛ュ洖鏉ャ�� + //this.FinishInitControl(listview, energyModeInfo.enable); //淇濆瓨 var btnSave = new BottomClickButton(); @@ -155,7 +155,6 @@ seekBar1.ProgressChangedEvent += (div, value) => { btnProgress1.Text = value.ToString(); - //鏁版嵁鍙樻洿 }; //seekBar1.Progress = linghtLevelInfo.panelBacklightLevel; @@ -523,12 +522,12 @@ } //浜害璋冭妭鏇存敼(浠栦滑璇撮殢渚夸竴涓洖璺氨琛�) - //var result = await HdlDevicePanelLogic.Current.SetDeviceLightSettion(panelDevice, linghtLevelInfo.panelDirectionsLevel, linghtLevelInfo.panelBacklightLevel); - //if (result == false) - //{ - // this.CloseProgressBar(); - // return; - //} + result = await HdlDevicePanelLogic.Current.SetDeviceLightSettion(panelDevice, linghtLevelInfo.panelDirectionsLevel, linghtLevelInfo.panelBacklightLevel); + if (result == false) + { + this.CloseProgressBar(); + return; + } //璁剧疆鎸夐敭闈㈡澘鎸囧畾绔偣鐨勩�愭寚绀虹伅寮�鍏抽鑹层�戠殑淇℃伅 //result = await HdlDevicePanelLogic.Current.SetPanelEpointColorInfo(panelDevice, this.keyColorData); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs index c4a3719..1ed5f98 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs @@ -13,7 +13,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 璁惧鐨勬煇涓�鍥炶矾 /// </summary> @@ -48,22 +48,26 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍥剧墖 var btnPic = new PicViewControl(426, 426); btnPic.Y = Application.GetRealHeight(150); btnPic.UnSelectedImagePath = "RealDevice/ButtonPanelFangyueFreshAir.png"; btnPic.Gravity = Gravity.CenterHorizontal; - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028); //鍒濆鍖栬彍鍗曡 this.InitMenuRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; //淇濆瓨 diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs index 4be90e7..91d1c6f 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs @@ -202,10 +202,18 @@ DeviceSimpleSelectControl oldSelectContr = null; var listDevice = this.dicShowDevice[roomId]; //妫�鏌ョ鍚堢殑璁惧 - - for (int i = 0; i < listDevice.Count; i++) + List<CommonDevice> listSupportDevice = new List<CommonDevice> { }; + foreach (var dev in listDevice) { - string mainKey = Common.LocalDevice.Current.GetDeviceMainKeys(listDevice[i]); + if (dev.Type == DeviceType.FreshAir) + { + listSupportDevice.Add(dev); + } + } + + for (int i = 0; i < listSupportDevice.Count; i++) + { + string mainKey = Common.LocalDevice.Current.GetDeviceMainKeys(listSupportDevice[i]); var contr = new DeviceSimpleSelectControl(listDevice[i], false, this.listView.rowSpace / 2); listView.AddChidren(contr); contr.InitControl(); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFunctionSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFunctionSettionForm.cs index 4bfeba7..dce3ae5 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFunctionSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFunctionSettionForm.cs @@ -15,7 +15,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 褰撳墠閫夋嫨鐨勮澶� /// </summary> @@ -75,12 +75,16 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� this.tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028); //鍒濆鍖栬澶囧洖璺浘鏍� - this.InitDeviceEpointIcon(); + this.InitDeviceEpointIcon(listBackControl); //淇濆瓨 var btnFinish = new BottomClickButton(); @@ -204,7 +208,7 @@ //娣诲姞鍔熻兘绫诲瀷琛� this.AddFunctionTypeRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); } #endregion @@ -359,7 +363,7 @@ /// <summary> /// 鍒濆鍖栬澶囧洖璺浘鏍� /// </summary> - private void InitDeviceEpointIcon() + private void InitDeviceEpointIcon(VerticalFrameControl listBackControl) { bool hadDevice = false; var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceObj.DeviceAddr); @@ -398,7 +402,7 @@ frameBorder.Gravity = Gravity.CenterHorizontal; frameBorder.Width = Application.GetMinRealAverage(426); frameBorder.Height = Application.GetMinRealAverage(426); - bodyFrameLayout.AddChidren(frameBorder); + listBackControl.frameTable.AddChidren(frameBorder); var btnPic = new PicViewControl(frameBorder.Width, frameBorder.Height, false); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFunctionSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFunctionSettionForm.cs index afd919d..cde8171 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFunctionSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFunctionSettionForm.cs @@ -15,7 +15,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 褰撳墠閫夋嫨鐨勮澶� /// </summary> @@ -75,12 +75,16 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� this.tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028); //鍒濆鍖栬澶囧洖璺浘鏍� - this.InitDeviceEpointIcon(); + this.InitDeviceEpointIcon(listBackControl); //淇濆瓨 var btnFinish = new BottomClickButton(); @@ -204,7 +208,7 @@ //娣诲姞鍔熻兘绫诲瀷琛� this.AddFunctionTypeRow(); //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); } #endregion @@ -359,7 +363,7 @@ /// <summary> /// 鍒濆鍖栬澶囧洖璺浘鏍� /// </summary> - private void InitDeviceEpointIcon() + private void InitDeviceEpointIcon(VerticalFrameControl listBackControl) { bool hadDevice = false; var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceObj.DeviceAddr); @@ -398,7 +402,7 @@ frameBorder.Gravity = Gravity.CenterHorizontal; frameBorder.Width = Application.GetMinRealAverage(426); frameBorder.Height = Application.GetMinRealAverage(426); - bodyFrameLayout.AddChidren(frameBorder); + listBackControl.frameTable.AddChidren(frameBorder); var btnPic = new PicViewControl(frameBorder.Width, frameBorder.Height, false); btnPic.UnSelectedImagePath = "DeviceItem/PanelTable.png"; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs index 29fe305..7c3b7e4 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorBindTargetSettionForm.cs @@ -369,23 +369,26 @@ } } - //寤舵椂 - string strMinute = string.Empty; - if (pirConfigure.transitionTime / 60 > 0) + //寤舵椂(鍗婅嚜鍔ㄦ病鏈夊欢鏃剁殑姒傚康) + if (this.pirConfigure.mode == 1) { - strMinute = pirConfigure.transitionTime / 60 + Language.StringByID(R.MyInternationalizationString.uMinute); + string strMinute = string.Empty; + if (pirConfigure.transitionTime / 60 > 0) + { + strMinute = pirConfigure.transitionTime / 60 + Language.StringByID(R.MyInternationalizationString.uMinute); + } + string strSecond = pirConfigure.transitionTime % 60 + Language.StringByID(R.MyInternationalizationString.uSecond); + var rowDelay = new FrameRowControl(listView.rowSpace / 2); + rowDelay.LeftOffset = Application.GetRealWidth(138) - ControlCommonResourse.XXLeft; + frameResult.AddChidren(rowDelay); + rowDelay.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uDelayed), 300); + rowDelay.AddRightArrow(); + var btnDelayView = rowDelay.AddMostRightView(strMinute + strSecond, 700); + rowDelay.ButtonClickEvent += (sender, e) => + { + this.ShowDelayListTime(btnDelayView); + }; } - string strSecond = pirConfigure.transitionTime % 60 + Language.StringByID(R.MyInternationalizationString.uSecond); - var rowDelay = new FrameRowControl(listView.rowSpace / 2); - rowDelay.LeftOffset = Application.GetRealWidth(138) - ControlCommonResourse.XXLeft; - frameResult.AddChidren(rowDelay); - rowDelay.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uDelayed), 300); - rowDelay.AddRightArrow(); - var btnDelayView = rowDelay.AddMostRightView(strMinute + strSecond, 700); - rowDelay.ButtonClickEvent += (sender, e) => - { - this.ShowDelayListTime(btnDelayView); - }; //淇濆瓨 var btnSave = new BottomClickButton(); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs index a48780e..c4fca7a 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/PirSensor/PirSensorWorkModeMenuForm.cs @@ -241,8 +241,8 @@ { //鎵撳紑杩涘害鏉� this.ShowProgressBar(); - - //鑾峰彇鐏厜鐨勯厤缃俊鎭� + + //鑾峰彇PIR浼犳劅鍣ㄧ殑銆愰厤缃俊鎭�� this.pirConfigure = await HdlDevicePirSensorLogic.Current.GetPirSensorLightSettion(this.iASZone); if (pirConfigure == null) { diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonLayout.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonLayout.cs index a589934..8574e46 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonLayout.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonLayout.cs @@ -341,9 +341,9 @@ /// </summary> /// <param name="doorLock">闂ㄩ攣璁惧</param> /// <param name="action">浜屾楠岃瘉鐨勭粨鏋滄垚鍔熷悗鐨勯�氱煡</param> - public static void SecurityRequest(ZigBee.Device.DoorLock doorLock, Action action) + public static void SecurityRequest(ZigBee.Device.DoorLock doorLock) { - string msg = Language.StringByID(R.MyInternationalizationString.GoPersonalCenter).Replace("{0}", "\r\n"); + string msg = Language.StringByID(R.MyInternationalizationString.SetSecondarySecurityVerificationMode).Replace("{0}", "\r\n"); var alert = new ShowDoorLockMsgControl(ShowDoorLockMsgControl.DoorLockMsgType.Confirm, msg, Language.StringByID(R.MyInternationalizationString.GoSetting)); alert.Show(); //浣跨敤纭鍨嬪脊妗嗘椂,鐨勫洖璋冨嚱鏁� @@ -359,15 +359,16 @@ /// </summary> /// <param name="doorLock"></param> /// <param name="btnDoorLockTitle"></param> - public void BindRemoteUnlockDoorlock(ZigBee.Device.DoorLock doorLock, Button btnDoorLockTitle = null) + public void BindRemoteUnlockDoorlock(Room room, CommonDevice devDoorLock, Button btnDoorLockTitle = null) { + ZigBee.Device.DoorLock doorLock = devDoorLock as ZigBee.Device.DoorLock; string msgRemoteUnlockRequest = Language.StringByID(R.MyInternationalizationString.BindRemoteUnlockDoorlock); var alertRemoteUnlockRequest = new ShowDoorLockMsgControl(ShowDoorLockMsgControl.DoorLockMsgType.Confirm, msgRemoteUnlockRequest, Language.StringByID(R.MyInternationalizationString.GoSetting)); alertRemoteUnlockRequest.Show(); //浣跨敤纭鍨嬪脊妗嗘椂,鐨勫洖璋冨嚱鏁� alertRemoteUnlockRequest.ConfirmClickEvent += () => { - var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); + var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(room, devDoorLock); Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; functionSetting.Show(); @@ -385,7 +386,7 @@ } /// <summary> - /// 绯荤粺浜屾纭绐楀彛 + /// 鍘讳釜浜轰腑蹇冿紝寮�鍚繙绋嬪紑閿侀獙璇� /// </summary> public void SystemSecondAuthentication() { @@ -407,11 +408,12 @@ /// <param name="action">浜屾楠岃瘉鐨勭粨鏋滄垚鍔熷悗鐨勯�氱煡</param> /// <param name="progressButton">闂ㄩ攣寮�鎴栧叧鏃惰繘搴︽樉绀�</param> /// <param name="btnDoorLockPic">闂ㄩ攣鍥剧墖寮�/鍏虫樉绀�</param> - public void RemoteUnlockRequest(ZigBee.Device.DoorLock doorLock, Action action, Button progressButton = null, Button btnDoorLockPic = null, Button btnStatus = null, Button btnDoorLockTitle = null) + public void RemoteUnlockRequest(Room room, CommonDevice devDoorLock, Action action, Button progressButton = null, Button btnDoorLockPic = null, Button btnStatus = null, Button btnDoorLockTitle = null) { + ZigBee.Device.DoorLock doorLock = devDoorLock as ZigBee.Device.DoorLock; if (string.IsNullOrEmpty(doorLock.RemoteUnlockPassword)) { - BindRemoteUnlockDoorlock(doorLock, btnDoorLockTitle); + BindRemoteUnlockDoorlock(room, devDoorLock, btnDoorLockTitle); return; } @@ -499,7 +501,7 @@ { this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.DoorlockPasswordDispear)); doorLock.RemoteUnlockPassword = ""; - var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); + var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(room, devDoorLock); Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; functionSetting.Show(); @@ -544,6 +546,7 @@ } }); }; + HdlCheckLogic.Current.CheckSecondarySecurity(action); }; } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs index d91ff33..de24e88 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/FunctionSetting.cs @@ -1,6 +1,7 @@ 锘縰sing System; using System.Collections.Generic; using Shared.Common; +using Shared.Phone.UserView; using ZigBee.Device; namespace Shared.Phone.UserCenter.DoorLock @@ -12,10 +13,11 @@ /// 鏋勯�犲嚱鏁� /// </summary> /// <param name="doorLock"></param> - public FunctionSetting(ZigBee.Device.DoorLock doorLock) + public FunctionSetting(Room room, CommonDevice doorLock) { - //闂�� - this.doorLock = doorLock; + this.doorLock = doorLock as ZigBee.Device.DoorLock; + currentRoom = room; + deviceUI = doorLock; listNewDevice.Add(doorLock); BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor; } @@ -23,6 +25,14 @@ #region 鍙橀噺鐢虫槑 public ZigBee.Device.DoorLock doorLock = null; + /// <summary> + /// 褰撳墠鎴块棿 + /// </summary> + Room currentRoom; + /// <summary> + /// 璁惧UI瀵硅薄 + /// </summary> + CommonDevice deviceUI; /// <summary> /// 璁惧闇�瑕佷繚瀛樼殑璁惧鍚嶅瓧 /// </summary> @@ -63,6 +73,11 @@ EventHandler<MouseEventArgs> eHandlerBack = (sender, e) => { RemoveFromParent(); + + var userDoorLockPage = new UserDoorLockPage(currentRoom, deviceUI); + HomePage.Instance.AddChidren(userDoorLockPage); + HomePage.Instance.PageIndex += 1; + userDoorLockPage.Show(); }; this.btnBack.MouseUpEventHandler += eHandlerBack; this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack; @@ -287,7 +302,7 @@ }; actionNone = async () => { - Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock, action); + Shared.Phone.UserCenter.DoorLock.DoorLockCommonLayout.SecurityRequest(doorLock); }; HdlCheckLogic.Current.CheckSecondarySecurity(action, actionNone); }; @@ -472,6 +487,16 @@ } } #endregion + + #region 绉婚櫎鏂规硶 + /// <summary> + /// 閲嶅啓绉婚櫎鏂规硶 + /// </summary> + public override void RemoveFromParent() + { + base.RemoveFromParent(); + } + #endregion } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TimeSettignPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TimeSettignPage.cs index 2289e47..5c95989 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TimeSettignPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/TimeSettignPage.cs @@ -447,7 +447,14 @@ } if (gwZone.Contains('+')) { - zoneText = EastZoneList(num - 1); + if (num == 0) + { + zoneText = Language.StringByID(R.MyInternationalizationString.CurZoneText0); + } + else + { + zoneText = EastZoneList(num - 1); + } } else if (gwZone.Contains('-')) { diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs index 50ddc77..bf61365 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs @@ -207,8 +207,8 @@ btnFuncSet = new Button { X = Application.GetRealWidth(103), - Height = Application.GetRealHeight(69), - Width = Application.GetRealWidth(69), + Height = Application.GetMinReal(69), + Width = Application.GetMinReal(69), UnSelectedImagePath = "DoorLock/SettingIcon.png", }; btnFuncSetFrameLayout.AddChidren(btnFuncSet); @@ -269,8 +269,8 @@ midTopFrameLayout.AddChidren(btnRecordFrameLayout); btnRecord = new Button() { - Width = Application.GetRealWidth(69), - Height = Application.GetRealHeight(69), + Width = Application.GetMinReal(69), + Height = Application.GetMinReal(69), X = Application.GetRealWidth(46), Y = Application.GetRealHeight(46), UnSelectedImagePath = "DoorLock/RecordIcon.png", @@ -287,8 +287,8 @@ midTopFrameLayout.AddChidren(btnCollectFrameLayout); btnCollect = new Button() { - Width = Application.GetRealWidth(69), - Height = Application.GetRealHeight(69), + Width = Application.GetMinReal(69), + Height = Application.GetMinReal(69), X = Application.GetRealWidth(15), Y = Application.GetRealHeight(46), UnSelectedImagePath = "Item/Collection.png", @@ -329,8 +329,8 @@ //闂ㄩ攣寮�/鍏冲浘鐗� btnDoorLockPic = new Button() { - Width = Application.GetRealWidth(383), - Height = Application.GetRealHeight(343), + Width = Application.GetMinReal(383), + Height = Application.GetMinReal(343), X = Application.GetRealWidth(161), Y = Application.GetRealHeight(415), UnSelectedImagePath = "DoorLock/DoorLockPicClose.png", @@ -378,8 +378,8 @@ progressButton = new Button() { - Width = Application.GetRealWidth(84),//639-35 - Height = Application.GetRealHeight(93), + Width = Application.GetMinReal(84),//639-35 + Height = Application.GetMinReal(93), X = Application.GetRealWidth(58), Y = Application.GetRealHeight(347), UnSelectedImagePath = "DoorLock/UnLockButton.png", @@ -388,8 +388,8 @@ btnDoorOpenPic = new Button() { - Width = Application.GetRealWidth(81), - Height = Application.GetRealHeight(81), + Width = Application.GetMinReal(81), + Height = Application.GetMinReal(81), X = Application.GetRealWidth(164), Y = Application.GetRealHeight(6), UnSelectedImagePath = "DoorLock/DoorLockOpen.png", @@ -398,8 +398,8 @@ btnDoorClosePic = new Button() { - Width = Application.GetRealWidth(81), - Height = Application.GetRealHeight(81), + Width = Application.GetMinReal(81), + Height = Application.GetMinReal(81), X = Application.GetRealWidth(164), Y = Application.GetRealHeight(117), UnSelectedImagePath = "DoorLock/DoorLockClose.png", @@ -410,8 +410,8 @@ //鐢甸噺 btnPower = new Button() { - Width = Application.GetRealWidth(81), - Height = Application.GetRealHeight(81), + Width = Application.GetMinReal(81), + Height = Application.GetMinReal(81), X = Application.GetRealWidth(253), Y = Application.GetRealHeight(994), UnSelectedImagePath = "DoorLock/PowerOffline.png", @@ -429,8 +429,8 @@ midTopFrameLayout.AddChidren(btnVolumeFrameLayout); btnVolume = new Button() { - Width = Application.GetRealWidth(81), - Height = Application.GetRealHeight(81), + Width = Application.GetMinReal(81), + Height = Application.GetMinReal(81), X = Application.GetRealWidth(40), Y = Application.GetRealHeight(40), UnSelectedImagePath = "DoorLock/VolumeIcon.png", @@ -449,8 +449,8 @@ midTopFrameLayout.AddChidren(btnNormallyOpenFrameLayout); btnNormallyOpen = new Button() { - Width = Application.GetRealWidth(81), - Height = Application.GetRealHeight(81), + Width = Application.GetMinReal(81), + Height = Application.GetMinReal(81), X = Application.GetRealWidth(40), Y = Application.GetRealHeight(40), UnSelectedImagePath = "DoorLock/NormallyOpen.png", @@ -482,8 +482,8 @@ #region 褰撳墠鎴块棿 var btnCurrentRoomPic = new Button() { - Width = Application.GetRealWidth(81), - Height = Application.GetRealHeight(81), + Width = Application.GetMinReal(81), + Height = Application.GetMinReal(81), X = Application.GetRealWidth(58), Y = Application.GetRealHeight(29), UnSelectedImagePath = "DoorLock/RoomPic.png", @@ -786,10 +786,13 @@ //璁剧疆 EventHandler<MouseEventArgs> btnFuncSetHander = (sender, e) => { - var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); + //鎵撳紑鍏朵粬鐣岄潰鏃跺墠绉婚櫎 + RemoveFromParent(); + var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(currentRoom, doorLock); Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; functionSetting.Show(); + functionSetting.devicNameAction += (deviceRename) => { if (!string.IsNullOrEmpty(deviceRename)) @@ -910,7 +913,6 @@ EventHandler<MouseEventArgs> handerNormallyOpen = (sender, e) => { NomallyOpenDialog(); - }; btnNormallyOpenFrameLayout.MouseUpEventHandler += handerNormallyOpen; btnNormallyOpen.MouseUpEventHandler += handerNormallyOpen; @@ -932,15 +934,15 @@ { btnPower.UnSelectedImagePath = "DoorLock/Power40.png"; } - else if (currentPower <= 60 && currentPower > 40 || currentPower == 60) + else if (currentPower <= 60 && currentPower > 40) { btnPower.UnSelectedImagePath = "DoorLock/Power60.png"; } - else if (currentPower <= 80 && currentPower >= 60) + else if (currentPower <= 80 && currentPower > 60) { btnPower.UnSelectedImagePath = "DoorLock/Power80.png"; } - else if (currentPower <= 100 && currentPower >= 80) + else if (currentPower <= 100 && currentPower > 80) { btnPower.UnSelectedImagePath = "DoorLock/Power100.png"; } @@ -1052,7 +1054,7 @@ { if (UserCenterResourse.UserInfo.AuthorityNo != 1) { - this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.NoAccess)); + this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.OnlyMasterOperate)); return; } @@ -1087,6 +1089,9 @@ } else { + //娣诲姞App寮�鍚父寮�妯″紡鐨勫巻鍙茶褰� + HdlDeviceDoorLockLogic.Current.AddDoorHistoryLog(this.doorLock, 9001, string.Empty); + //姣忔閲嶆柊璁剧疆甯稿紑锛岄粯璁ゆ椂闂撮兘鏄�12灏忔椂 DoorLockCommonInfo.NormallyOpenModeInvalidTime = 12; NormallyOpenModeValue(true); @@ -1128,6 +1133,7 @@ { if (UserCenterResourse.UserInfo.AuthorityNo != 1) { + this.ShowMassage(ShowMsgType.Tip, Language.StringByID(R.MyInternationalizationString.OnlyMasterOperate)); return; } string msg = Language.StringByID(R.MyInternationalizationString.NomallyModeIsCanceled).Replace("{0}", "\r\n"); @@ -1215,7 +1221,10 @@ return; } else - { + { + //娣诲姞App寮�鍚父寮�妯″紡鐨勫巻鍙茶褰� + HdlDeviceDoorLockLogic.Current.AddDoorHistoryLog(this.doorLock, 9002, string.Empty); + NormallyOpenModeValue(false); UpdateNomallyOpenStatus(); string msg2 = Language.StringByID(R.MyInternationalizationString.CloseNormallyOpenModeSuccess); @@ -1305,7 +1314,7 @@ var result1 = await DoorLockCommonInfo.GetDoorLockUnlockAccess(doorLock, Shared.Common.Config.Instance.Guid); if (result1 == true) { - RemoteUnlockRequest(doorLock, action, progressButton, btnDoorLockPic, btnStatus, btnDoorLockTitle); + RemoteUnlockRequest(currentRoom, deviceUI, action, progressButton, btnDoorLockPic, btnStatus, btnDoorLockTitle); devicNameSecAction += (deviceRename) => { if (!string.IsNullOrEmpty(deviceRename)) @@ -1335,7 +1344,7 @@ } else { - RemoteUnlockRequest(doorLock, action, progressButton, btnDoorLockPic, btnStatus, btnDoorLockTitle); + RemoteUnlockRequest(currentRoom, deviceUI, action, progressButton, btnDoorLockPic, btnStatus, btnDoorLockTitle); devicNameSecAction += (deviceRename) => { if (!string.IsNullOrEmpty(deviceRename)) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs index 2582d09..25ec696 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs @@ -15,7 +15,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 褰撳墠閫夋嫨鐨勭綉鍏� /// </summary> @@ -51,15 +51,19 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 369, 1368); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1368); //鍥剧墖 var btnPic = new DeviceInfoIconControl(); btnPic.Y = Application.GetRealHeight(92); btnPic.Gravity = Gravity.CenterHorizontal; - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); btnPic.InitControl(this.zbGateway); //璁惧澶囨敞 @@ -156,7 +160,7 @@ }; //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; //淇濆瓨 diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs index ffbdd5d..805e646 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs @@ -136,6 +136,13 @@ //鍗曞嚮浜嬩欢 gatewayRow.frameTable.ButtonClickEvent += (sender, e) => { + if (UserCenterResourse.HideOption.GotoGatewayProductInfoForm == 1) + { + //寮哄埗璺宠浆 + var form2 = new GatewayProductInfoForm(); + form2.AddForm(gateway); + return; + } var form = new GatewayInfoEditorForm(); form.AddForm(gateway); }; @@ -172,13 +179,8 @@ }; //瀹氫綅 - var btnPosition = new NormalViewControl(Application.GetRealWidth(184), gatewayRow.Height, false); - btnPosition.BackgroundColor = 0xff4a4a4a; - btnPosition.TextAlignment = TextAlignment.Center; - btnPosition.TextColor = UserCenterColor.Current.White; - btnPosition.TextSize = 12; + var btnPosition = gatewayRow.AddEditorControl(false); btnPosition.TextID = R.MyInternationalizationString.uFixedPosition; - gatewayRow.AddRightView(btnPosition); btnPosition.ButtonClickEvent += (sender, e) => { //鍙戦�佸畾浣嶅懡浠� diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs index 68597f2..e142e5b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs @@ -44,6 +44,10 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + bool gateWayExist = HdlGatewayLogic.Current.IsGatewayExist(zbGateway); var framePic = new FrameLayout(); @@ -51,7 +55,7 @@ framePic.Height = Application.GetRealHeight(570); framePic.Gravity = Gravity.CenterHorizontal; framePic.Y = Application.GetRealHeight(58); - bodyFrameLayout.AddChidren(framePic); + listBackControl.frameTable.AddChidren(framePic); //鍥剧墖 var btnImage = new PicViewControl(380, 328, true); btnImage.Gravity = Gravity.Center; @@ -60,7 +64,7 @@ //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - var listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028); + var listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028); //璁惧澶囨敞(濡傛灉杩欎釜缃戝叧娌℃湁缁戝畾鐨勮瘽,鍙厑璁告煡鐪�,涓嶈兘鏇存敼) string caption = Language.StringByID(R.MyInternationalizationString.uDeviceNote); @@ -117,12 +121,12 @@ btnBeloneArea.AddBottomLine(); //瀹屾垚鍒濆鍖栨甯� - tableContr.FinishInitControl(bodyFrameLayout, listview); + tableContr.FinishInitControl(); if (gateWayExist == true) { //鏇村閰嶇疆 - var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(49), false); + var btnHelp = new NormalViewControl(listBackControl.frameTable.Width, Application.GetRealHeight(49), false); btnHelp.Y = Application.GetRealHeight(1388); btnHelp.TextSize = 12; btnHelp.TextAlignment = TextAlignment.Center; @@ -133,14 +137,14 @@ var form = new GatewayManage.GatewayInfoEditorForm(); this.AddFromAndRemoveNowForm(form, zbGateway); }; - bodyFrameLayout.AddChidren(btnHelp); + listBackControl.frameTable.AddChidren(btnHelp); //搴曠嚎 int lineWidth = btnHelp.GetRealWidthByText(); var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false); btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor; btnLine.Gravity = Gravity.CenterHorizontal; btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8); - bodyFrameLayout.AddChidren(btnLine); + listBackControl.frameTable.AddChidren(btnLine); } //瀹屾垚鎸夐挳 diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewaySearchListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewaySearchListForm.cs index 4868a21..a45a1c3 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewaySearchListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewaySearchListForm.cs @@ -148,13 +148,8 @@ }; } //瀹氫綅 - var btnPosition = new NormalViewControl(Application.GetRealWidth(184), frameRow.Height, false); - btnPosition.BackgroundColor = 0xff4a4a4a; - btnPosition.TextAlignment = TextAlignment.Center; - btnPosition.TextColor = UserCenterColor.Current.White; - btnPosition.TextSize = 12; + var btnPosition = frameRow.AddEditorControl(false); btnPosition.TextID = R.MyInternationalizationString.uFixedPosition; - frameRow.AddRightView(btnPosition); btnPosition.ButtonClickEvent += (sender, e) => { //鍙戦�佸畾浣嶅懡浠� diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListForm.cs index 39c627f..585bd74 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListForm.cs @@ -128,13 +128,8 @@ gatewayRow.frameTable.AddChidren(btnLink); //瀹氫綅 - var btnPosition = new NormalViewControl(Application.GetRealWidth(184), gatewayRow.Height, false); - btnPosition.BackgroundColor = 0xff4a4a4a; - btnPosition.TextAlignment = TextAlignment.Center; - btnPosition.TextColor = UserCenterColor.Current.White; - btnPosition.TextSize = 12; + var btnPosition = gatewayRow.AddEditorControl(false); btnPosition.TextID = R.MyInternationalizationString.uFixedPosition; - gatewayRow.AddRightView(btnPosition); btnPosition.ButtonClickEvent += (sender, e) => { //鍙戦�佸畾浣嶅懡浠� diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/AddNewRoomForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/AddNewRoomForm.cs index f135420..6bcda5c 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/AddNewRoomForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/AddNewRoomForm.cs @@ -18,7 +18,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 妤煎眰涓婚敭 /// </summary> @@ -54,24 +54,28 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍔犱竴涓櫧鑹茶儗鏅� var frameBack1 = new FrameLayout(); frameBack1.Height = Application.GetRealHeight(450); frameBack1.Y = Application.GetRealHeight(196); frameBack1.BackgroundColor = UserCenterColor.Current.White; frameBack1.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); - bodyFrameLayout.AddChidren(frameBack1); + listBackControl.frameTable.AddChidren(frameBack1); //鍒濆鍖栦俊鎭甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 613, 1175); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1175); //鎴块棿鍥剧墖搴曢儴闃村奖 var btnShadow = new PicViewControl(853, 593); btnShadow.Y = Application.GetRealHeight(58); btnShadow.Gravity = Gravity.CenterHorizontal; btnShadow.UnSelectedImagePath = "Room/RoomShadow.png"; - bodyFrameLayout.AddChidren(btnShadow); + listBackControl.frameTable.AddChidren(btnShadow); //鎴块棿鍥剧墖 var btnPic = new ImageView(); btnPic.Y = Application.GetRealHeight(60); @@ -80,15 +84,16 @@ btnPic.Radius = (uint)Application.GetRealHeight(17); btnPic.Gravity = Gravity.CenterHorizontal; btnPic.ImagePath = "RoomIcon/0.jpg"; - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); //鍥剧墖閬僵 var btnZhezhao = new FrameLayout(); btnZhezhao.Width = btnPic.Width; btnZhezhao.Height = btnPic.Height; btnZhezhao.Y = btnPic.Y; btnZhezhao.Gravity = Gravity.CenterHorizontal; - btnZhezhao.Radius = btnPic.Radius; - bodyFrameLayout.AddChidren(btnZhezhao); + btnZhezhao.Radius = (uint)Application.GetRealHeight(17); + btnZhezhao.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor; + listBackControl.frameTable.AddChidren(btnZhezhao); btnZhezhao.MouseUpEventHandler += (sender, e) => { //鎴块棿鍥剧墖閫夋嫨 @@ -174,7 +179,7 @@ }; //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; //淇濆瓨 var btnFinish = new BottomClickButton(); @@ -470,11 +475,9 @@ //榛樿鍥惧簱 menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.LocalPicture), () => { - var localPic = new Phone.Device.Room.AddRoomSelectPicByLocal(); - Shared.Phone.UserView.HomePage.Instance.AddChidren(localPic); - Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; - localPic.Show(); - localPic.action = (imgPath) => + var form = new SelectLocalRoomImageForm(); + form.AddForm(); + form.FinishSelectEvent = (imgPath) => { if (string.IsNullOrEmpty(imgPath) == true) { diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs index 305b4fd..f5b7845 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs @@ -18,7 +18,7 @@ /// <summary> /// 鍒楄〃鎺т欢 /// </summary> - private VerticalListControl listview = null; + private FrameListControl listview = null; /// <summary> /// 鎴块棿瀵硅薄 /// </summary> @@ -69,24 +69,28 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + //鍔犱竴涓櫧鑹茶儗鏅� var frameBack1 = new FrameLayout(); frameBack1.Height = Application.GetRealHeight(450); frameBack1.Y = Application.GetRealHeight(196); frameBack1.BackgroundColor = UserCenterColor.Current.White; frameBack1.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); - bodyFrameLayout.AddChidren(frameBack1); + listBackControl.frameTable.AddChidren(frameBack1); //鍒濆鍖栦俊鎭甯� var tableContr = new InformationEditorControl(); - this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 613, 1175); + this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1175); //鎴块棿鍥剧墖搴曢儴闃村奖 var btnShadow = new PicViewControl(853, 593); btnShadow.Y = Application.GetRealHeight(58); btnShadow.Gravity = Gravity.CenterHorizontal; btnShadow.UnSelectedImagePath = "Room/RoomShadow.png"; - bodyFrameLayout.AddChidren(btnShadow); + listBackControl.frameTable.AddChidren(btnShadow); //鎴块棿鍥剧墖 var btnPic = new ImageView(); btnPic.Y = Application.GetRealHeight(60); @@ -102,15 +106,16 @@ { btnPic.ImageBytes = Common.Global.ReadFileByHomeId(this.editorRoom.BackgroundImage); } - bodyFrameLayout.AddChidren(btnPic); + listBackControl.frameTable.AddChidren(btnPic); //鍥剧墖閬僵 var btnZhezhao = new FrameLayout(); btnZhezhao.Width = btnPic.Width; btnZhezhao.Height = btnPic.Height; btnZhezhao.Y = btnPic.Y; btnZhezhao.Gravity = Gravity.CenterHorizontal; - btnZhezhao.Radius = btnPic.Radius; - bodyFrameLayout.AddChidren(btnZhezhao); + btnZhezhao.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor; + btnZhezhao.Radius = (uint)Application.GetRealHeight(17); + listBackControl.frameTable.AddChidren(btnZhezhao); //鍒嗕韩鐨勬埧闂翠笉鑳界紪杈� if (this.editorRoom.IsSharedRoom == false) { @@ -230,7 +235,7 @@ } //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, this.listview); + tableContr.FinishInitControl(); tableContr = null; //鍒嗕韩鐨勬埧闂翠笉鑳戒繚瀛� @@ -566,11 +571,9 @@ //榛樿鍥惧簱 menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.LocalPicture), () => { - var localPic = new Phone.Device.Room.AddRoomSelectPicByLocal(); - Shared.Phone.UserView.HomePage.Instance.AddChidren(localPic); - Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; - localPic.Show(); - localPic.action = (imgPath) => + var form = new SelectLocalRoomImageForm(); + form.AddForm(); + form.FinishSelectEvent = (imgPath) => { if (string.IsNullOrEmpty(imgPath) == true) { diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs index 7581816..393b9e2 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceListForm.cs @@ -254,13 +254,8 @@ return; } //鏇存敼 - var btnChanged = new NormalViewControl(Application.GetRealWidth(184), rowLayout.Height, false); - btnChanged.BackgroundColor = 0xff4a4a4a; - btnChanged.TextSize = 12; - btnChanged.TextColor = UserCenterColor.Current.White; - btnChanged.TextAlignment = TextAlignment.Center; + var btnChanged = rowLayout.AddEditorControl(); btnChanged.TextID = R.MyInternationalizationString.uChanged1; - rowLayout.AddRightView(btnChanged); btnChanged.ButtonClickEvent += (sender, e) => { //鏄剧ず缂栬緫鍚嶇О鐣岄潰 diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs index 15f46ff..6ca7502 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/ResidenceManagementForm.cs @@ -328,13 +328,8 @@ if (UserCenterResourse.UserInfo.AuthorityNo == 1 || UserCenterResourse.UserInfo.AuthorityNo == 2) { //鏇存敼 - var btnChanged = new NormalViewControl(Application.GetRealWidth(184), frameRow.Height, false); - btnChanged.BackgroundColor = 0xff4a4a4a; - btnChanged.TextSize = 12; - btnChanged.TextColor = UserCenterColor.Current.White; - btnChanged.TextAlignment = TextAlignment.Center; + var btnChanged = frameRow.AddEditorControl(); btnChanged.TextID = R.MyInternationalizationString.uChanged1; - frameRow.AddRightView(btnChanged); btnChanged.ButtonClickEvent += (sender, e) => { //鍒涘缓鎴栬�呯紪杈戞ゼ灞� @@ -574,8 +569,6 @@ var btnEditor = frameRow.AddEditorControl(); btnEditor.ButtonClickEvent += (sender, e) => { - //鍏抽棴宸﹀彸鑿滃崟 - frameRow.HideMenu(); var form = new EditorRoomInforForm(); form.AddForm(room); form.FinishEditorEvent += (roomName) => @@ -803,7 +796,7 @@ { //璇疯緭鍏ヤ綇瀹呭悕绉� string msg = Language.StringByID(R.MyInternationalizationString.uPleaseInputFloorName); - this.ShowMassage(ShowMsgType.Error, msg); + this.ShowMassage(ShowMsgType.Tip, msg); return false; } foreach (string floorKeys in Common.Config.Instance.Home.FloorDics.Keys) @@ -812,7 +805,7 @@ { //妤煎眰鍚嶇О宸茬粡瀛樺湪 string msg = Language.StringByID(R.MyInternationalizationString.uFloorNameIsExist); - this.ShowMassage(ShowMsgType.Error, msg); + this.ShowMassage(ShowMsgType.Tip, msg); return false; } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/SelectLocalRoomImageForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/SelectLocalRoomImageForm.cs new file mode 100755 index 0000000..b6a842a --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/SelectLocalRoomImageForm.cs @@ -0,0 +1,118 @@ +锘縰sing System; +using Shared.Common; +using Shared.Phone.UserCenter; + +namespace Shared.Phone.UserCenter.Residence +{ + /// <summary> + /// 閫夋嫨鏈湴鎴块棿鍥剧墖鐨勭晫闈� + /// </summary> + public class SelectLocalRoomImageForm : EditorCommonForm + { + #region 鈻� 鍙橀噺澹版槑___________________________ + + /// <summary> + /// 缁撴潫閫夋嫨鐨勪簨浠�(鍥剧墖鍚嶅瓧) + /// </summary> + public Action<string> FinishSelectEvent = null; + + #endregion + + #region 鈻� 鍒濆鍖朹____________________________ + + /// <summary> + /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) + /// </summary> + public void ShowForm() + { + //鍒濆鍖栦腑閮ㄤ俊鎭� + this.InitMiddleFrame(); + } + + /// <summary> + /// 鍒濆鍖栦腑閮ㄤ俊鎭� + /// </summary> + private void InitMiddleFrame() + { + //娓呯┖bodyFrame + this.ClearBodyFrame(); + + //鍒楄〃鎺т欢 + var listView = new VerticalListControl(); + listView.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listView); + + int picHeight = this.GetPictrueRealSize(311); + int picWidth = this.GetPictrueRealSize(467); + int leftRightSpace = this.GetPictrueRealSize(58); + int space = listView.Width - leftRightSpace * 2 - picWidth * 2; + + //涓�鍏�14寮犲浘鐗� + FrameLayout frameRow = null; + for (int i = 0; i < 22; i++) + { + //鍥剧墖 + var btnIcon = new ImageView(); + + if (i % 2 == 0) + { + btnIcon.X = leftRightSpace; + + //琛屾帶浠� + frameRow = new FrameLayout(); + frameRow.Height = picHeight + Application.GetRealHeight(58); + listView.AddChidren(frameRow); + } + else + { + btnIcon.X = leftRightSpace + picWidth + space; + } + + btnIcon.Y = Application.GetRealHeight(58); + btnIcon.Width = picWidth; + btnIcon.Height = picHeight; + btnIcon.ImagePath = $"RoomIcon/{i}.jpg"; + btnIcon.Radius = (uint)Application.GetRealHeight(17); + frameRow.AddChidren(btnIcon); + + //鍥剧墖閬僵 + var btnZhezhao = new FrameLayout(); + btnZhezhao.Width = btnIcon.Width; + btnZhezhao.Height = btnIcon.Height; + btnZhezhao.Y = btnIcon.Y; + btnZhezhao.X = btnIcon.X; + btnZhezhao.Radius = (uint)Application.GetRealHeight(17); + btnZhezhao.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor; + frameRow.AddChidren(btnZhezhao); + btnZhezhao.MouseUpEventHandler += (sender, e) => + { + //缁撴潫閫夋嫨鐨勪簨浠� + this.FinishSelectEvent?.Invoke(btnIcon.ImagePath); + this.CloseForm(); + }; + + } + + //搴曢儴闂磋窛 + var frameTemp = new FrameLayout(); + frameTemp.Height = Application.GetRealHeight(58); + listView.AddChidren(frameTemp); + } + + #endregion + + #region 鈻� 鐣岄潰鍏抽棴___________________________ + + /// <summary> + /// 鐣岄潰鍏抽棴 + /// </summary> + public override void CloseFormBefore() + { + this.FinishSelectEvent = null; + + base.CloseFormBefore(); + } + + #endregion + } +} diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetStatuSelectAcForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetStatuSelectAcForm.cs index 30a38e4..10f20ce 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetStatuSelectAcForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetStatuSelectAcForm.cs @@ -326,27 +326,33 @@ taskInfo2.TaskType = 5; taskInfo2.Data1 = 3; taskInfo2.Data2 = listMode[selectModelIndex]; - listData.Add(taskInfo2); - - //娓╁害 - if (listMode[selectModelIndex] == 4) - { - //鍒剁儹 - var taskInfo3 = new Safeguard.TaskListInfo(); - taskInfo3.TaskType = 5; - taskInfo3.Data1 = 4; - taskInfo3.Data2 = listTemperature[selectTemperatureIndex] * 100; + listData.Add(taskInfo2); + + //娓╁害 + var taskInfo3 = new Safeguard.TaskListInfo(); + taskInfo3.TaskType = 5; + taskInfo3.Data2 = listTemperature[selectTemperatureIndex] * 100; + //1:鑷姩 3:鍒跺喎 4:鍒剁儹 7:閫侀 8:闄ゆ箍 + + //鑷姩 + if (listMode[selectModelIndex] == 1) + { + taskInfo3.Data1 = 7; listData.Add(taskInfo3); } - else + //鍒剁儹 + else if (listMode[selectModelIndex] == 4) { - //鎴戜篃涓嶇煡閬撹繖涓槸浠�涔堝垎鏀� - var taskInfo4 = new Safeguard.TaskListInfo(); - taskInfo4.TaskType = 5; - taskInfo4.Data1 = 5; - taskInfo4.Data2 = listTemperature[selectTemperatureIndex] * 100; - listData.Add(taskInfo4); + taskInfo3.Data1 = 4; + listData.Add(taskInfo3); } + //鍒跺喎锛岄櫎婀块粯璁ら兘鏄� 鍒跺喎 + else if (listMode[selectModelIndex] == 3 || listMode[selectModelIndex] == 8) + { + taskInfo3.Data1 = 5; + listData.Add(taskInfo3); + } + //閫侀娌℃湁娓╁害鐨勬蹇� } //鑾峰彇鐘舵�佺殑鏄剧ず鏂囨湰 diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs index 8fa4707..0db4b27 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs @@ -13,6 +13,10 @@ #region 鈻� 鍙橀噺澹版槑___________________________ /// <summary> + /// 娣诲姞鑱旂郴鏂瑰紡鐨勪簨浠� + /// </summary> + public Action AddPhoneEvent = null; + /// <summary> /// 淇℃伅鎻愮ず鎺т欢 /// </summary> private NormalViewControl btnErrorMsg = null; @@ -61,6 +65,13 @@ //鍒濆鍖栦腑閮ㄤ俊鎭� this.InitMiddleFrame(); + + //閲嶅啓搴曞眰杩斿洖鎸夐敭浜嬩欢 + this.BackButtonClickEvent += (sender) => + { + this.AddPhoneEvent = null; + this.CloseForm(); + }; } /// <summary> @@ -186,6 +197,10 @@ return; } this.CloseForm(); + + //璋冪敤鍥炶皟鍑芥暟 + this.AddPhoneEvent?.Invoke(); + this.AddPhoneEvent = null; } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddNewForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddNewForm.cs index f00d28f..44de1b0 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddNewForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddNewForm.cs @@ -12,6 +12,10 @@ #region 鈻� 鍙橀噺澹版槑___________________________ /// <summary> + /// 瀵嗙爜鏀瑰彉浜嬩欢 + /// </summary> + public Action<string> PasswordChangedEvent = null; + /// <summary> /// 鐢ㄦ埛璐﹀彿 /// </summary> private int pswNo = 5; @@ -109,11 +113,18 @@ //鐣岄潰鐩存帴鍏抽棴 this.CloseForm(); - //鍏抽棴缂栬緫鐣岄潰 - this.CloseFormByFormName("CoercePswEditorForm"); - var form = new CoercePswEditorForm(); - form.AddForm(pswValue1, i_titleText); + if (UserCenterResourse.DicActionForm.ContainsKey("CoercePswEditorForm") == false) + { + var form = new CoercePswEditorForm(); + form.AddForm(pswValue1, i_titleText); + } + else + { + //鍥炶皟鍑芥暟 + this.PasswordChangedEvent?.Invoke(pswValue1); + this.PasswordChangedEvent = null; + } } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswEditorForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswEditorForm.cs index caf8137..d687d30 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswEditorForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswEditorForm.cs @@ -24,9 +24,17 @@ /// </summary> private string passwordTip = string.Empty; /// <summary> - /// 鍒楄〃鐨勬甯冩帶浠� + /// 鑱旂郴浜虹殑鍒楄〃鎺т欢 /// </summary> - private FrameLayout frameTable = null; + private FrameListControl listPhoneView = null; + /// <summary> + /// 淇℃伅鎺т欢 + /// </summary> + private InformationEditorControl tableContr = null; + /// <summary> + /// 瀵嗙爜鎺т欢 + /// </summary> + private NormalViewControl btnPassword = null; /// <summary> /// 褰撳墠鐨勮仈绯讳汉鍒楄〃 /// </summary> @@ -45,6 +53,7 @@ { this.password = i_password; this.passwordTip = i_passwordTip; + this.ScrollEnabled = false; //璁剧疆澶撮儴淇℃伅 base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uCoercePassword)); @@ -61,9 +70,9 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); - this.frameTable = new FrameLayout(); - frameTable.Height = bodyFrameLayout.Height; - bodyFrameLayout.AddChidren(frameTable); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); var frameback = new FrameLayout(); frameback.Y = Application.GetRealHeight(179); @@ -71,7 +80,7 @@ frameback.Width = Application.GetRealWidth(717); frameback.Gravity = Gravity.CenterHorizontal; frameback.BackgroundImagePath = "Safeguard/SafeguardPasswordGround.png"; - bodyFrameLayout.AddChidren(frameback); + listBackControl.frameTable.AddChidren(frameback); //褰撳墠浣跨敤瀵嗙爜 var btnNowTip = new NormalViewControl(frameback.Width, Application.GetRealHeight(50), false); btnNowTip.Y = Application.GetRealHeight(81); @@ -80,7 +89,7 @@ btnNowTip.TextColor = UserCenterColor.Current.TextGrayColor3; btnNowTip.TextID = R.MyInternationalizationString.uNowUsePassword; frameback.AddChidren(btnNowTip); - var btnPassword = new NormalViewControl(frameback.Width, Application.GetRealHeight(90), false); + this.btnPassword = new NormalViewControl(frameback.Width, Application.GetRealHeight(90), false); btnPassword.TextAlignment = TextAlignment.Center; btnPassword.Y = Application.GetRealHeight(150); btnPassword.TextSize = 24; @@ -90,29 +99,27 @@ frameback.AddChidren(btnPassword); //鍒濆鍖栧垪琛ㄦ帶浠� - this.InitListViewControl(); + this.InitListViewControl(listBackControl); } /// <summary> /// 鍒濆鍖栧垪琛ㄦ帶浠� /// </summary> - private void InitListViewControl() + private void InitListViewControl(VerticalFrameControl listBackControl) { - this.frameTable.RemoveAll(); - //鍒濆鍖栨甯� - var tableContr = new InformationEditorControl(); - var listview = tableContr.InitControl(this.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 711, 1025); + this.tableContr = new InformationEditorControl(); + var listView = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1025); //澶囨敞淇℃伅 string caption = Language.StringByID(R.MyInternationalizationString.uNoteInformation); - var rowNote = new FrameCaptionInputControl(caption, passwordTip, listview.rowSpace / 2); + var rowNote = new FrameCaptionInputControl(caption, passwordTip, listView.rowSpace / 2); rowNote.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPlesaeInputNoteInformation); rowNote.txtInput.MaxByte = 90; - listview.AddChidren(rowNote); + listView.AddChidren(rowNote); rowNote.InitControl(); rowNote.AddBottomLine(); - rowNote.txtInput.FinishInputEvent += () => + rowNote.txtInput.FinishInputEvent += async () => { if (rowNote.Text == string.Empty) { @@ -122,13 +129,13 @@ if (passwordTip != rowNote.Text) { //淇敼瀵嗙爜澶囨敞 - this.EditorPassworTip(password, rowNote.Text); + await this.EditorPassworTip(password, rowNote.Text, true); } }; //淇敼瀵嗙爜 - var rowPsw = new FrameRowControl(listview.rowSpace / 2); - listview.AddChidren(rowPsw); + var rowPsw = new FrameRowControl(listView.rowSpace / 2); + listView.AddChidren(rowPsw); rowPsw.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uChangedPassword), 300); rowPsw.AddRightArrow(); rowPsw.AddBottomLine(); @@ -136,7 +143,59 @@ { var form = new CoercePswAddNewForm(); form.AddForm(rowNote.Text); + form.PasswordChangedEvent += (newPassword) => + { + this.btnPassword.Text = newPassword; + this.password = newPassword; + }; }; + + //鍒濆鍖栬仈绯讳汉鎺т欢 + this.InitPhoneControl(listView); + + //閲嶅啓搴曞眰鐨勮繑鍥炴寜閿簨浠� + this.BackButtonClickEvent += async (sender) => + { + sender.CanClick = false; + if (rowNote.Text == string.Empty || passwordTip == rowNote.Text) + { + this.CloseForm(); + } + else + { + //淇敼瀵嗙爜澶囨敞 + var result = await this.EditorPassworTip(password, rowNote.Text, false); + sender.CanClick = true; + if (result == true) + { + this.CloseForm(); + } + } + }; + } + + #endregion + + #region 鈻� 鍒濆鍖栬仈绯讳汉鎺т欢___________________ + + /// <summary> + /// 鍒濆鍖栬仈绯讳汉鎺т欢 + /// </summary> + private void InitPhoneControl(FrameListControl listTableView) + { + //鑱旂郴浜虹殑鍒楄〃鎺т欢 + if (listPhoneView == null) + { + this.listPhoneView = new FrameListControl(); + listPhoneView.rowSpace = listTableView.rowSpace; + listPhoneView.Height = Application.GetRealHeight(200); + listTableView.AddChidren(listPhoneView); + listPhoneView.Y -= listTableView.rowSpace; + } + else + { + this.listPhoneView.RemoveAll(); + } HdlThreadLogic.Current.RunThread(async () => { @@ -157,9 +216,9 @@ { this.listPhoneData = new List<ZigBee.Device.Safeguard.PushTargetInfo>(); //鑱旂郴浜� - var rowContact = new FrameRowControl(listview.rowSpace / 2); + var rowContact = new FrameRowControl(this.listPhoneView.rowSpace / 2); rowContact.UseClickStatu = false; - listview.AddChidren(rowContact); + listPhoneView.AddChidren(rowContact); rowContact.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uContactPersion), 300); var btnAdd = rowContact.AddMostRightEmptyIcon(81, 81); btnAdd.UnSelectedImagePath = "Item/Add.png"; @@ -167,6 +226,11 @@ { var form = new CoercePswAddContactForm(); form.AddForm(listPhoneData); + form.AddPhoneEvent += () => + { + //閲嶆柊鍒锋柊 + this.InitPhoneControl(listTableView); + }; }; if (result.Actions.Count > 0) @@ -175,7 +239,7 @@ foreach (var data in listPhoneData) { //娣诲姞鑱旂郴浜鸿 - this.AddPhoneNumRowLayout(listview, data); + this.AddPhoneNumRowLayout(data); } } else @@ -183,8 +247,20 @@ //娌℃湁鑱旂郴浜虹殑璇�,娣诲姞涓簳绾� rowContact.AddBottomLine(); } + //璋冩暣妗屽竷澶у皬 + this.AdjustPhoneContrlTable(); }); }); + } + + /// <summary> + /// 璋冩暣妗屽竷澶у皬 + /// </summary> + private void AdjustPhoneContrlTable() + { + //璋冩暣妗屽竷 + listPhoneView.AdjustRealHeight(); + tableContr.FinishInitControl(false, true); } #endregion @@ -194,9 +270,8 @@ /// <summary> /// 娣诲姞鑱旂郴浜鸿 /// </summary> - /// <param name="listview"></param> /// <param name="data"></param> - private void AddPhoneNumRowLayout(VerticalListControl listview, ZigBee.Device.Safeguard.PushTargetInfo data) + private void AddPhoneNumRowLayout(ZigBee.Device.Safeguard.PushTargetInfo data) { var strArry = data.PushNumber.Split(new string[] { "-" }, StringSplitOptions.RemoveEmptyEntries); if (strArry.Length != 2) @@ -220,7 +295,8 @@ } var rowContact = new RowLayoutControl(); - listview.AddChidren(rowContact); + rowContact.MainKeys = strPhone; + this.listPhoneView.AddChidren(rowContact); rowContact.frameTable.UseClickStatu = false; //鑱旂郴鏂瑰紡 rowContact.frameTable.AddLeftCaption(strPhone + " (" + data.PushNumberNote + ")", 800); @@ -261,6 +337,22 @@ bool result = await HdlSafeguardLogic.Current.DeleteCoercePhoneNumber(areaCode, phone); if (result == true) { + bool canMove = false; + for (int i = 0; i < this.listPhoneView.ChildrenCount; i++) + { + var myRow = this.listPhoneView.GetChildren(i) as RowLayoutControl; + if (myRow != null && myRow.MainKeys == rowContact.MainKeys) + { + //寰幆鍒颁簡褰撳墠鎺т欢 + canMove = true; + continue; + } + if (canMove == true) + { + //瀹冧箣鍚庣殑鎺т欢鍏ㄩ儴寰�涓婄Щ鍔� + myRow.Y -= rowContact.Height; + } + } rowContact.RemoveFromParent(); //绉婚櫎缂撳瓨 @@ -272,6 +364,8 @@ listPhoneData.RemoveAt(i); } } + //璋冩暣妗屽竷澶у皬 + this.AdjustPhoneContrlTable(); } } @@ -284,31 +378,21 @@ /// </summary> /// <param name="i_password">鐢ㄦ埛瀵嗙爜</param> /// <param name="i_passwordTip">鐢ㄦ埛瀵嗙爜鎻愮ず</param> - private async void EditorPassworTip(string i_password, string i_passwordTip) + private async System.Threading.Tasks.Task<bool> EditorPassworTip(string i_password, string i_passwordTip, bool ShowMsg) { var result = await HdlSafeguardLogic.Current.AddPassWordTips(this.pswNo, i_password, i_passwordTip); if (result == true) { - //淇敼澶囨敞淇℃伅鎴愬姛! - string msg = Language.StringByID(R.MyInternationalizationString.uEditorNoteInformationSuccess); - this.ShowMassage(ShowMsgType.Tip, msg); + if (ShowMsg == true) + { + //淇敼澶囨敞淇℃伅鎴愬姛! + string msg = Language.StringByID(R.MyInternationalizationString.uEditorNoteInformationSuccess); + this.ShowMassage(ShowMsgType.Tip, msg); + } this.passwordTip = i_passwordTip; } - } - - #endregion - - #region 鈻� 鐣岄潰閲嶆柊婵�娲讳簨浠禵__________________ - - /// <summary> - /// 鑷韩鐨勪笂灞傜晫闈㈠叧闂悗,瀹冭嚜韬浜庢渶涓婂眰鏃�,瑙﹀彂鐨勪簨浠� - /// </summary> - public override int FormActionAgainEvent() - { - //鍒濆鍖栧垪琛ㄦ帶浠� - this.InitListViewControl(); - return 1; + return result; } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordAddNewForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordAddNewForm.cs index 50a2a5a..6fb528b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordAddNewForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordAddNewForm.cs @@ -12,6 +12,10 @@ #region 鈻� 鍙橀噺澹版槑___________________________ /// <summary> + /// 瀵嗙爜鏀瑰彉浜嬩欢 + /// </summary> + public Action<string> PasswordChangedEvent = null; + /// <summary> /// 鐢ㄦ埛璐﹀彿 /// </summary> private int pswNo = 0; @@ -111,11 +115,19 @@ //鐣岄潰鐩存帴鍏抽棴 this.CloseForm(); - //鍏抽棴缂栬緫鐣岄潰 - this.CloseFormByFormName("PasswordUserEditorForm"); - var form = new PasswordUserEditorForm(); - form.AddForm(this.pswNo, pswValue1, i_titleText); + if (UserCenterResourse.DicActionForm.ContainsKey("PasswordUserEditorForm") == false) + { + var form = new PasswordUserEditorForm(); + form.AddForm(this.pswNo, pswValue1, i_titleText); + } + else + { + //鍥炶皟鍑芥暟 + this.PasswordChangedEvent?.Invoke(pswValue1); + this.PasswordChangedEvent = null; + + } } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordUserEditorForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordUserEditorForm.cs index a9ade58..41ce528 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordUserEditorForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/PasswordUserEditorForm.cs @@ -30,6 +30,8 @@ { this.pswNo = i_pswNo; + this.ScrollEnabled = false; + //璁剧疆澶撮儴淇℃伅 base.SetTitleText(i_passwordTip); @@ -47,13 +49,17 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); + var listBackControl = new VerticalFrameControl(); + listBackControl.Height = bodyFrameLayout.Height; + bodyFrameLayout.AddChidren(listBackControl); + var frameback = new FrameLayout(); frameback.Y = Application.GetRealHeight(179); frameback.Height = Application.GetRealHeight(395); frameback.Width = Application.GetRealWidth(717); frameback.Gravity = Gravity.CenterHorizontal; frameback.BackgroundImagePath = "Safeguard/SafeguardPasswordGround.png"; - bodyFrameLayout.AddChidren(frameback); + listBackControl.frameTable.AddChidren(frameback); //褰撳墠浣跨敤瀵嗙爜 var btnNowTip = new NormalViewControl(frameback.Width, Application.GetRealHeight(50), false); btnNowTip.Y = Application.GetRealHeight(81); @@ -72,7 +78,7 @@ //鍒濆鍖栨甯� var tableContr = new InformationEditorControl(); - var listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 711, 1025); + var listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1025); //澶囨敞淇℃伅 string caption = Language.StringByID(R.MyInternationalizationString.uNoteInformation); @@ -82,7 +88,7 @@ listview.AddChidren(rowNote); rowNote.InitControl(); rowNote.AddBottomLine(); - rowNote.txtInput.FinishInputEvent += () => + rowNote.txtInput.FinishInputEvent += async () => { if (rowNote.Text == string.Empty) { @@ -92,7 +98,11 @@ if (i_passwordTip != rowNote.Text) { //淇敼瀵嗙爜澶囨敞 - this.EditorPassworTip(i_password, rowNote.Text); + var result = await this.EditorPassworTip(i_password, rowNote.Text, true); + if (result == true) + { + i_passwordTip = rowNote.Text; + } } }; @@ -106,11 +116,36 @@ { var form = new PasswordAddNewForm(); form.AddForm(this.pswNo, rowNote.Text); + form.PasswordChangedEvent += (newPassword) => + { + btnPassword.Text = newPassword; + i_password = newPassword; + }; }; //鍒濆鍖栨甯冨畬鎴� - tableContr.FinishInitControl(bodyFrameLayout, listview); + tableContr.FinishInitControl(); tableContr = null; + + //閲嶅啓搴曞眰杩斿洖鎸夐敭鐨勪簨浠� + this.BackButtonClickEvent = async (sender) => + { + sender.CanClick = false; + if (rowNote.Text == string.Empty || i_passwordTip == rowNote.Text) + { + this.CloseForm(); + } + else + { + //淇敼瀵嗙爜澶囨敞 + var result = await this.EditorPassworTip(i_password, rowNote.Text, false); + sender.CanClick = true; + if (result == true) + { + this.CloseForm(); + } + } + }; } #endregion @@ -122,17 +157,21 @@ /// </summary> /// <param name="i_password">鐢ㄦ埛瀵嗙爜</param> /// <param name="i_passwordTip">鐢ㄦ埛瀵嗙爜鎻愮ず</param> - private async void EditorPassworTip(string i_password, string i_passwordTip) + private async System.Threading.Tasks.Task<bool> EditorPassworTip(string i_password, string i_passwordTip, bool ShowMsg) { var result = await HdlSafeguardLogic.Current.AddPassWordTips(this.pswNo, i_password, i_passwordTip); if (result == true) { - //淇敼澶囨敞淇℃伅鎴愬姛! - string msg = Language.StringByID(R.MyInternationalizationString.uEditorNoteInformationSuccess); - this.ShowMassage(ShowMsgType.Tip, msg); + if (ShowMsg == true) + { + //淇敼澶囨敞淇℃伅鎴愬姛! + string msg = Language.StringByID(R.MyInternationalizationString.uEditorNoteInformationSuccess); + this.ShowMassage(ShowMsgType.Tip, msg); + } //璁剧疆澶撮儴淇℃伅 base.SetTitleText(i_passwordTip); } + return result; } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs index 5c4653d..c1f5955 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs @@ -407,6 +407,11 @@ //寮哄埗璺宠浆鐪熷疄璁惧鐣岄潰 UserCenterResourse.HideOption.GotoRealDeviceForm = 1; } + if (textValue == "12348") + { + //寮哄埗璺宠浆缃戝叧鐣岄潰 + UserCenterResourse.HideOption.GotoGatewayProductInfoForm = 1; + } this.ShowMassage(ShowMsgType.Tip, "Ok!"); }); } diff --git a/ZigbeeApp/Shared/Phone/UserView/LoginLoading.cs b/ZigbeeApp/Shared/Phone/UserView/LoginLoading.cs index 86aa5a4..a8247ad 100755 --- a/ZigbeeApp/Shared/Phone/UserView/LoginLoading.cs +++ b/ZigbeeApp/Shared/Phone/UserView/LoginLoading.cs @@ -20,7 +20,7 @@ var sceneBtn = new ImageView(); sceneBtn.Width = this.Width; sceneBtn.Height = this.Height; - sceneBtn.ImagePath = "Logo/2.jpg"; + sceneBtn.ImagePath = "Logo/2.png"; AddChidren(sceneBtn); } } diff --git a/ZigbeeApp/Shared/Phone/UserView/SafetyShortcutControl.cs b/ZigbeeApp/Shared/Phone/UserView/SafetyShortcutControl.cs deleted file mode 100755 index 5d447bb..0000000 --- a/ZigbeeApp/Shared/Phone/UserView/SafetyShortcutControl.cs +++ /dev/null @@ -1,304 +0,0 @@ -锘縰sing System; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.UserCenter; - -namespace Shared.Phone.UserView -{ - public class SafetyShortcutControl : Button - { - /// <summary> - /// dialog - /// </summary> - private Dialog dialog; - /// <summary> - /// SafetyShortcut - /// </summary> - public SafetyShortcutControl() - { - this.Height = Application.GetMinRealAverage(69); - this.Width = Application.GetMinRealAverage(69); - this.UnSelectedImagePath = "Item/SafetyShortcut.png"; - this.MouseUpEventHandler += (sender, e) => - { - Show(); - }; - } - - /// <summary> - /// Show - /// </summary> - private void Show() - { - Common.CommonPage.Instance.IsDrawerLockMode = true; - - dialog = new Dialog(); - dialog.BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor; - dialog.Show(); - var closeBGview = new FrameLayout(); - dialog.AddChidren(closeBGview); - closeBGview.MouseUpEventHandler += (send1, e1) => - { - dialog.Close(); - }; - - var bg = new Button - { - X = Application.GetRealWidth(495), - Y = Application.GetRealHeight(161), - Width = Application.GetRealWidth(449), - Height = Application.GetRealHeight(495), - UnSelectedImagePath = "Item/SafetyShortcut_background.png" - }; - closeBGview.AddChidren(bg); - - var bg1 = new FrameLayout - { - X = Application.GetRealWidth(495), - Y = Application.GetRealHeight(161), - Width = Application.GetRealWidth(449), - Height = Application.GetRealHeight(495), - }; - closeBGview.AddChidren(bg1); - - new System.Threading.Thread(async () => - { - //鍒锋柊 - var result = await HdlSafeguardLogic.Current.ReFreshByGateway(); - if (result == false) - { - return; - } - //鏄惁璁剧疆鏈夊唴閮ㄩ槻鍖� - Application.RunOnMainThread(() => - { - RefreshSafeZone(bg1, HdlSafeguardLogic.Current.IsHadInternalDefenseArea()); - }); - }) - { IsBackground = true }.Start(); - } - - /// <summary> - /// 鏄剧ず闃插尯 - /// </summary> - /// <param name="statu">true 3涓槻鍖� false 2涓槻鍖�</param> - private void RefreshSafeZone(FrameLayout layout, bool statu) - { - if(statu) - { - ShowThreeSafeType(layout); - } - else - { - ShowTwoSafeType(layout); - } - } - - /// <summary> - /// 甯冮槻鎾ら槻 - /// </summary> - /// <param name="layout"></param> - private void ShowTwoSafeType(FrameLayout layout) - { - Device.CommonForm.LeftIconButtonRow tempRow; - var atHome = new Device.CommonForm.LeftIconButtonRow(449, 150); - atHome.Y = Application.GetRealHeight(32); - atHome.Init("Item/SafetyShortcut_item.png", "Item/SafetyShortcut_itemSelected.png", Language.StringByID(R.MyInternationalizationString.uGarrison)); - layout.AddChidren(atHome); - atHome.Tag = GarrisonMode.AtHome; - if (HdlSafeguardLogic.Current.NowGarrisonMode == GarrisonMode.AtHome) - { - atHome.IsSelected = true; - tempRow = atHome; - } - atHome.ButtonClickEvent += (sender, e) => - { - dialog.Close(); - if (sender.IsSelected) - { - return; - } - CommonPage.Loading.Start(); - new System.Threading.Thread(async () => - { - var result=await HdlSafeguardLogic.Current.SetSafetyGarrisonByModel(GarrisonMode.AtHome); - Application.RunOnMainThread(() => - { - CommonPage.Loading.Hide(); - if(result == GarrisonMode.AtHome) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uSetGarrisonSuccess)); - } - else - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uSetGarrisonFail)); - } - }); - - }) - { IsBackground = true }.Start(); - }; - - - var withdrawGarriso = new Device.CommonForm.LeftIconButtonRow(449, 150); - withdrawGarriso.Y = atHome.Bottom + Application.GetRealHeight(3); - withdrawGarriso.Init("Item/SafetyShortcut_item.png", "Item/SafetyShortcut_itemSelected.png", Language.StringByID(R.MyInternationalizationString.uWithdrawGarrison)); - layout.AddChidren(withdrawGarriso); - withdrawGarriso.Tag = GarrisonMode.RemoveGarrison; - if (HdlSafeguardLogic.Current.NowGarrisonMode == GarrisonMode.None) - { - withdrawGarriso.IsSelected = true; - tempRow = withdrawGarriso; - } - withdrawGarriso.ButtonClickEvent += (sender, e) => - { - dialog.Close(); - if (sender.IsSelected) - { - return; - } - CommonPage.Loading.Start(); - new System.Threading.Thread(async () => - { - var result = await HdlSafeguardLogic.Current.RemoveSafetyGarrison(GarrisonMode.RemoveGarrison, true); - Application.RunOnMainThread(() => - { - CommonPage.Loading.Hide(); - if (result == 1) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uRemoveGarrisonSuccess)); - } - else - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uRemoveGarrisonFail)); - } - }); - }) - { IsBackground = true }.Start(); - }; - } - - /// <summary> - /// 鍦ㄥ 绂诲 鎾ら槻 - /// </summary> - /// <param name="layout"></param> - private void ShowThreeSafeType(FrameLayout layout) - { - var atHome = new Device.CommonForm.LeftIconButtonRow(449, 150); - atHome.Y = Application.GetRealHeight(32); - atHome.Init("Item/SafetyShortcut_item.png", "Item/SafetyShortcut_itemSelected.png", Language.StringByID(R.MyInternationalizationString.uAtHomeGarrison)); - layout.AddChidren(atHome); - if (HdlSafeguardLogic.Current.NowGarrisonMode == GarrisonMode.AtHome) - { - atHome.IsSelected = true; - } - atHome.ButtonClickEvent += (sender, e) => - { - dialog.Close(); - if (sender.IsSelected) - { - return; - } - CommonPage.Loading.Start(); - new System.Threading.Thread(async () => - { - var result =await HdlSafeguardLogic.Current.SetSafetyGarrisonByModel(GarrisonMode.AtHome); - Application.RunOnMainThread(() => - { - CommonPage.Loading.Hide(); - if (result == GarrisonMode.AtHome) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uSetAtHomeGarrisonSuccess)); - } - else - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uSetGarrisonFail)); - } - }); - }) - { IsBackground = true }.Start(); - }; - - - var removeHome = new Device.CommonForm.LeftIconButtonRow(449, 150); - removeHome.Y = atHome.Bottom + Application.GetRealHeight(3); - removeHome.Init("Item/SafetyShortcut_item.png", "Item/SafetyShortcut_itemSelected.png", Language.StringByID(R.MyInternationalizationString.uRemoveHomeGarrison)); - layout.AddChidren(removeHome); - if (HdlSafeguardLogic.Current.NowGarrisonMode == GarrisonMode.RemoveHome) - { - removeHome.IsSelected = true; - } - removeHome.ButtonClickEvent += (sender, e) => - { - dialog.Close(); - if (sender.IsSelected) - { - return; - } - CommonPage.Loading.Start(); - new System.Threading.Thread(async () => - { - var result =await HdlSafeguardLogic.Current.SetSafetyGarrisonByModel(GarrisonMode.RemoveHome); - Application.RunOnMainThread(() => - { - CommonPage.Loading.Hide(); - if (result == GarrisonMode.RemoveHome) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uSetRemoveHomeGarrisonSuccess)); - } - else - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uSetGarrisonFail)); - } - }); - }) - { IsBackground = true }.Start(); - }; - - var withdrawGarriso = new Device.CommonForm.LeftIconButtonRow(449, 150); - withdrawGarriso.Y = removeHome.Bottom + Application.GetRealHeight(3); - withdrawGarriso.Init("Item/SafetyShortcut_item.png", "Item/SafetyShortcut_itemSelected.png", Language.StringByID(R.MyInternationalizationString.uWithdrawGarrison)); - layout.AddChidren(withdrawGarriso); - withdrawGarriso.HidenLine(true); - if (HdlSafeguardLogic.Current.NowGarrisonMode == GarrisonMode.None) - { - withdrawGarriso.IsSelected = true; - } - withdrawGarriso.ButtonClickEvent += (sender, e) => - { - dialog.Close(); - if (sender.IsSelected) - { - return; - } - CommonPage.Loading.Start(); - new System.Threading.Thread(async () => - { - var result =await HdlSafeguardLogic.Current.RemoveSafetyGarrison(GarrisonMode.RemoveGarrison, true); - Application.RunOnMainThread(() => - { - CommonPage.Loading.Hide(); - if (result == 1) - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uRemoveGarrisonSuccess)); - } - else - { - CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.uRemoveGarrisonFail)); - } - }); - }) - { IsBackground = true }.Start(); - }; - } - - /// <summary> - /// RemoveFromParent - /// </summary> - public override void RemoveFromParent() - { - Common.CommonPage.Instance.IsDrawerLockMode = false; - base.RemoveFromParent(); - } - } -} diff --git a/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs b/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs deleted file mode 100755 index cd1a3ce..0000000 --- a/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs +++ /dev/null @@ -1,1912 +0,0 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared.Common; -using Shared.Phone.Device.CommonForm; -using Shared.Phone.Device.DeviceLogic; -using Shared.Phone.UserCenter; -using Shared.Phone.UserCenter.DoorLock; -using ZigBee.Device; - -namespace Shared.Phone.UserView -{ - /// <summary> - /// 涓婚〉(姝や笢瑗胯鑸嶅純,闄や簡瀹冮噷闈㈢殑闈欐�佹柟娉�) - /// </summary> - public class UserHomeView : EditorCommonForm - { - #region 鈻� 鍙橀噺澹版槑___________________________ - - /// <summary> - /// 鍔熻兘ScrolViewLayout - /// </summary> - private VerticalScrolViewLayout deviceVerticalScrolViewLayout; - /// <summary> - /// 鍔熻兘鍜屽満鏅痓odyView - /// </summary> - private FrameLayout functionSceneBodyView; - /// <summary> - /// 鍔熻兘鎸夐敭 - /// </summary> - private NormalViewControl btnFunction; - - /// <summary> - /// 璇诲彇璁惧鐘舵�佺殑绾跨▼鍒楄〃 - /// </summary> - private static List<System.Threading.Thread> threadList = new List<System.Threading.Thread> { }; - - /// <summary> - /// 缃戝叧 - /// </summary> - private ZbGateway zbGateway = null; - /// <summary> - /// 缃戝叧鍒楄〃 - /// </summary> - private List<ZbGateway> zbGatewayList = new List<ZbGateway> { }; - /// <summary> - /// 璁惧鍒楄〃 - /// </summary> - private List<CommonDevice> commonDeviceList = new List<CommonDevice> { }; - /// <summary> - /// 鏄惁鍙戦�佹帶鍒跺懡浠ゆ垚鍔熶簡 - /// </summary> - private bool sendedControlCommand = false; - - private FrameLayout itemView = new FrameLayout(); - /// <summary> - /// btnFloor - /// </summary> - private NormalViewControl btnFloor; - /// <summary> - /// sceneScrolView - /// </summary> - private VerticalScrolViewLayout sceneScrolView; - - #endregion - - #region 鈻� 鍒濆鍖朹____________________________ - - /// <summary> - /// 鐣岄潰鏄剧ず - /// </summary> - public void ShowForm() - { - this.BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor; - //娓呴櫎鍏ㄩ儴 - this.RemoveAll(); - //鍒濆鍖栧ご閮ㄦ帶浠� - this.InitTopFrameLayoutControl(); - //鍒濆鍖栦腑闂存帶浠� - this.InitMidFrameLayoutControl(); - //娣诲姞璁惧鐘舵�佷笂鎶ヤ簨浠� - this.AddDeviceReportEvent(); - } - - /// <summary> - /// 鍒濆鍖栧ご閮ㄦ帶浠� - /// </summary> - private void InitTopFrameLayoutControl() - { - //澶撮儴瀹瑰櫒 - base.topFrameLayout = new FrameLayout(); - topFrameLayout.Y = Application.GetRealHeight(60); - topFrameLayout.Height = Application.GetRealHeight(127); - topFrameLayout.BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor; - this.AddChidren(topFrameLayout); - - //鎷ユ湁妤煎眰 - if (Config.Instance.Home.FloorDics.Count > 0) - { - //妤煎眰鍥炬爣 - var btnFloorIcon = new IconViewControl(69); - btnFloorIcon.X = ControlCommonResourse.XXLeft; - btnFloorIcon.Gravity = Gravity.CenterVertical; - btnFloorIcon.UnSelectedImagePath = "Item/Floor.png"; - topFrameLayout.AddChidren(btnFloorIcon); - btnFloorIcon.ButtonClickEvent += (sender, e) => - { - //鏄剧ず閫夋嫨妤煎眰鐨勭晫闈� - this.ShowSelectFloorForm(); - }; - //妤煎眰鍚� - this.btnFloor = new NormalViewControl(500, 100, true); - btnFloor.X = btnFloorIcon.Right; - btnFloor.Gravity = Gravity.CenterVertical; - btnFloor.TextColor = ZigbeeColor.Current.GXCTextColor; - btnFloor.Text = Config.Instance.Home.GetCurrentFloorName; - btnFloor.IsBold = true; - topFrameLayout.AddChidren(btnFloor); - btnFloor.ButtonClickEvent += (sender, e) => - { - //鏄剧ず閫夋嫨妤煎眰鐨勭晫闈� - this.ShowSelectFloorForm(); - }; - } - //瀹夐槻蹇嵎鏂瑰紡 - if (UserCenterResourse.ResidenceOption.SafetyShortcut) - { - var btnSafety = new SafetyShortcutControl(); - btnSafety.X = Application.GetRealWidth(860); - btnSafety.Gravity = Gravity.CenterVertical; - topFrameLayout.AddChidren(btnSafety); - } - //娑堟伅鍥炬爣 - var btnMessage = new MessageManagementControl(); - btnMessage.X = Application.GetRealWidth(953); - btnMessage.Gravity = Gravity.CenterVertical; - btnMessage.UnSelectedImagePath = "Item/Message.png"; - btnMessage.SelectedImagePath = "Item/MessageSelected.png"; - topFrameLayout.AddChidren(btnMessage); - - //浣忓畢鍚嶅瓧 - var btnHouseName = new NormalViewControl(700, 95, true); - btnHouseName.X = ControlCommonResourse.XXLeft; - btnHouseName.Y = Application.GetRealHeight(161); - btnHouseName.TextSize = 24; - btnHouseName.TextColor = ZigbeeColor.Current.GXCTextDeepBlackColor; - btnHouseName.IsBold = true; - btnHouseName.Text = Config.Instance.Home.Name; - this.AddChidren(btnHouseName); - - //鍒囨崲浣忓畢 - btnHouseName.MouseLongEventHandler += (sender, e) => - { - if (Config.Instance.HomeFilePathList.Count == 0) - { - //褰撳墠浣忓畢涓虹┖锛岃鍏堝缓绔嬩綇瀹� - this.ShowMassage(ShowMsgType.Remind, Language.StringByID(R.MyInternationalizationString.CurrentlyTheUserIshHouseIsEmptyPleaseBuildANewHouseFirst)); - } - else - { - var selectHouse = new Device.Category.SelectHouse(); - selectHouse.Init(); - selectHouse.HouseAction = (houseId) => - { - ChangeResidence(House.GetHouseByHouseId(houseId)); - }; - } - }; - } - - /// <summary> - /// 鍒濆鍖栦腑闂存帶浠� - /// </summary> - private void InitMidFrameLayoutControl() - { - //妫�娴嬫槸鍚︾粦瀹氭湁缃戝叧 - if (this.CheckHadBindGateway() == false) - { - //鏄剧ず娌℃湁缁戝畾杩囩綉鍏崇殑鐣岄潰 - this.ShowNoGatewayTip(); - } - else - { - var roomPageView = new HorizontalPages(); - roomPageView.Y = Application.GetRealHeight(302); - roomPageView.Width = Application.GetRealWidth(CommonPage.AppRealWidth); - roomPageView.Height = Application.GetRealHeight(478); - this.AddChidren(roomPageView); - //绐佸嚭杈硅窛 - roomPageView.TCBJ = Application.GetRealWidth(124); - //涓や釜page涔嬮棿鐨勯棿璺� - roomPageView.JMBJ = Application.GetRealWidth(58); - - //褰撳墠鎴块棿 - var rList = HdlRoomLogic.Current.GetRoomsByCurrentFloorIdAppendLoveRoom(); - foreach (var room in rList) - { - var roomView = new Device.CommonForm.RoomView(0, 0); - roomPageView.AddChidren(roomView); - roomView.Init(room); - roomView.HideName(true); - } - //璁剧疆鎴块棿鐨勫垵濮嬮�夋嫨 - var curIndex = rList.FindIndex((obj) => obj.Id == HdlRoomLogic.Current.CurrentRoom.Id); - roomPageView.PageIndex = curIndex; - if (roomPageView.GetChildren(roomPageView.PageIndex) != null) - { - (roomPageView.GetChildren(roomPageView.PageIndex) as RoomView).HideName(false); - } - roomPageView.PageChange += (sender, e) => - { - if (roomPageView.GetChildren(roomPageView.PageIndex - 1) != null) - { - (roomPageView.GetChildren(roomPageView.PageIndex - 1) as RoomView).HideName(true); - } - if (roomPageView.GetChildren(roomPageView.PageIndex + 1) != null) - { - (roomPageView.GetChildren(roomPageView.PageIndex + 1) as RoomView).HideName(true); - } - if (roomPageView.GetChildren(roomPageView.PageIndex) != null) - { - (roomPageView.GetChildren(roomPageView.PageIndex) as RoomView).HideName(false); - } - //鍒囨崲褰撳墠鎴块棿 - HdlRoomLogic.Current.CurrentRoom = rList[roomPageView.PageIndex]; - //鍒锋柊璁惧妗屽竷鎺т欢 - this.RefreshBodyView(); - }; - - //鍔熻兘鍜屽満鏅殑鑳屾櫙鍥� - var functionSceneView = new FrameLayout(); - functionSceneView.Y = Application.GetRealHeight(861); - functionSceneView.Width = Application.GetRealWidth(832); - functionSceneView.Height = Application.GetRealHeight(167); - functionSceneView.Gravity = Gravity.CenterHorizontal; - functionSceneView.BackgroundImagePath = "Item/SceneFunctionBG.png"; - this.AddChidren(functionSceneView); - - //鍦烘櫙 - var btnScene = new NormalViewControl(350, 100, true); - btnScene.X = Application.GetRealWidth(30); - btnScene.Y = Application.GetRealHeight(12); - btnScene.TextColor = ZigbeeColor.Current.GXCTextGrayColor3; - btnScene.SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor; - btnScene.TextID = R.MyInternationalizationString.Scence; - btnScene.IsSelected = true; - btnScene.TextSize = 16; - btnScene.IsBold = true; - btnScene.TextAlignment = TextAlignment.Center; - functionSceneView.AddChidren(btnScene); - - //鍔熻兘 - btnFunction = new NormalViewControl(360, 100, true); - btnFunction.X = Application.GetRealWidth(430); - btnFunction.Y = Application.GetRealHeight(12); - btnFunction.TextColor = ZigbeeColor.Current.GXCTextGrayColor3; - btnFunction.SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor; - btnFunction.TextID = R.MyInternationalizationString.Function; - btnFunction.IsSelected = false; - btnFunction.TextAlignment = TextAlignment.Center; - functionSceneView.AddChidren(btnFunction); - - //鍔熻兘鍜屽満鏅痓odyView - functionSceneBodyView = new FrameLayout() - { - Y = functionSceneView.Bottom, - Height = Application.GetRealHeight(750), - Gravity = Gravity.CenterHorizontal, - BackgroundColor = ZigbeeColor.Current.GXCGrayBackgroundColor - }; - this.AddChidren(functionSceneBodyView); - - //閫夋嫨鍔熻兘鍒嗘爮 - btnFunction.ButtonClickEvent += (sender, e) => - { - btnScene.IsSelected = false; - btnFunction.IsSelected = true; - btnScene.TextSize = 14; - btnScene.IsBold = false; - btnFunction.TextSize = 16; - btnFunction.IsBold = true; - //鍒锋柊璁惧妗屽竷鎺т欢 - this.RefreshBodyView(); - }; - //閫夋嫨鍦烘櫙鍒嗘爮 - btnScene.ButtonClickEvent += (sender, e) => - { - btnFunction.IsSelected = false; - btnScene.IsSelected = true; - btnScene.TextSize = 16; - btnScene.IsBold = true; - btnFunction.TextSize = 14; - btnFunction.IsBold = false; - this.RefreshBodyView(); - }; - //鍒锋柊璁惧妗屽竷鎺т欢 - this.RefreshBodyView(); - } - } - - /// <summary> - /// 鎻愮ず鐢ㄦ埛娌℃湁缃戝叧锛屽苟蹇�熻烦杞埌娣诲姞缃戝叧鐣岄潰 - /// </summary> - private void ShowNoGatewayTip() - { - var bg = new PicViewControl(717, 478); - bg.Y = Application.GetRealHeight(302); - bg.Gravity = Gravity.CenterHorizontal; - bg.UnSelectedImagePath = "Item/NoBindGW.png"; - this.AddChidren(bg); - - var tip = new NormalViewControl(Application.GetMinRealAverage(717), Application.GetMinRealAverage(58), false); - tip.Y = Application.GetRealHeight(815); - tip.Gravity = Gravity.CenterHorizontal; - tip.TextID = R.MyInternationalizationString.NewAccountNeedBingGW; - tip.TextColor = ZigbeeColor.Current.GXCTextGrayColor; - tip.TextAlignment = TextAlignment.Center; - this.AddChidren(tip); - - var addBG = new PicViewControl(971, 366); - addBG.Y = Application.GetRealHeight(1048); - addBG.UnSelectedImagePath = "Item/VirtualFrame.png"; - addBG.Gravity = Gravity.CenterHorizontal; - this.AddChidren(addBG); - - var addGatewayBtn = new IconViewControl(89); - addGatewayBtn.Y = Application.GetRealHeight(1143); - addGatewayBtn.UnSelectedImagePath = "Item/Add_GW.png"; - addGatewayBtn.Gravity = Gravity.CenterHorizontal; - this.AddChidren(addGatewayBtn); - addGatewayBtn.ButtonClickEvent += (sender, e) => - { - var form = new UserCenter.GatewayAdd.NewGateWayMenuSelectForm(); - form.AddForm(); - }; - - var addTip = new PicViewControl(717, 58); - addTip.Y = Application.GetRealHeight(1256); - addTip.Gravity = Gravity.CenterHorizontal; - addTip.TextID = R.MyInternationalizationString.AddSmartGW; - addTip.TextColor = ZigbeeColor.Current.GXCTextBlackColor; - addTip.TextAlignment = TextAlignment.Center; - AddChidren(addTip); - - addTip.ButtonClickEvent += (sender, e) => - { - var form = new UserCenter.GatewayAdd.NewGateWayMenuSelectForm(); - form.AddForm(); - }; - } - - #endregion - - #region 鈻� 鍔熻兘鍒嗘敮___________________________ - - /// <summary> - /// 鏄剧ず娌℃湁鍔熻兘 - /// </summary> - private void ShowNoFunctionTip() - { - var noFunction = new Button - { - Y = Application.GetRealHeight(69), - Width = Application.GetMinRealAverage(683), - Height = Application.GetMinRealAverage(392), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/NoFunction.png" - }; - functionSceneBodyView.AddChidren(noFunction); - - var noFunctionTip = new Button() - { - Y = noFunction.Bottom, - Height = Application.GetRealHeight(200), - Text = Language.StringByID(R.MyInternationalizationString.NoFunction_Tip).Replace("{\\r\\n}", "\r\n"), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, - TextAlignment = TextAlignment.Center, - IsMoreLines = true - }; - functionSceneBodyView.AddChidren(noFunctionTip); - } - - /// <summary> - /// 鏄剧ず鍔熻兘 - /// </summary> - private void ShowFunction() - { - functionSceneBodyView.RemoveAll(); - //褰撳墠鎴块棿鐨勮澶囨暟 - if (HdlRoomLogic.Current.CurrentRoom.ListDevice.Count == 0) - { - ShowNoFunctionTip(); - } - else - { - var dList = new List<CommonDevice>(); - foreach (var mainkeys in HdlRoomLogic.Current.CurrentRoom.ListDevice) - { - var device = LocalDevice.Current.GetDevice(mainkeys); - if (device == null - || device.Type == DeviceType.OnOffSwitch//骞叉帴鐐� - || device.Type == DeviceType.Repeater)//涓户鍣� - { - continue; - } - dList.Add(device); - } - - deviceVerticalScrolViewLayout = new VerticalScrolViewLayout { }; - functionSceneBodyView.AddChidren(deviceVerticalScrolViewLayout); - for (int i = 0; i < dList.Count; i++) - { - var device = dList[i]; - Application.RunOnMainThread(() => - { - try - { - int t = i % 2; - int tt = i / 2; - int xx = 43 + i % 2 * (20 + 487); - int yy = 14; - if (i % 2 == 0) - { - itemView = new FrameLayout() - { - Height = Application.GetRealHeight(14 + 348), - }; - deviceVerticalScrolViewLayout.AddChidren(itemView); - } - //鏀惰棌 - EventHandler<MouseEventArgs> collectionEvent = (sender, e) => - { - if ((sender as Button).IsSelected) - { - //鍒犻櫎鎴戠殑鍠滅埍 - HdlRoomLogic.Current.DeleteLoveDevice(device); - (sender as Button).IsSelected = false; - } - else - { - //娣诲姞鎴戠殑鍠滅埍 - HdlRoomLogic.Current.AddLoveDevice(device); - (sender as Button).IsSelected = true; - } - if (HdlRoomLogic.Current.CurrentRoom.IsLove) - { - //鍒锋柊璁惧妗屽竷鎺т欢 - this.RefreshBodyView(); - } - }; - - if (device.Type == DeviceType.WindowCoveringDevice) - { - //绐楀笜 鍗峰笜 - var rollerShade = (ZigBee.Device.Rollershade)device; - if (rollerShade.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (rollerShade.Gateway.IsVirtual) - { - ReadStatus(rollerShade, () => - { - ReadDeviceAttributeLogic.Instance.SendCurtainStatuComand(device); - }); - } - else - { - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - rollerShade.LastDateTime).TotalSeconds) - { - ReadDeviceAttributeLogic.Instance.SendCurtainStatuComand(device); - } - } - }) - { IsBackground = true }.Start(); - - var functionView = new FunctionMainView(xx, yy); - functionView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - itemView.AddChidren(functionView); - functionView.Init(); - functionView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - functionView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - functionView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(rollerShade)); - functionView.IsSelected = rollerShade.WcdCurrentPositionLiftPercentage == 100; - functionView.SetCollect(true); - - functionView.SwitchButton.MouseUpEventHandler += (sender, e) => - { - (sender as Button).IsSelected = !(sender as Button).IsSelected; - if ((sender as Button).IsSelected) - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - (device as Rollershade).CurtainUpDownStopControl(0); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(Language.StringByID(R.MyInternationalizationString.Open)); - ((sender as Button).Parent as FunctionMainView).IsSelected = true; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - else - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - (device as Rollershade).CurtainUpDownStopControl(1); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(Language.StringByID(R.MyInternationalizationString.Close)); - ((sender as Button).Parent as FunctionMainView).IsSelected = false; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - }; - - functionView.CardBG.MouseUpEventHandler += (sender, e) => - { - CommonPage.Instance.IsDrawerLockMode = true; - var rollerShadeControl = new Phone.Device.Curtain.RollerShadeControl(); - UserView.HomePage.Instance.AddChidren(rollerShadeControl); - UserView.HomePage.Instance.PageIndex += 1; - UserView.HomePage.Instance.ScrollEnabled = false; - rollerShadeControl.IsDrawerLockMode = true; - rollerShadeControl.Show(device, HdlRoomLogic.Current.CurrentRoom); - rollerShadeControl.action += (curDev, curRoom) => - { - ReFreshEditDeviceAction(device, curRoom, functionView); - }; - }; - - functionView.CollectButton.MouseUpEventHandler += collectionEvent; - } - } - else if (device.Type == DeviceType.OnOffOutput) - { - //寮�鍏崇伅 - var light = device as ToggleLight; - if (light.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (light.Gateway.IsVirtual) - { - ReadStatus(light, () => - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - }); - } - else - { - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - light.LastDateTime).TotalSeconds) - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - } - } - }) - { IsBackground = true }.Start(); - - var functionView = new FunctionMainView(xx, yy); - itemView.AddChidren(functionView); - functionView.Init(); - functionView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - functionView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - functionView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - functionView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - functionView.IsSelected = light.OnOffStatus == 1; - functionView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - - if (HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - functionView.CollectButton.IsSelected = false; - } - else - { - functionView.CollectButton.IsSelected = true; - } - - functionView.SwitchButton.MouseUpEventHandler += (sender, e) => - { - (sender as Button).IsSelected = !(sender as Button).IsSelected; - if ((sender as Button).IsSelected) - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - light.SwitchControl(1); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - ((sender as Button).Parent as FunctionMainView).IsSelected = true; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - else - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - light.SwitchControl(0); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - ((sender as Button).Parent as FunctionMainView).IsSelected = false; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - }; - - functionView.CardBG.MouseUpEventHandler += (sender, e) => - { - CommonPage.Instance.IsDrawerLockMode = true; - - var lightControl = new Phone.Device.Light.OnOffControl(); - UserView.HomePage.Instance.AddChidren(lightControl); - UserView.HomePage.Instance.PageIndex += 1; - lightControl.IsDrawerLockMode = true; - lightControl.Show(device, HdlRoomLogic.Current.CurrentRoom); - lightControl.action += (curDev, curRoom) => - { - ReFreshEditDeviceAction(device, curRoom, functionView); - }; - }; - - functionView.CollectButton.MouseUpEventHandler += collectionEvent; - } - } - else if (device.Type == DeviceType.AirSwitch) - { - //绌烘皵寮�鍏� - var airSwitch = device as AirSwitch; - if (airSwitch.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (airSwitch.Gateway.IsVirtual) - { - ReadStatus(airSwitch, () => - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - }); - } - else - { - if ((DateTime.Now - airSwitch.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendLightStatuComand(device); - } - } - }) - { IsBackground = true }.Start(); - - var functionView = new FunctionMainView(xx, yy); - itemView.AddChidren(functionView); - functionView.Init(); - functionView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - functionView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - functionView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - functionView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(airSwitch)); - functionView.IsSelected = airSwitch.OnOffStatus == 1; - functionView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - - functionView.SwitchButton.MouseUpEventHandler += (sender, e) => - { - (sender as Button).IsSelected = !(sender as Button).IsSelected; - if ((sender as Button).IsSelected) - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - airSwitch.SwitchControl(1); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - ((sender as Button).Parent as FunctionMainView).IsSelected = true; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - else - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - airSwitch.SwitchControl(0); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - ((sender as Button).Parent as FunctionMainView).IsSelected = false; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - }; - - functionView.CardBG.MouseUpEventHandler += (sender, e) => - { - CommonPage.Instance.IsDrawerLockMode = true; - var lightControl = new Phone.Device.Light.AirSwitchControl(); - UserView.HomePage.Instance.AddChidren(lightControl); - UserView.HomePage.Instance.PageIndex += 1; - lightControl.IsDrawerLockMode = true; - lightControl.Show(device, HdlRoomLogic.Current.CurrentRoom); - lightControl.action += (curDev, curRoom) => - { - ReFreshEditDeviceAction(device, curRoom, functionView); - }; - - }; - - functionView.CollectButton.MouseUpEventHandler += collectionEvent; - } - } - else if (device.Type == DeviceType.Thermostat) - { - //鎭掓俯鍣�-AC-绌鸿皟 - var ac = device as AC; - if (ac.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (ac.Gateway.IsVirtual) - { - ReadStatus(ac, () => - { - ReadDeviceAttributeLogic.Instance.SendACStatuComand(device); - }); - } - else - { - if ((DateTime.Now - ac.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendACStatuComand(device); - } - } - }) - { IsBackground = true }.Start(); - - var functionView = new FunctionMainView(xx, yy); - itemView.AddChidren(functionView); - functionView.Init(); - functionView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - functionView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - functionView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - functionView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - functionView.IsSelected = ac.currentSystemMode != 0; - functionView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - - functionView.SwitchButton.MouseUpEventHandler += (sender, e) => - { - (sender as Button).IsSelected = !(sender as Button).IsSelected; - if ((sender as Button).IsSelected) - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - ac.Open(); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - ((sender as Button).Parent as FunctionMainView).IsSelected = true; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - else - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - ac.Close(); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - ((sender as Button).Parent as FunctionMainView).IsSelected = false; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - }; - - functionView.CardBG.MouseUpEventHandler += (sender, e) => - { - CommonPage.Instance.IsDrawerLockMode = true; - var lightControl = new Phone.Device.AC.ACControl(); - UserView.HomePage.Instance.AddChidren(lightControl); - UserView.HomePage.Instance.PageIndex += 1; - lightControl.IsDrawerLockMode = true; - lightControl.Show(device, HdlRoomLogic.Current.CurrentRoom); - lightControl.action += (curDev, curRoom) => - { - ReFreshEditDeviceAction(device, curRoom, functionView); - }; - }; - - functionView.CollectButton.MouseUpEventHandler += collectionEvent; - } - } - else if (device.Type == DeviceType.DimmableLight) - { - //璋冨厜鐏� - var dimmableLight = device as DimmableLight; - if (dimmableLight.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (dimmableLight.Gateway.IsVirtual) - { - //鍙戦�佽鍙栫姸鎬佸懡浠� - ReadStatus(dimmableLight, () => - { - ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(device); - }); - } - else - { - //闃叉鐭椂闂村唴澶氭璇诲彇璁惧鐘舵�� - if ((DateTime.Now - dimmableLight.LastDateTime).TotalSeconds > CommonPage.ReadDeviceStatuSpan) - { - ReadDeviceAttributeLogic.Instance.SendDimmableLightStatuComand(device); - } - } - }) - { IsBackground = true }.Start(); - - var functionView = new FunctionMainView(xx, yy); - itemView.AddChidren(functionView); - functionView.Init(); - functionView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - functionView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - functionView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - functionView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - functionView.IsSelected = dimmableLight.OnOffStatus == 1; - functionView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - - if (HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - functionView.CollectButton.IsSelected = false; - } - else - { - functionView.CollectButton.IsSelected = true; - } - - functionView.SwitchButton.MouseUpEventHandler += (sender, e) => - { - (sender as Button).IsSelected = !(sender as Button).IsSelected; - if ((sender as Button).IsSelected) - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - dimmableLight.SwitchControl(1); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - ((sender as Button).Parent as FunctionMainView).IsSelected = true; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - else - { - zbGateway = device.Gateway; - sendedControlCommand = false; - zbGateway.ReportAction += UpdateDeviceControllStatu; - AddZbGateway(zbGatewayList, zbGateway, commonDeviceList, device); - - dimmableLight.SwitchControl(0); - - ((sender as Button).Parent as FunctionMainView).SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - ((sender as Button).Parent as FunctionMainView).IsSelected = false; - - //鎺у埗寤舵椂鍥炶皟 - HdlDeviceOtherLogic.Current.SendCommandDelayAction(device, () => - { - if (Parent == null) - { - return; - } - RemoveUpdateControlDeviceStatuAction(zbGateway); - if (sendedControlCommand == false) - { - HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.FAIL); - } - }); - } - }; - - functionView.CardBG.MouseUpEventHandler += (sender, e) => - { - CommonPage.Instance.IsDrawerLockMode = true; - var dimmableLightControl = new Phone.Device.Light.DimmableLightControl(); - UserView.HomePage.Instance.AddChidren(dimmableLightControl); - UserView.HomePage.Instance.PageIndex += 1; - dimmableLightControl.IsDrawerLockMode = true; - dimmableLightControl.Show(device, HdlRoomLogic.Current.CurrentRoom); - dimmableLightControl.action += (curDev, curRoom) => - { - ReFreshEditDeviceAction(device, curRoom, functionView); - }; - }; - functionView.CollectButton.MouseUpEventHandler += collectionEvent; - } - } - else if (device.Type == DeviceType.IASZone) - { - //鍚勭被浼犳劅鍣� - var ias = device as IASZone; - - var lightView = new FunctionMainView(xx, yy); - itemView.AddChidren(lightView); - lightView.Init(); - lightView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - lightView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - lightView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - lightView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - lightView.IsSelected = ias.iASInfo?.Alarm1 == 1; - lightView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - lightView.CanControl(false); - if (HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - lightView.CollectButton.IsSelected = false; - } - else - { - lightView.CollectButton.IsSelected = true; - } - lightView.CollectButton.MouseUpEventHandler += collectionEvent; - } - else if (device.Type == DeviceType.TemperatureSensor) - { - var tempera = device as TemperatureSensor; - - if (tempera.Gateway != null) - { - new System.Threading.Thread(() => - { - System.Threading.Thread.Sleep(100 * i); - if (tempera.Gateway.IsVirtual) - { - ReadStatus(tempera, () => - { - if (tempera.SensorDiv == 1) - { - ReadDeviceAttributeLogic.Instance.SendTemperatureStatuComand(device); - } - else if (tempera.SensorDiv == 2) - { - ReadDeviceAttributeLogic.Instance.SendHumidityStatuComand(device); - } - }); - } - else - { - if (CommonPage.ReadDeviceStatuSpan < (DateTime.Now - tempera.LastDateTime).TotalSeconds) - { - if (tempera.SensorDiv == 1) - { - ReadDeviceAttributeLogic.Instance.SendTemperatureStatuComand(device); - } - else if (tempera.SensorDiv == 2) - { - ReadDeviceAttributeLogic.Instance.SendHumidityStatuComand(device); - } - } - } - }) - { IsBackground = true }.Start(); - - var lightView = new FunctionMainView(xx, yy); - itemView.AddChidren(lightView); - lightView.Init(); - lightView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - lightView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - lightView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - lightView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - lightView.IsSelected = false; - lightView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - lightView.CanControl(false); - if (HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - lightView.CollectButton.IsSelected = false; - } - else - { - lightView.CollectButton.IsSelected = true; - } - lightView.CollectButton.MouseUpEventHandler += collectionEvent; - } - } - else if (device.Type == DeviceType.DoorLock) - { - //闂ㄩ攣 - var dimmableLight = device as DoorLock; - - var lightView = new FunctionMainView(xx, yy); - itemView.AddChidren(lightView); - lightView.Init(); - lightView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - lightView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - lightView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - lightView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - lightView.IsSelected = false; - lightView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - lightView.CanControl(false); - if (HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - lightView.CollectButton.IsSelected = false; - } - else - { - lightView.CollectButton.IsSelected = true; - } - - lightView.CardBG.MouseUpEventHandler += (sender, e) => - { - CommonPage.Instance.IsDrawerLockMode = true; - var userDoorLockPage = new UserDoorLockPage(HdlRoomLogic.Current.CurrentRoom, device); - HomePage.Instance.AddChidren(userDoorLockPage); - HomePage.Instance.PageIndex += 1; - userDoorLockPage.Show(); - }; - lightView.CollectButton.MouseUpEventHandler += collectionEvent; - } - else - { - var lightView = new FunctionMainView(xx, yy); - itemView.AddChidren(lightView); - lightView.Init(); - lightView.Tag = LocalDevice.Current.GetDeviceMainKeys(device); - lightView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - lightView.SetStatuText(HdlDeviceOtherLogic.Current.GetDeviceStatu(device)); - lightView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - lightView.CanControl(false); - lightView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - - if (HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - lightView.CollectButton.IsSelected = false; - } - else - { - lightView.CollectButton.IsSelected = true; - } - lightView.CollectButton.MouseUpEventHandler += collectionEvent; - } - } - catch (Exception ex) - { - - } - }); - //}) - //{ IsBackground = true }.Start(); - } - } - } - - /// <summary> - /// ReFreshEditDeviceAction - /// </summary> - /// <param name="device"></param> - /// <param name="curRoom"></param> - /// <param name="functionView"></param> - private void ReFreshEditDeviceAction(CommonDevice device, Common.Room curRoom, FunctionMainView functionView) - { - if (HdlRoomLogic.Current.CurrentRoom.IsLove) - { - functionView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - functionView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - if (HdlRoomLogic.Current.IsCollectInRoom(device) == false) - { - ShowFunction(); - } - } - else - { - if (curRoom.Id != HdlRoomLogic.Current.CurrentRoom.Id) - { - ShowFunction(); - } - else - { - functionView.SetDeviceImage(device.IconPath, device.OnlineIconPath); - functionView.SetDeviceName(Common.LocalDevice.Current.GetDeviceEpointName(device)); - functionView.SetCollect(HdlRoomLogic.Current.IsCollectInRoom(device)); - } - } - } - - #endregion - - #region 鈻� 鍦烘櫙鍒嗘敮___________________________ - - /// <summary> - /// 鏄剧ず娌″満鏅� - /// </summary> - private void ShowNoSceneTip() - { - var noScene = new Button - { - Y = Application.GetRealHeight(69), - Width = Application.GetMinRealAverage(683), - Height = Application.GetMinRealAverage(392), - Gravity = Gravity.CenterHorizontal, - UnSelectedImagePath = "Item/NoFunction.png" - }; - functionSceneBodyView.AddChidren(noScene); - var noScenceTip = new Button() - { - Y = noScene.Bottom, - Height = Application.GetRealHeight(200), - Text = Language.StringByID(R.MyInternationalizationString.NoScene_Tip).Replace("{\\r\\n}", "\r\n"), - TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, - TextAlignment = TextAlignment.Center, - IsMoreLines = true - }; - functionSceneBodyView.AddChidren(noScenceTip); - } - - /// <summary> - /// 鏄剧ず鍦烘櫙 - /// </summary> - private void ShowScene() - { - functionSceneBodyView.RemoveAll(); - //閫夋嫨鍦烘櫙 - var sceneList = HdlSceneLogic.Current.GetRoomSceneList(HdlRoomLogic.Current.CurrentRoom); - if (sceneList == null) - { - return; - } - if (sceneList.Count == 0) - { - ShowNoSceneTip(); - } - else - { - sceneScrolView = new VerticalScrolViewLayout { }; - functionSceneBodyView.AddChidren(sceneScrolView); - for (int i = 0; i < sceneList.Count; i++) - { - var scene = sceneList[i]; - int xx = 33 + i % 2 * (40 + 487); - int yy = 14; - if (scene == null) - { - continue; - } - - if (i % 2 == 0) - { - itemView = new FrameLayout() - { - Height = Application.GetRealHeight(14 + 348), - Tag = scene.Id - }; - sceneScrolView.AddChidren(itemView); - } - - var sceneView = new SceneMainView(xx, yy); - sceneView.Init(scene); - itemView.AddChidren(sceneView); - sceneView.CollectionAction += ShowScene; - } - GetDelayScene(sceneScrolView); - } - } - - /// <summary> - /// GetDelayScene - /// </summary> - /// <param name="scrolViewLayout"></param> - private async void GetDelayScene(VerticalScrolViewLayout scrolViewLayout) - { - - var catDelaySceneResponseAllData = await Scene.CatDelaySceneAsync(); - if (catDelaySceneResponseAllData == null) - { - return; - } - var catDelaySceneResponseData = catDelaySceneResponseAllData.catDelaySceneResponseData; - if (catDelaySceneResponseData == null || catDelaySceneResponseData.DelayScenesList.Count == 0) - { - return; - } - var delayList = catDelaySceneResponseData.DelayScenesList; - - for (int i = 0; scrolViewLayout != null && i < scrolViewLayout.ChildrenCount; i++) - { - var iView = scrolViewLayout.GetChildren(i) as FrameLayout; - for (int j = 0; iView != null && j < iView.ChildrenCount; j++) - { - var sceneView = iView.GetChildren(j) as SceneMainView; - foreach (var delayScenesListResponseInfo in delayList) - { - if (delayScenesListResponseInfo.ScenesId == sceneView.scene.Id) - { - var remainTime = delayScenesListResponseInfo.RemainTime; - sceneView.scene.RemainTime = remainTime; - - if (remainTime > 0) - { - new System.Threading.Thread(() => - { - while (remainTime-- > 0) - { - System.Threading.Thread.Sleep(1000); - Application.RunOnMainThread(() => - { - sceneView.SetTimeText(CommonFormResouce.GetTimeString(remainTime)); - }); - } - Application.RunOnMainThread(() => - { - sceneView.scene.RemainTime = 0; - sceneView.SetTimeImage(); - }); - }) - { IsBackground = true }.Start(); - } - break; - } - } - } - } - } - - #endregion - - #region 鈻� 鍒锋柊_______________________________ - - /// <summary> - /// 鍒锋柊璁惧妗屽竷鎺т欢 - /// </summary> - public void RefreshBodyView() - { - functionSceneBodyView.RemoveAll(); - if (btnFunction.IsSelected) - { - ShowFunction(); - } - else - { - ShowScene(); - } - } - - #endregion - - #region 鈻� 鍒囨崲浣忓畢___________________________ - /// <summary> - /// 鍒囨崲浣忓畢 - /// </summary> - /// <param name="home">Home.</param> - private void ChangeResidence(House home) - { - try - { - CommonPage.Loading.Start(); - new System.Threading.Thread(async () => - { - Config.Instance.HomeId = home.Id; - Config.Instance.Home = House.GetHouseByFilePath(home.FileName); - Global.CreateHomeDirectory(home.Id); - Config.Instance.Save(); - //鍒锋柊涓汉涓績鐨勫唴瀛樺強绾跨▼ - await UserCenter.UserCenterLogic.InitUserCenterMenmoryAndThread(); - //鍒濆鍖栧叏閮ㄦ埧闂� - HdlRoomLogic.Current.InitAllRoom(); - - Application.RunOnMainThread(() => - { - ShowForm(); - CommonPage.Loading.Hide(); - }); - }) - { IsBackground = true }.Start(); - } - catch (Exception ex) - { - Application.RunOnMainThread(() => - { - CommonPage.Loading.Hide(); - //new Alert(Language.StringByID(R.MyInternationalizationString.Tip), Language.StringByID(R.MyInternationalizationString.CheckInternet), Language.StringByID(R.MyInternationalizationString.Close)).Show(); - Console.WriteLine(ex.Message); - }); - } - } - - #endregion - - #region 鈻� 杩涜璁惧鐘舵�佽鍙朹__________________ - - /// <summary> - /// 鍒ゆ柇鏄惁鍙互杩涜璁惧鐘舵�佽鍙栥�傚湪鍥炶皟涓鍙� - /// </summary> - /// <param name="commonDevice">Common device.</param> - /// <param name="action">鍥炶皟澶勭悊--鍙戦�佽鍙栧懡浠�</param> - /// <param name="span">Span. 榛樿30绉�</param> - public static void ReadStatus(CommonDevice commonDevice, Action action, int span = 30) - { - var threadName = commonDevice.GetHashCode().ToString(); - if (null == threadList.Find((obj) => obj.Name == threadName)) - { - var thread = new System.Threading.Thread(() => - { - var dateTime = DateTime.Now; - while ((DateTime.Now - dateTime).TotalSeconds < 10) - { - System.Threading.Thread.Sleep(100); - if (commonDevice.Gateway == null) - { - return; - } - if (!commonDevice.Gateway.IsVirtual) - { - break; - } - } - lock (threadList) - { - threadList.RemoveAll((obj) => obj.Name == threadName); - } - //闃叉鐭椂闂村唴璇诲彇棰戠箒 - if (span < (DateTime.Now - commonDevice.LastDateTime).TotalSeconds) - { - action?.Invoke(); - }; - }) - { IsBackground = true, Name = threadName }; - lock (threadList) - { - threadList.Add(thread); - } - thread.Start(); - } - } - - #endregion - - #region 鈻� 鎺у埗鐘舵�乢__________________________ - - /// <summary> - /// 鏄剧ず璁惧鎺у埗鐘舵�� - /// </summary> - /// <param name="command">Command.</param> - /// <param name="objValue">Object value.</param> - private void UpdateDeviceControllStatu(string command, object objValue) - { - if (command != "DeviceDefaultAck" || objValue == null) - { - return; - } - var tempDevice = (CommonDevice)objValue; - if (null == commonDeviceList.Find((obj) => obj.DeviceEpoint == tempDevice.DeviceEpoint && obj.DeviceAddr == tempDevice.DeviceAddr)) - { - return; - } - //鏍囪宸茬粡鍙戦�佹帶鍒跺懡浠ゅ埌缃戝叧 - sendedControlCommand = true; - //HdlDeviceOtherLogic.Current.ShowStatuTip(R.MyInternationalizationString.Success); - } - - /// <summary> - /// 绉婚櫎鍏ㄩ儴鏇存柊鎺у埗璁惧鐨刟ction - /// </summary> - private void RemoveAllUpdateControlDeviceStatuAction() - { - foreach (var gateway in zbGatewayList) - { - //绉婚櫎action - if (gateway != null) - { - gateway.ReportAction -= UpdateDeviceControllStatu; - } - } - } - - /// <summary> - /// 绉婚櫎鍗曚釜鎺у埗璁惧鐨勬洿鏂扮姸鎬乤ction - /// </summary> - /// <param name="gateway">Gateway.</param> - private void RemoveUpdateControlDeviceStatuAction(ZbGateway gateway) - { - //绉婚櫎action - if (gateway != null) - { - gateway.ReportAction -= UpdateDeviceControllStatu; - } - } - - /// <summary> - /// 娣诲姞闇�瑕佺洃鎺у洖璋冪姸鎬佺殑缃戝叧鍜岃澶� - /// </summary> - /// <param name="gatewayList">Gateway list.</param> - /// <param name="gateway">Gateway.</param> - /// <param name="deviceList">Device list.</param> - /// <param name="common">Common.</param> - private void AddZbGateway(List<ZbGateway> gatewayList, ZbGateway gateway, List<CommonDevice> deviceList, CommonDevice common) - { - if (null == gatewayList.Find((obj) => obj.getGatewayBaseInfo.gwID == gateway.getGatewayBaseInfo.gwID)) - { - gatewayList.Add(gateway); - } - if (null == commonDeviceList.Find((obj) => obj.DeviceEpoint == common.DeviceEpoint && obj.DeviceAddr == common.DeviceAddr)) - { - commonDeviceList.Add(common); - } - } - - #endregion - - #region 鈻� 璁惧鐘舵�佷笂鎶______________________ - - /// <summary> - /// 娣诲姞璁惧鐘舵�佷笂鎶ヤ簨浠� - /// </summary> - private void AddDeviceReportEvent() - { - //璁惧灞炴�т笂鎶� - HdlGatewayReceiveLogic.Current.AddAttributeEvent("UserHomeViewDeviceStatus", ReceiveComandDiv.A璁惧灞炴�т笂鎶�, (report) => - { - HdlThreadLogic.Current.RunMain(() => - { - if (report.DeviceStatusReport.AttriBute == null || report.DeviceStatusReport.AttriBute.Count == 0) - { - return; - } - for (int i = 0; deviceVerticalScrolViewLayout != null && i < deviceVerticalScrolViewLayout.ChildrenCount; i++) - { - var rowFL = deviceVerticalScrolViewLayout.GetChildren(i) as FrameLayout; - if (rowFL.ChildrenCount == 0) - { - //璁惧涓虹┖鎴栬�呮帶浠朵负绌� - continue; - } - - for (int j = 0; j < rowFL.ChildrenCount; j++) - { - var deviceUI = LocalDevice.Current.GetDevice((rowFL.GetChildren(j) as FunctionMainView).Tag.ToString()); - if (deviceUI == null) - { - //璁惧涓虹┖鎴栬�呮帶浠朵负绌� - continue; - } - if (report.DeviceAddr != deviceUI.DeviceAddr || report.DeviceEpoint != deviceUI.DeviceEpoint) - { - //鍒ゆ柇鏄惁涓哄綋鍓嶈澶� - continue; - } - - switch (deviceUI.Type) - { - case DeviceType.OnOffOutput: - //寮�鍏冲姛鑳� - if (report.DeviceStatusReport.CluterID == 6) - { - var onOffOutputLight = deviceUI as ZigBee.Device.ToggleLight; - onOffOutputLight.DeviceStatusReport = report.DeviceStatusReport; - onOffOutputLight.OnOffStatus = onOffOutputLight.DeviceStatusReport.AttriBute[0].AttriButeData; - (rowFL.GetChildren(j) as FunctionMainView).IsSelected = onOffOutputLight.OnOffStatus == 1; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - onOffOutputLight.LastDateTime = DateTime.Now; - } - break; - - case DeviceType.AirSwitch: - //寮�鍏冲姛鑳� - if (report.DeviceStatusReport.CluterID == 6) - { - var airSwitch = deviceUI as ZigBee.Device.AirSwitch; - airSwitch.DeviceStatusReport = report.DeviceStatusReport; - airSwitch.OnOffStatus = airSwitch.DeviceStatusReport.AttriBute[0].AttriButeData; - (rowFL.GetChildren(j) as FunctionMainView).IsSelected = airSwitch.OnOffStatus == 1; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - airSwitch.LastDateTime = DateTime.Now; - } - //褰揅luterID=3,灏辫瘉鏄庤璁惧鍦ㄧ嚎锛岀洿鎺ユ爣璁� - if (report.DeviceStatusReport.CluterID == 3) - { - deviceUI.IsOnline = 1; - deviceUI.LastDateTime = DateTime.Now; - } - break; - - case DeviceType.WindowCoveringDevice: - if (report.DeviceStatusReport.CluterID == 258) - { - if (report.DeviceStatusReport.AttriBute[0].AttributeId == 0) - { - //绐楀笜绫诲瀷 - var rollerShade = deviceUI as Rollershade; - rollerShade.DeviceStatusReport = report.DeviceStatusReport; - rollerShade.WcdType = report.DeviceStatusReport.AttriBute[0].AttriButeData; - rollerShade.LastDateTime = DateTime.Now; - (rowFL.GetChildren(j) as FunctionMainView).IsSelected = rollerShade.WcdCurrentPositionLiftPercentage == 100; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - } - if (report.DeviceStatusReport.AttriBute[0].AttributeId == 8) - { - //绐楀笜鐧惧垎姣� - var rollerShade = deviceUI as Rollershade; - rollerShade.DeviceStatusReport = report.DeviceStatusReport; - rollerShade.WcdCurrentPositionLiftPercentage = report.DeviceStatusReport.AttriBute[0].AttriButeData; - rollerShade.LastDateTime = DateTime.Now; - (rowFL.GetChildren(j) as FunctionMainView).IsSelected = rollerShade.WcdCurrentPositionLiftPercentage == 100; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - } - } - if (report.DeviceStatusReport.CluterID == 3) - { - deviceUI.IsOnline = 1; - deviceUI.LastDateTime = DateTime.Now; - } - break; - - case DeviceType.Thermostat: - //AC鍔熻兘 - if (report.DeviceStatusReport.CluterID == 513) - { - var ac = deviceUI as ZigBee.Device.AC; - ac.DeviceStatusReport = report.DeviceStatusReport; - var attriButeList = ac.DeviceStatusReport.AttriBute; - foreach (var attList in attriButeList) - { - var curTemp = attList.AttriButeData / 100; - switch (attList.AttributeId) - { - case 0: - //姝ゅ睘鎬ц〃鏄庡鍐呭綋鍓嶇殑娓╁害 * 100锛屽疄闄呮俯搴︿负鈥淟ocalTemperature / 100鈥濓紝鍗曚綅锛氣剝 - ac.currentLocalTemperature = curTemp; - ac.LastDateTime = DateTime.Now; - break; - case 17: - //姝ゅ睘鎬ц〃鏄庢璁惧褰撳墠鐨勫埗鍐锋俯搴︼紝瀹為檯娓╁害涓衡�淐oolingSetpoint / 100鈥濓紝鍗曚綅锛氣剝銆� - ac.currentCoolingSetpoint = curTemp; - ac.LastDateTime = DateTime.Now; - break; - case 18: - //姝ゅ睘鎬ц〃鏄庢璁惧褰撳墠鐨勫埗鐑俯搴︼紝瀹為檯娓╁害涓衡�淗eatingSetpoint / 100鈥濓紝鍗曚綅锛氣剝銆� - ac.currentHeatingSetpoint = curTemp; - ac.LastDateTime = DateTime.Now; - break; - case 4096: - //姝ゅ睘鎬ц〃鏄庢璁惧褰撳墠鐨勮嚜鍔ㄦ俯搴︼紝瀹為檯娓╁害涓衡�淎utoSetpoint / 100鈥濓紝鍗曚綅锛氣剝銆� - ac.currentAutoSetpoint = curTemp; - ac.LastDateTime = DateTime.Now; - break; - - case 28: - //姝ゅ睘鎬ф弿杩版亽娓╄澶囨澶勪簬鍝妯″紡 - ac.currentSystemMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - break; - } - } - (rowFL.GetChildren(j) as FunctionMainView).IsSelected = ac.currentSystemMode != 0; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - } - if (report.DeviceStatusReport.CluterID == 514) - { - var ac = deviceUI as ZigBee.Device.AC; - var attriButeList = report.DeviceStatusReport.AttriBute; - ac.DeviceStatusReport = report.DeviceStatusReport; - foreach (var attList in attriButeList) - { - switch (attList.AttributeId) - { - case 0: - ac.currentFanMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - break; - case 4096: - ac.currentFanSwingMode = attList.AttriButeData; - ac.LastDateTime = DateTime.Now; - break; - } - } - (rowFL.GetChildren(j) as FunctionMainView).IsSelected = ac.currentSystemMode != 0; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - } - //褰揅luterID=3,灏辫瘉鏄庤璁惧鍦ㄧ嚎锛岀洿鎺ユ爣璁� - if (report.DeviceStatusReport.CluterID == 3) - { - deviceUI.IsOnline = 1; - deviceUI.LastDateTime = DateTime.Now; - } - break; - - case DeviceType.DimmableLight: - //璋冨厜鐏姛鑳� - if (report.DeviceStatusReport.CluterID == 6) - { - var dimmableLight = deviceUI as DimmableLight; - dimmableLight.DeviceStatusReport = report.DeviceStatusReport; - dimmableLight.OnOffStatus = dimmableLight.DeviceStatusReport.AttriBute[0].AttriButeData; - (rowFL.GetChildren(j) as FunctionMainView).IsSelected = dimmableLight.OnOffStatus == 1; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - dimmableLight.LastDateTime = DateTime.Now; - } - - //浜害 - if (report.DeviceStatusReport.CluterID == 8) - { - var dimmableLight = deviceUI as DimmableLight; - dimmableLight.DeviceStatusReport = report.DeviceStatusReport; - var attriButeList = dimmableLight.DeviceStatusReport.AttriBute; - switch (attriButeList[0].AttributeId) - { - case 0: - //姝ゅ睘鎬ц〃鏄庡綋鍓嶄寒搴︾▼搴� - dimmableLight.Level = attriButeList[0].AttriButeData; - dimmableLight.LastDateTime = DateTime.Now; - //(rowFL.GetChildren(j) as FunctionMainView).IsSelected = true; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - break; - } - } - break; - case DeviceType.TemperatureSensor: - //娓╁害 - if (report.DeviceStatusReport.CluterID == 1026) - { - var tempera = deviceUI as TemperatureSensor; - foreach (var data in report.DeviceStatusReport.AttriBute) - { - if (data.AttributeId == (int)ZigBee.Device.AttriButeId.MeasuredValue) - { - if (data.AttriButeData == 0) - { - tempera.Temperatrue = 0; - } - else if (data.AttriButeData > 32767) - { - //璐熸暟(鐗规畩澶勭悊) - string strValue = (data.AttriButeData - 65536).ToString(); - //灏忔暟鐐归渶瑕佷竴浣� - strValue = strValue.Substring(0, strValue.Length - 1); - tempera.Temperatrue = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - } - else - { - //灏忔暟鐐归渶瑕佷竴浣� - string strValue = data.AttriButeData.ToString(); - strValue = strValue.Substring(0, strValue.Length - 1); - tempera.Temperatrue = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - } - - tempera.LastDateTime = DateTime.Now; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - } - } - } - //婀垮害 - if (report.DeviceStatusReport.CluterID == 1029) - { - var tempera = deviceUI as TemperatureSensor; - foreach (var data in report.DeviceStatusReport.AttriBute) - { - if (data.AttributeId == (int)ZigBee.Device.AttriButeId.MeasuredValue) - { - if (data.AttriButeData == 0) - { - tempera.Humidity = 0; - } - else - { - //灏忔暟鐐归渶瑕佷竴浣�(婀垮害娌℃湁璐熸暟) - string strValue = data.AttriButeData.ToString(); - strValue = strValue.Substring(0, strValue.Length - 1); - tempera.Humidity = Convert.ToDecimal(strValue.Insert(strValue.Length - 1, ".")); - } - tempera.LastDateTime = DateTime.Now; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - } - } - } - break; - } - } - } - - }, ShowErrorMode.NO); - }); - - //浼犳劅鍣ㄤ笂鎶� - HdlGatewayReceiveLogic.Current.AddAttributeEvent("UserHomeViewSensor", ReceiveComandDiv.A浼犳劅鍣ㄤ笂鎶�, (report) => - { - HdlThreadLogic.Current.RunMain(() => - { - for (int i = 0; deviceVerticalScrolViewLayout != null && i < deviceVerticalScrolViewLayout.ChildrenCount; i++) - { - var rowFL = deviceVerticalScrolViewLayout.GetChildren(i) as FrameLayout; - if (rowFL.ChildrenCount == 0) - { - //璁惧涓虹┖鎴栬�呮帶浠朵负绌� - continue; - } - - for (int j = 0; j < rowFL.ChildrenCount; j++) - { - var deviceUI = LocalDevice.Current.GetDevice((rowFL.GetChildren(j) as FunctionMainView).Tag.ToString()); - if (deviceUI == null) - { - //璁惧涓虹┖鎴栬�呮帶浠朵负绌� - continue; - } - if (report.DeviceAddr != deviceUI.DeviceAddr || report.DeviceEpoint != deviceUI.DeviceEpoint) - { - //鍒ゆ柇鏄惁涓哄綋鍓嶈澶� - continue; - } - - switch (deviceUI.Type) - { - case DeviceType.IASZone: - //ias - var ias = report as IASZone; - var iAS = deviceUI as ZigBee.Device.IASZone; - iAS.iASInfo = ias.iASInfo; - (rowFL.GetChildren(j) as FunctionMainView).IsSelected = iAS.iASInfo?.Alarm1 == 1; - (rowFL.GetChildren(j) as FunctionMainView).StatuButton.Text = HdlDeviceOtherLogic.Current.GetDeviceStatu(deviceUI); - iAS.LastDateTime = DateTime.Now; - break; - } - } - } - }, ShowErrorMode.NO); - }); - } - - #endregion - - #region 鈻� 鍒囨崲妤煎眰___________________________ - - /// <summary> - /// 鏄剧ず閫夋嫨妤煎眰鐨勭晫闈� - /// </summary> - private void ShowSelectFloorForm() - { - var floorFL = new Device.Category.SelectFloor(); - this.AddChidren(floorFL); - floorFL.Init(35, 153); - floorFL.changeFloor = true; - floorFL.FloorAction = (floorId) => - { - this.btnFloor.Text = Config.Instance.Home.GetFloorNameById(floorId); - HdlRoomLogic.Current.CurrentRoom = HdlRoomLogic.Current.GetLoveRoom(); - this.ShowForm(); - }; - } - - #endregion - - #region 鈻� 鐣岄潰鍏抽棴___________________________ - - /// <summary> - /// 鐣岄潰鍏抽棴 - /// </summary> - public override void CloseFormBefore() - { - HdlGatewayReceiveLogic.Current.RemoveEvent("UserHomeViewDeviceStatus"); - HdlGatewayReceiveLogic.Current.RemoveEvent("UserHomeViewSensor"); - - base.CloseFormBefore(); - } - - #endregion - - #region 鈻� 涓�鑸柟娉昣__________________________ - - /// <summary> - /// 妫�娴嬫槸鍚︾粦瀹氭湁缃戝叧 - /// </summary> - private bool CheckHadBindGateway() - { - //鑾峰彇鏈湴宸茬粡缁戝畾鐨勭綉鍏� - var gatewayList = HdlGatewayLogic.Current.GetAllLocalGateway(); - if (gatewayList.Count == 0) - { - return false; - } - //涓讳汉鎴栬�呯鐞嗗憳鎵嶈 - if (UserCenterResourse.UserInfo.AuthorityNo == 1 || UserCenterResourse.UserInfo.AuthorityNo == 2) - { - return true; - } - return false; - } - - #endregion - } -} diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/CommonDevice.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/CommonDevice.cs index 16bc2c8..f73ef01 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Device/CommonDevice.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/CommonDevice.cs @@ -174,6 +174,14 @@ { return Newtonsoft.Json.JsonConvert.DeserializeObject<TemperatureSensor>(strDeviceByte); } + else if (strDeviceType == ZigBee.Device.DeviceType.FreshAirHumiditySensor.ToString()) + { + return Newtonsoft.Json.JsonConvert.DeserializeObject<HumiditySensor>(strDeviceByte); + } + else if (strDeviceType == ZigBee.Device.DeviceType.FreshAir.ToString()) + { + return Newtonsoft.Json.JsonConvert.DeserializeObject<FreshAir>(strDeviceByte); + } return null; } @@ -230,10 +238,16 @@ //缁х數鍣� IconPath = "Device/RelayEpoint.png"; } - else if (this.Type == DeviceType.Thermostat) + else if (this.Type == DeviceType.Thermostat || this.Type == DeviceType.FreshAir) { //绌鸿皟 + //鏂伴鍜岀┖璋冨浘鏍囩浉鍚� IconPath = "Device/AirConditionerEpoint.png"; + } + else if (this.Type == DeviceType.FreshAirHumiditySensor) + { + //婀垮害浼犳劅鍣� + IconPath = "Device/SensorHumidity.png"; } else if (this.Type == DeviceType.TemperatureSensor) { @@ -1279,217 +1293,8 @@ if (topic == gatewayID + "/" + "MacRename_Respon") { - var deviceID = jobject.Value<int>("Device_ID"); - switch ((DeviceType)(deviceID)) - { - case DeviceType.OnOffOutput: - var toggleLight = new ToggleLight() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - toggleLight.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<ToggleLight.RenameDeviceMacNameData>(jobject["Data"].ToString()); - - if (toggleLight.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = toggleLight.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - var infoToggleLight = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == toggleLight.DeviceID && obj.DeviceAddr == toggleLight.DeviceAddr && obj.DeviceEpoint == toggleLight.DeviceEpoint); - if (infoToggleLight != null) - { - infoToggleLight.DeviceName = toggleLight.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.AirSwitch: - var airSwitch = new AirSwitch() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - airSwitch.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<AirSwitch.RenameDeviceMacNameData>(jobject["Data"].ToString()); - - if (airSwitch.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = airSwitch.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - var infoAirSwitch = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == airSwitch.DeviceID && obj.DeviceAddr == airSwitch.DeviceAddr && obj.DeviceEpoint == airSwitch.DeviceEpoint); - if (infoAirSwitch != null) - { - infoAirSwitch.DeviceName = airSwitch.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.OnOffSwitch: - var panelObj = new Panel() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - panelObj.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<Panel.RenameDeviceMacNameData>(jobject["Data"].ToString()); - if (panelObj.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = panelObj.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{topic}"); - var infoPanel = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == panelObj.DeviceID && obj.DeviceAddr == panelObj.DeviceAddr && obj.DeviceEpoint == panelObj.DeviceEpoint); - if (infoPanel != null) - { - infoPanel.DeviceName = panelObj.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.WindowCoveringDevice: - var windowCovering = new Rollershade() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - windowCovering.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<Rollershade.RenameDeviceMacNameData>(jobject["Data"].ToString()); - if (windowCovering.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = windowCovering.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}_鏀跺埌閫氱煡鍚庣殑鏁版嵁_{ d.renameDeviceMacNameData.ToString()}"); - var wc = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == windowCovering.DeviceID && obj.DeviceAddr == windowCovering.DeviceAddr && obj.DeviceEpoint == windowCovering.DeviceEpoint); - if (wc != null) - { - wc.DeviceName = windowCovering.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.IASZone: - var ias = new IASZone() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - ias.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<DimmableLight.RenameDeviceMacNameData>(jobject["Data"].ToString()); - - if (ias.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = ias.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}_鏀跺埌閫氱煡鍚庣殑鏁版嵁_{ d.renameDeviceMacNameData.ToString()}"); - var info = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == ias.DeviceID && obj.DeviceAddr == ias.DeviceAddr && obj.DeviceEpoint == ias.DeviceEpoint); - if (info != null) - { - info.DeviceName = ias.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.DimmableLight: - var dimmableLight = new DimmableLight() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - dimmableLight.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<DimmableLight.RenameDeviceMacNameData>(jobject["Data"].ToString()); - - if (dimmableLight.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = dimmableLight.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}_鏀跺埌閫氱煡鍚庣殑鏁版嵁_{ d.renameDeviceMacNameData.ToString()}"); - var info = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == dimmableLight.DeviceID && obj.DeviceAddr == dimmableLight.DeviceAddr && obj.DeviceEpoint == dimmableLight.DeviceEpoint); - if (info != null) - { - info.DeviceName = dimmableLight.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.Repeater: - var repeater = new DimmableLight() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - repeater.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<Repeater.RenameDeviceMacNameData>(jobject["Data"].ToString()); - - if (repeater.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = repeater.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}_鏀跺埌閫氱煡鍚庣殑鏁版嵁_{ d.renameDeviceMacNameData.ToString()}"); - var info = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == repeater.DeviceID && obj.DeviceAddr == repeater.DeviceAddr && obj.DeviceEpoint == repeater.DeviceEpoint); - if (info != null) - { - info.DeviceName = repeater.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.Thermostat: - var ac = new AC() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - ac.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<AC.RenameDeviceMacNameData>(jobject["Data"].ToString()); - - if (ac.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = ac.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}_鏀跺埌閫氱煡鍚庣殑鏁版嵁_{ d.renameDeviceMacNameData.ToString()}"); - var info = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == ac.DeviceID && obj.DeviceAddr == ac.DeviceAddr && obj.DeviceEpoint == ac.DeviceEpoint); - if (info != null) - { - info.DeviceName = ac.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.Transverter: - var transverter = new Transverter() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - transverter.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<Transverter.RenameDeviceMacNameData>(jobject["Data"].ToString()); - - if (transverter.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = transverter.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}_鏀跺埌閫氱煡鍚庣殑鏁版嵁_{ d.renameDeviceMacNameData.ToString()}"); - var info = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == transverter.DeviceID && obj.DeviceAddr == transverter.DeviceAddr && obj.DeviceEpoint == transverter.DeviceEpoint); - if (info != null) - { - info.DeviceName = transverter.renameDeviceMacNameData.MacName; - } - } - break; - case DeviceType.DoorLock: - var doorLock = new DoorLock() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - doorLock.renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<DoorLock.RenameDeviceMacNameData>(jobject["Data"].ToString()); - - if (doorLock.renameDeviceMacNameData == null) - { - d = new RenameDeviceMacNameAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - } - else - { - d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = doorLock.renameDeviceMacNameData }; - System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}_鏀跺埌閫氱煡鍚庣殑鏁版嵁_{ d.renameDeviceMacNameData.ToString()}"); - var info = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == doorLock.DeviceID && obj.DeviceAddr == doorLock.DeviceAddr && obj.DeviceEpoint == doorLock.DeviceEpoint); - if (info != null) - { - info.DeviceName = doorLock.renameDeviceMacNameData.MacName; - } - } - break; - //case DeviceType.TemperatureSensor: - // var temperatureSensor = new TemperatureSensor() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - // temperatureSensor.renameDeviceData = Newtonsoft.Json.JsonConvert.DeserializeObject<TemperatureSensor.DeviceRenameResponseData>(jobject["Data"].ToString()); - // if (temperatureSensor.renameDeviceData == null) - // { - // d.errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�"; - // } - // else - // { - // d.deviceRenameData = temperatureSensor.renameDeviceData; - // } - // var ts = Gateway.DeviceList.Find((CommonDevice obj) => obj.DeviceID == temperatureSensor.DeviceID && obj.DeviceEpoint == temperatureSensor.DeviceEpoint && obj.DeviceEpoint == temperatureSensor.DeviceEpoint); - // if (ts == null) - // { - // ts.DeviceName = temperatureSensor.renameDeviceData.DeviceName; - // IO.LocalFileUtils.SaveDeviceInfo(ts, ts.DeviceEpoint.ToString()); - - // } - // break; - } + var deviceID = jobject.Value<int>("Device_ID"); + d = new RenameDeviceMacNameAllData { renameDeviceMacNameData = Newtonsoft.Json.JsonConvert.DeserializeObject<ToggleLight.RenameDeviceMacNameData>(jobject["Data"].ToString()) }; } }; Gateway.Actions += action; @@ -1847,16 +1652,6 @@ { d = new RemoveGatewayDeviceListAllData { removeGatewayDeviceListData = gatewayTemp.removeGatewayDeviceListData }; System.Console.WriteLine($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - //for (int listCount = 0; listCount < Gateway.AllGatewayDeviceList.Count; listCount++) - //{ - // var dev = Gateway.AllGatewayDeviceList[listCount]; - // if (gatewayTemp.removeGatewayDeviceListData.GwId == dev.Gateway.CurrentGateWayId) - // { - // ZigBee.Device.ZbGateway.LogicList.RemoveAt(listCount); - // listCount--; - // } - //} } } }; @@ -1970,500 +1765,6 @@ System.Console.WriteLine("Identify_Actions 閫�鍑�" + System.DateTime.Now.ToString()); } - #endregion - - #region 璁惧涓婃姤杩斿洖鏁版嵁锛岀綉鍏冲洖澶嶄俊鎭� - ///// <summary> - ///// 璁惧涓婃姤杩斿洖鏁版嵁锛岀綉鍏冲洖澶嶄俊鎭� - ///// </summary> - //public DeviceReportResponAllData deviceReportResponAllData; - ///// <summary> - ///// 缃戝叧鎭㈠鍑哄巶璁剧疆杩斿洖鏁版嵁 - ///// </summary> - //[System.Serializable] - //public class DeviceReportResponAllData - //{ - // /// <summary> - // /// 閿欒淇℃伅 - // /// </summary> - // public string errorMessageBase; - // /// <summary> - // /// 缃戝叧淇℃伅閿欒鍙嶉 - // /// <para>褰撶綉鍏虫帴鏀跺埌瀹㈡埛绔俊鎭悗锛屽嚭鐜颁互涓嬪紓甯告儏鍐靛皢鍙嶉閿欒銆�</para> - // /// </summary> - // public ErrorResponData errorResponData; - // ///<summary > - // ///璁惧鏁版嵁 - // /// </summary> - // public DeviceStatusReportData deviceStatusReportData; - //} - - ///// <summary> - ///// 璇诲彇鎶ュ憡灞炴�ч厤缃�,寮傛鑾峰彇鏁版嵁 - ///// </summary> - ///// <param name="clusterID">Cluster identifier.</param> - ///// <param name="attriButeId">Attri bute identifier.</param> - //public async System.Threading.Tasks.Task<DeviceReportResponAllData> ReadAttriAsync(Cluster_ID clusterID, AttriButeId attriButeId) - //{ - //if (Gateway == null) - //{ - // return null; - //} - ////string result = null; - - //return await System.Threading.Tasks.Task.Run(async () => - //{ - //var d = new DeviceReportResponAllData(); - //Action<string, string> action = (topic, message) => - //{ - //var gatewayID = topic.Split('/')[0]; - //var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - - //if (topic == gatewayID + "/" + "Error_Respon") - //{ - // var gatewayTemp = new ZbGateway() { Time = jobject.Value<int>("Time"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.getGatewayBaseInfo.gwID }; - // var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); - - // if (temp == null) - // { - // d.errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖"; - // } - // else - // { - // d.errorResponData = temp; - // d.errorMessageBase = ErrorMess(temp.Error); - // } - //} - - //if (topic == gatewayID + "/" + "DeviceStatusReport" + "/" + DeviceAddr + "/" + DeviceEpoint + "/" + (int)clusterID + "/" + (int)attriButeId) - //{ - //var deviceID = jobject.Value<int>("Device_ID"); - //var deviceAddr = jobject.Value<string>("DeviceAddr"); - //var ep = jobject.Value<int>("Epoint"); - - //var device = Gateway.DeviceList.Find((obj) => obj.DeviceID == deviceID && obj.DeviceAddr == deviceAddr && obj.DeviceEpoint == ep); - //if (device == null) - //{ - // return; - //} - - //switch ((DeviceType)(deviceID)) - //{ - // case DeviceType.ColorDimmableLight: - // device.DeviceStatusReport = Newtonsoft.Json.JsonConvert.DeserializeObject<ColorDimmableLight.DeviceStatusReportData>(jobject["Data"].ToString()); - // if (device.DeviceStatusReport == null) - // { - // d.errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖"; - // } - // else - // { - // d.deviceStatusReportData = device.DeviceStatusReport; - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // var light = device as ColorDimmableLight; - // if (device.DeviceStatusReport.CluterID == 8) - // { - // var attriButeList = device.DeviceStatusReport.AttriBute; - // foreach (var attriBute1 in attriButeList) - // { - // light.Level = attriBute1.AttriButeData; - // } - // light.ReSave(); - // ZigBee.Device.ZbGateway.UpdateDeviceStatus(light); - // } - // else if (device.DeviceStatusReport.CluterID == 6) - // { - // var attriButeList = device.DeviceStatusReport.AttriBute; - // foreach (var attriBute1 in attriButeList) - // { - // light.OnOffStatus = attriBute1.AttriButeData; - - // var key = light.DeviceAddr + "_" + light.DeviceEpoint; - // Gateway.sceneTaskInfoList.Remove(key); - // var st = new Scene.TaskListInfo() - // { - // TaskType = 1, - // Data1 = attriBute1.AttriButeData, - // Data2 = 0, - // }; - // Gateway.sceneTaskInfoList.Add(key, st); - // } - // light.ReSave(); - // ZigBee.Device.ZbGateway.UpdateDeviceStatus(light); - // } - // else if (device.DeviceStatusReport.CluterID == 768) - // { - // var attriButeList = device.DeviceStatusReport.AttriBute; - // //foreach (var attriBute1 in attriButeList) - // //{ - // // if (attriBute1.AttriButeId == 0) - // // { - // // light.Hue = attriBute1.AttriButeData.ToString(); - // // } - // // else if ((attriBute1.AttriButeId == 1)) - // // { - // // light.Saturation = attriBute1.AttriButeData.ToString(); - - // // } - // // else if ((attriBute1.AttriButeId == 16394)) - // // { - // // light.ColorCapabilities = attriBute1.AttriButeData.ToString(); - // // } - // // else if ((attriBute1.AttriButeId == 16384)) - // // { - // // light.EnhancedCurrentHue = attriBute1.AttriButeData.ToString(); - // // } - // //} - // light.ReSave(); - // ZigBee.Device.ZbGateway.UpdateDeviceStatus(light); - // } - // } - // break; - // case DeviceType.OnOffSwitch: - // device.DeviceStatusReport = Newtonsoft.Json.JsonConvert.DeserializeObject<Panel.DeviceStatusReportData>(jobject["Data"].ToString()); - // if (device.DeviceStatusReport == null) - // { - // d.errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖"; - // } - // else - // { - // d.deviceStatusReportData = device.DeviceStatusReport; - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // var panelObj = device as Panel; - // foreach (var common in Gateway.DeviceList) - // { - // if (common.DeviceAddr != panelObj.DeviceAddr || common.DeviceEpoint != panelObj.DeviceEpoint) - // { - // continue; - // } - // if (common.Type == DeviceType.OnOffSwitch) - // { - // if (device.DeviceStatusReport.CluterID == 6) - // { - // var attriButeList = device.DeviceStatusReport.AttriBute; - // foreach (var attriBute1 in attriButeList) - // { - // panelObj.panelMode = attriBute1.AttriButeData; - // } - - // } - // } - // panelObj.ReSave(); - // ZigBee.Device.ZbGateway.UpdateDeviceStatus(panelObj); - // } - // } - // break; - //case DeviceType.OnOffOutput: - // device.DeviceStatusReport = Newtonsoft.Json.JsonConvert.DeserializeObject<ToggleLight.DeviceStatusReportData>(jobject["Data"].ToString()); - // //if (device.DeviceStatusReport != null) - // //{ - // // result = "鎴愬姛"; - // //} - // if (device.DeviceStatusReport == null) - // { - // d.errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖"; - // } - // else - // { - // d.deviceStatusReportData = device.DeviceStatusReport; - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // var lighttoggle = device as ToggleLight; - // foreach (var common in Gateway.DeviceList) - // { - // if (common.DeviceAddr != lighttoggle.DeviceAddr || common.DeviceEpoint != lighttoggle.DeviceEpoint) - // { - // continue; - // } - // if (common.Type == DeviceType.OnOffOutput) - // { - // if (device.DeviceStatusReport.CluterID == 6) - // { - // var attriButeList = device.DeviceStatusReport.AttriBute; - // foreach (var attriBute1 in attriButeList) - // { - // lighttoggle.OnOffStatus = attriBute1.AttriButeData; - // System.Console.WriteLine("褰撳墠寮�鍏崇姸鎬�" + "_" + attriBute1.AttriButeData.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // } - // } - // } - // lighttoggle.ReSave(); - // ZigBee.Device.ZbGateway.UpdateDeviceStatus(lighttoggle); - // } - // } - // break; - - //case DeviceType.WindowCoveringDevice: - // device.DeviceStatusReport = Newtonsoft.Json.JsonConvert.DeserializeObject<Rollershade.DeviceStatusReportData>(jobject["Data"].ToString()); - // if (device.DeviceStatusReport == null) - // { - // d.errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖"; - // } - // else - // { - // d.deviceStatusReportData = device.DeviceStatusReport; - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // var curtain = device as Rollershade; - // foreach (var common in Gateway.DeviceList) - // { - // if (common.DeviceAddr != curtain.DeviceAddr || common.DeviceEpoint != curtain.DeviceEpoint) - // { - // continue; - // } - // if (common.Type == DeviceType.WindowCoveringDevice) - // { - // if (device.DeviceStatusReport.CluterID == 258) - // { - // foreach (var attriBute1 in curtain.DeviceStatusReport.AttriBute) - // { - // switch (attriBute1.AttributeId) - // { - // case 0: - // curtain.WcdType = attriBute1.AttriButeData; - // System.Console.WriteLine("褰撳墠绐楀笜鐨勭被鍨�" + "_" + curtain.WcdType.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // break; - // case 3: - // curtain.WcdCurrentPositionLift = attriBute1.AttriButeData; - // System.Console.WriteLine("绐楀笜褰撳墠楂樺害" + "_" + curtain.WcdCurrentPositionLift.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // break; - // case 8: - // curtain.WcdCurrentPositionLiftPercentage = attriBute1.AttriButeData; - // System.Console.WriteLine("褰撳墠绐楀笜鎵�鍦ㄧ殑杩涘害锛堢櫨鍒嗭級浣嶇疆" + "_" + curtain.WcdCurrentPositionLiftPercentage.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // break; - // case 16: - // curtain.WcdInstalledOpenLimitLift = attriBute1.AttriButeData; - // System.Console.WriteLine("绐楀笜鍏ㄥ紑鎵�鍦ㄧ殑浣嶇疆" + "_" + curtain.WcdInstalledOpenLimitLift.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // break; - // case 17: - // curtain.WcdInstalledClosedLimitLift = attriBute1.AttriButeData; - // System.Console.WriteLine("绐楀笜鍏ㄥ叧鎵�鍦ㄧ殑浣嶇疆" + "_" + curtain.WcdCurrentPositionLift.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // break; - // case 18: - // curtain.WcdInstalledOpenLimitTilt = attriBute1.AttriButeData; - // System.Console.WriteLine("绐楀笜鍏ㄥ紑鎵�鍦ㄧ殑瑙掑害" + "_" + curtain.WcdCurrentPositionLift.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // break; - // case 19: - // curtain.WcdInstalledClosedLimitTilt = attriBute1.AttriButeData; - // System.Console.WriteLine("绐楀笜鍏ㄥ叧鎵�鍦ㄧ殑瑙掑害" + "_" + curtain.WcdCurrentPositionLift.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // break; - // case 23: - // curtain.WcdCurrentMode = attriBute1.AttriButeData; - // System.Console.WriteLine("绐楀笜褰撳墠妯″紡" + "_" + curtain.WcdCurrentMode.ToString() + "_" + Gateway.getGatewayBaseInfo.gwID + "_" + System.DateTime.Now.ToString()); - // break; - // default: - // break; - // } - // } - // curtain.ReSave(); - // ZigBee.Device.ZbGateway.UpdateDeviceStatus(curtain); - // } - // } - // } - // } - // break; - //case DeviceType.IASZone: - //device.DeviceStatusReport = Newtonsoft.Json.JsonConvert.DeserializeObject<IASZone.DeviceStatusReportData>(jobject["Data"].ToString()); - //var ias = device as IASZone; - //foreach (var common in Gateway.DeviceList) - //{ - // if (common.DeviceAddr != ias.DeviceAddr || common.DeviceEpoint != ias.DeviceEpoint) - // { - // continue; - // } - // if (common.Type == DeviceType.IASZone) - // { - // ias.ReSave(); - // ZigBee.Device.ZbGateway.UpdateDeviceStatus(ias); - // } - //} - //ias.ReSave(); - //break; - //case DeviceType.Thermostat: - //device.DeviceStatusReport = Newtonsoft.Json.JsonConvert.DeserializeObject<ThermostatObj.DeviceStatusReportData>(jobject["Data"].ToString()); - //var ther = device as ThermostatObj; - //if (ther.DeviceStatusReport.CluterID == 514) - //{ - // foreach (var attriBute1 in ther.DeviceStatusReport.AttriBute) - // { - // if (attriBute1.AttributeId == 0) - // { - // ther.CurentFanControlMode = attriBute1.AttriButeData; - // } - // } - //} - - //if (ther.DeviceStatusReport.CluterID == 513) - //{ - // foreach (var attriBute1 in ther.DeviceStatusReport.AttriBute) - // { - // if (attriBute1.AttributeId == 0) - // { - // ther.LocalThermostat = attriBute1.AttriButeData / 100; - // } - // else if (attriBute1.AttributeId == 17) - // { - // ther.CurentCoolingSetpoint = attriBute1.AttriButeData / 100; - // } - // else if (attriBute1.AttributeId == 18) - // { - // ther.CurentHeatingSetpoint = attriBute1.AttriButeData / 100; - // } - // else if (attriBute1.AttributeId == 28) - // { - // ther.CurentSystemMode = attriBute1.AttriButeData; - // } - // } - //} - - //ZigBee.Device.ZbGateway.UpdateDeviceStatus(ther); - //break; - //case DeviceType.TemperatureSensor: - //var sensor = new TemperatureSensor() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.CurrentGateWayId }; - //sensor.DeviceStatusReport = Newtonsoft.Json.JsonConvert.DeserializeObject<TemperatureSensor.DeviceStatusReportData>(jobject["Data"].ToString()); - //ZigBee.Device.ZbGateway.UpdateDeviceStatus(sensor); - - //if (sensor.DeviceStatusReport.CluterID == 1026) - //{ - // foreach (var attriBute1 in sensor.DeviceStatusReport.AttriBute) - // { - // if (attriBute1.AttributeId == 0) - // { - // sensor.CurentTemperature = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 1) - // { - // sensor.MaxTemperature = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 2) - // { - // sensor.MinTemperature = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 3) - // { - // sensor.TorleranceTemperature = attriBute1.AttriButeData; - // } - // IO.LocalFileUtils.SaveDeviceInfo(sensor, sensor.DeviceEpoint.ToString()); - // } - //} - //else if (sensor.DeviceStatusReport.CluterID == 1029) - //{ - // foreach (var attriBute1 in sensor.DeviceStatusReport.AttriBute) - // { - // if (attriBute1.AttributeId == 0) - // { - // sensor.CurentHumidity = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 1) - // { - // sensor.MaxHumidity = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 2) - // { - // sensor.MinHumidity = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 3) - // { - // sensor.ToleranceHumidity = attriBute1.AttriButeData; - // } - // IO.LocalFileUtils.SaveDeviceInfo(sensor, sensor.DeviceEpoint.ToString()); - // } - //} - - //var sen = Gateway.SensorInfoList.Find(obj => obj.DeviceAddr == sensor.DeviceAddr && obj.DeviceEpoint == sensor.DeviceEpoint); - //if (sen == null) - //{ - // Gateway.SensorInfoList.Add(sensor); - //} - //else - //{ - // if (sensor.DeviceStatusReport.CluterID == 1026) - // { - // foreach (var attriBute1 in sensor.DeviceStatusReport.AttriBute) - // { - // if (attriBute1.AttributeId == 0) - // { - // sen.CurentTemperature = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 1) - // { - // sen.MaxTemperature = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 2) - // { - // sen.MinTemperature = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 3) - // { - // sen.TorleranceTemperature = attriBute1.AttriButeData; - // } - // IO.LocalFileUtils.SaveDeviceInfo(sensor, sensor.DeviceEpoint.ToString()); - // } - // } - // else if (sensor.DeviceStatusReport.CluterID == 1029) - // { - // foreach (var attriBute1 in sensor.DeviceStatusReport.AttriBute) - // { - // if (attriBute1.AttributeId == 0) - // { - // sen.CurentHumidity = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 1) - // { - // sen.MaxHumidity = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 2) - // { - // sen.MinHumidity = attriBute1.AttriButeData; - // } - // else if (attriBute1.AttributeId == 3) - // { - // sen.ToleranceHumidity = attriBute1.AttriButeData; - // } - // IO.LocalFileUtils.SaveDeviceInfo(sensor, sensor.DeviceEpoint.ToString()); - // } - // } - //} - //break; - // } - // } - // }; - - // Gateway.Actions += action; - - // var JObject = new JObject { - // { "DeviceAddr",DeviceAddr }, - // { "Epoint", DeviceEpoint }, - // { "Cluster_ID", (int)clusterID }, - // { "Command", 108 } - // }; - // var attriBute = new JArray{ - // new JObject { - // { "AttriButeId", (int)attriButeId} - // } - // }; - // var data = new JObject { { "AttriBute", attriBute } }; - // JObject.Add("Data", data); - // Gateway?.Send(("GetDeviceStatus"), Common.SecuritySet.Encryption((JObject.ToString()))); - - // var dateTime = DateTime.Now; - // while ((DateTime.Now - dateTime).TotalMilliseconds < 5000) - // { - // await System.Threading.Tasks.Task.Delay(10); - // if (d.deviceStatusReportData != null) - // { - // break; - // } - // } - // if ((DateTime.Now - dateTime).TotalMilliseconds > 10000) - // { - // d.errorMessageBase = " 鍥炲瓒呮椂锛岃閲嶆柊鎿嶄綔"; - // } - // Gateway.Actions -= action; - // return d; - - // }); - - //} #endregion #region 璁惧灞炴�х姸鎬佷笂鎶� @@ -3368,37 +2669,6 @@ public List<OTADeviceList> DeviceList = new List<OTADeviceList>(); } - #endregion - - #region 鍚敤鎴栧叧闂妭鐐硅澶囬�忎紶鏁版嵁涓婁紶鎺ュ彛 - /// <summary> - /// 鑺傜偣璁惧閫忎紶鏁版嵁鍒板鎴风 - /// <para>缃戝叧绋嬪簭榛樿鏄叧闂�忎紶鏁版嵁涓婁紶鐨勶紝鍙互閫氳繃浠ヤ笅鎸囦护寮�鍚�忎紶鏁版嵁涓婁紶銆傞�忎紶鏁版嵁涓婁紶寮�鍚悗锛岄噸鍚綉鍏崇▼搴忛�忎紶鏁版嵁涓婁紶灏嗚繕鍘熸垚鍏抽棴鐘舵��</para> - /// <para>isOn 0锛氬叧闂�忎紶鏁版嵁涓婁紶</para> - /// <para>isOn 1锛氬紑鍚�忎紶鏁版嵁涓婁紶</para> - /// </summary> - //public void OpenPassthroughControl(ZigBee.Device.ZbGateway gateway, int isOn = 1) - //{ - // if (Gateway == null) - // { - // return; - // } - // Action<string, string> action = (topic, message) => { }; - // Gateway.Actions += action; - // System.Console.WriteLine("OnZbDataPassthrough_Actions 鍚姩" + "_" + System.DateTime.Now.ToString()); - - // try - // { - // var jObject = new JObject { { "Cluster_ID", 64513 }, { "Command", 1 } }; - // var data = new JObject { { "IsOn", isOn } }; - // jObject.Add("Data", data); - // gateway.Send(("OnZbDataPassthrough"), jObject.ToString()); - // } - // catch { } - - // Gateway.Actions -= action; - // System.Console.WriteLine("OnZbDataPassthrough_Actions 閫�鍑�" + System.DateTime.Now.ToString()); - //} #endregion #region 瀹㈡埛绔悜鑺傜偣璁惧閫忎紶鏁版嵁. diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/DeviceType.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/DeviceType.cs index 080a125..7e3f7f7 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Device/DeviceType.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/DeviceType.cs @@ -72,11 +72,17 @@ /// <para>瀹氫箟瀵硅薄锛歅anel</para> /// </summary> OtaDevice = 49153, - /// 鏂伴绌鸿皟 + /// 鏂伴 /// <para>璁惧ID涓�53504</para> /// <para>瀹氫箟瀵硅薄锛欶reshAirAC</para> /// </summary> - FreshAirAC = 0xD100, + FreshAir = 0xD100, + /// <summary> + /// <para>鏂伴婀垮害浼犳劅鍣�</para> + /// <para>璁惧ID涓�0xD200</para> + /// <para>瀹氫箟瀵硅薄锛歍emperatureSensor</para> + /// </summary> + FreshAirHumiditySensor = 0xD200, /// 杞崲鍣� /// <para>璁惧ID涓�53251</para> /// <para>瀹氫箟瀵硅薄锛歍ransverter</para> diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/FreshAir.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/FreshAir.cs new file mode 100755 index 0000000..077f2b7 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/FreshAir.cs @@ -0,0 +1,166 @@ +锘縰sing System; +using Newtonsoft.Json.Linq; + +namespace ZigBee.Device +{ + [System.Serializable] + public class FreshAir : CommonDevice + { + public FreshAir() + { + this.Type = DeviceType.FreshAir; + } + + /// <summary> + /// 鎭掓俯璁惧褰撳墠妯″紡 + /// <para>鎭掓俯璁惧鍏峰鍔熻兘锛孲ystemMode Attribute Values濡備笅</para> + /// <para>0:Off </para> + /// <para>1:Auto </para> + /// <para>3:Cool </para> + /// <para>4:Heat </para> + /// <para>5:Emergency heating </para> + /// <para>6:Precooling</para> + /// <para>7:Fan only </para> + /// <para>8:Dry </para> + /// <para>9:Sleep</para> + /// </summary> + public int currentSystemMode = 0; + + ///<summary > + ///璁剧疆鎭掓俯鍣ㄨ澶囧綋鍓嶅伐浣滄ā寮�. + /// </summary> + public async System.Threading.Tasks.Task<SetWritableValueResponAllData> SetSystemModeAsync(AcMode acMode) + { + if (Gateway == null) + { + return null; + } + return await System.Threading.Tasks.Task.Run(async () => + { + SetWritableValueResponAllData d = null; + Action<string, string> action = (topic, message) => + { + var gatewayID = topic.Split('/')[0]; + var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); + + if (topic == gatewayID + "/" + "Error_Respon") + { + var gatewayTemp = new ZbGateway() { Time = jobject.Value<int>("Time"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.getGatewayBaseInfo.gwID }; + var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); + + if (temp == null) + { + d = new SetWritableValueResponAllData { errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖" }; + } + else + { + d = new SetWritableValueResponAllData { errorResponData = temp, errorMessageBase = ErrorMess(temp.Error) }; + } + } + + if (topic == gatewayID + "/" + "SetWritableValue_Respon") + { + var gatewayTemp = new ZbGateway() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = Gateway.getGatewayBaseInfo.gwID }; + var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<SetWritableValueResponData>(jobject["Data"].ToString()); + + if (tempData == null) + { + d = new SetWritableValueResponAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; + } + else + { + d = new SetWritableValueResponAllData { setWritableValueResponData = tempData }; + DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); + } + } + }; + Gateway.Actions += action; + DebugPrintLog("SetWritableValue_Actions 鍚姩" + "_" + System.DateTime.Now.ToString()); + try + { + var jObject = new JObject { { "DeviceAddr", DeviceAddr }, { "Epoint", DeviceEpoint }, { "Cluster_ID", 513 }, { "Command", 120 } }; + var data = new JObject { { "Undivided", 0 }, { "AttributeId", 28 }, { "AttributeDataType", 48 }, { "AttributeData", (int)acMode } }; + jObject.Add("Data", data); + Gateway.Send("SetWritableValue", jObject.ToString()); + } + catch { } + + var dateTime = DateTime.Now; + while ((DateTime.Now - dateTime).TotalMilliseconds < WaitReceiveDataTime) + { + await System.Threading.Tasks.Task.Delay(10); + if (d != null) + { + break; + } + } + if ((DateTime.Now - dateTime).TotalMilliseconds > WaitReceiveDataTime) + { + d = new SetWritableValueResponAllData { errorMessageBase = " 鍥炲瓒呮椂锛岃閲嶆柊鎿嶄綔" }; + } + Gateway.Actions -= action; + DebugPrintLog("SetWritableValue_Actions 閫�鍑�" + System.DateTime.Now.ToString()); + return d; + }); + } + + public enum AcMode + { + /// <summary> + /// 鍏抽棴妯″紡锛堟祴璇曟亽娓╅潰鏉挎椂鍙戠幇锛�2锛�5锛�6锛�7锛�8锛�9閮芥槸鍙互鎵撳紑鐨勶級 + /// </summary> + Off = 0, + /// <summary> + /// 鑷姩妯″紡 + /// </summary> + Auto = 1, + /// <summary> + /// 鍒跺喎妯″紡 + /// </summary> + Cool = 3, + /// <summary> + /// 鍒剁儹妯″紡 + /// </summary> + Heat = 4, + /// <summary> + /// 绱ф�ュ埗鐑ā寮� + /// </summary> + EmergencyHeating = 5, + /// <summary> + /// 棰勫喎妯″紡 + /// </summary> + Precooling = 6, + /// <summary> + /// 鍙湁椋庨�熸ā寮� + /// </summary> + FanOnly = 7, + /// <summary> + /// 骞茬嚗妯″紡 + /// </summary> + Dry = 8, + /// <summary> + /// 鐫$湢妯″紡 + /// </summary> + Sleep = 9 + } + + /// <summary> + /// 鍏抽棴 + /// </summary> + /// <returns>The close.</returns> + public async System.Threading.Tasks.Task<SetWritableValueResponAllData> Close() + { + return await SetSystemModeAsync(AcMode.Off); + } + + /// <summary> + /// 寮�鍚� + /// </summary> + /// <returns>The open.</returns> + /// <param name="acMode">Ac mode.</param> + public async System.Threading.Tasks.Task<SetWritableValueResponAllData> Open(AcMode acMode = AcMode.Cool) + { + return await SetSystemModeAsync(acMode); + } + } +} diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/HumiditySensor.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/HumiditySensor.cs new file mode 100755 index 0000000..d982539 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/HumiditySensor.cs @@ -0,0 +1,13 @@ +锘縰sing System; +using Newtonsoft.Json.Linq; + +namespace ZigBee.Device +{ + [System.Serializable] + public class HumiditySensor : CommonDevice + { + public HumiditySensor() + { + } + } +} diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs index ca05683..70c8b3d 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs @@ -3130,14 +3130,14 @@ { if (localMqttClient.Options == null) { - var options = new MQTTnet.Client.Options.MqttClientOptionsBuilder().WithClientId(currentGuid.ToString()) - .WithTcpServer(brokerName, 1883) - .WithKeepAlivePeriod(TimeSpan.FromSeconds(20)) - .WithCleanSession() - //.WithCommunicationTimeout(TimeSpan.FromSeconds(10)) - .WithCredentials("", "") - .Build(); - await localMqttClient.ConnectAsync(options, CancellationToken.None); + var options = new MQTTnet.Client.Options.MqttClientOptionsBuilder()//MQTT杩炴帴鍙傛暟濉厖 + .WithClientId(currentGuid.ToString())//瀹㈡埛绔疘D + .WithTcpServer(brokerName, 1883)//TCP鏈嶅姟绔� 1883 锛屽嵆MQTT鏈嶅姟绔� + .WithCredentials("", "")//"", "")//鍑瘉 甯愬彿 瀵嗙爜 + .WithCommunicationTimeout(new TimeSpan(0, 0, 60)) //閲嶈繛瓒呮椂鏃堕棿锛岄粯璁�5s + .WithKeepAlivePeriod(new TimeSpan(0, 0, 15)) //淇濇寔杩炴帴鏃堕棿锛岄粯璁�5s锛屽績璺冲寘 + .Build();// + await localMqttClient.ConnectAsync(options); } else { diff --git a/ZigbeeApp/Shared/R.cs b/ZigbeeApp/Shared/R.cs index 69b7488..9fd3b3f 100755 --- a/ZigbeeApp/Shared/R.cs +++ b/ZigbeeApp/Shared/R.cs @@ -518,6 +518,14 @@ /// 澶辨晥鏃堕棿涓嶈兘灏忎簬1灏忔椂 /// </summary> public const int InvalidTimeLessThan1 = 299; + /// <summary> + /// 鏂伴 + /// </summary> + public const int FreshAir = 300; + /// <summary> + /// 闈炵鐞嗗憳涓嶈兘鍦ㄥ父寮�妯″紡涓嬫搷浣� + /// </summary> + public const int OnlyMasterOperate = 301; public readonly static int cancel = 5097; @@ -4028,15 +4036,15 @@ /// </summary> public const int uDoorLockAlarmMsg5 = 15699; /// <summary> - /// 闂ㄩ攣鎶ヨ淇℃伅6锛氬父寮�妯″紡寮�鍚� + /// 闂ㄩ攣鎶ヨ淇℃伅6锛氬父寮�妯″紡寮�鍚�(闂ㄩ攣瑙﹀彂) /// </summary> public const int uDoorLockAlarmMsg6 = 15700; /// <summary> - /// 闂ㄩ攣鎶ヨ淇℃伅7锛氬父寮�妯″紡缁撴潫 + /// 闂ㄩ攣鎶ヨ淇℃伅7锛氬父寮�妯″紡缁撴潫(闂ㄩ攣瑙﹀彂) /// </summary> public const int uDoorLockAlarmMsg7 = 15701; /// <summary> - /// 闂ㄩ攣鎶ヨ淇℃伅8锛氶棬閾冭Е鍙� + /// 闂ㄩ攣鎶ヨ淇℃伅8锛氭湁浜鸿闂� /// </summary> public const int uDoorLockAlarmMsg8 = 15702; /// <summary> @@ -5571,6 +5579,18 @@ /// 淇敼鍦烘櫙鍚嶇О澶辫触 /// </summary> public const int uEditorSceneNameFail = 16087; + /// <summary> + /// 闂ㄩ攣鎶ヨ淇℃伅8锛氬父寮�妯″紡寮�鍚�(缃戝叧瑙﹀彂) + /// </summary> + public const int uDoorLockAlarmMsg9 = 16088; + /// <summary> + /// 闂ㄩ攣鎶ヨ淇℃伅8锛氬父寮�妯″紡缁撴潫(缃戝叧瑙﹀彂) + /// </summary> + public const int uDoorLockAlarmMsg10 = 16089; + /// <summary> + /// 甯稿紑妯″紡 + /// </summary> + public const int uNormallyOpenMode = 16090; //鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄帴鍙g殑杩斿洖淇℃伅缈昏瘧,浠�18000寮�濮嬧槄鈽呪槄鈽� /// <summary> @@ -6034,5 +6054,107 @@ //鈽呪槄鈽呪槄妯″潡ID鐨勮澶囬粯璁ゅ娉ㄥ悕瀛�,浠�50000寮�濮�,杩欓噷涓嶉渶瑕佸畾涔�,鍙啓鍦↙anguage.ini鏂囦欢閲岄潰鈽呪槄鈽呪槄 //鈽呪槄鈽呪槄妯″潡ID鐨勮澶囩被鍨嬪悕瀛�,浠�60000寮�濮�,杩欓噷涓嶉渶瑕佸畾涔�,鍙啓鍦↙anguage.ini鏂囦欢閲岄潰鈽呪槄鈽呪槄 + + //鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄坊鍔犳柊璁惧鐣岄潰閭i噷鏄剧ず鐨勫悕瀛�,浠�70000寮�濮嬧槄鈽呪槄鈽� + /// <summary> + /// 2鎸夐敭闈㈡澘 + /// </summary> + public const int uDeviceDirectionName1 = 70000; + /// <summary> + /// 3鎸夐敭闈㈡澘 + /// </summary> + public const int uDeviceDirectionName2 = 70001; + /// <summary> + /// 4鎸夐敭闈㈡澘 + /// </summary> + public const int uDeviceDirectionName3 = 70002; + /// <summary> + /// 鏂规偊鍗曞紑鍙屾帶闈㈡澘 + /// </summary> + public const int uDeviceDirectionName4 = 70003; + /// <summary> + /// 鏂规偊鍙屽紑鍥涙帶闈㈡澘 + /// </summary> + public const int uDeviceDirectionName5 = 70004; + /// <summary> + /// 鏂规偊鍥涘紑鍏帶闈㈡澘 + /// </summary> + public const int uDeviceDirectionName6 = 70005; + /// <summary> + /// 鏂规偊鏂伴灏忔ā鍧� + /// </summary> + public const int uDeviceDirectionName7 = 70006; + /// <summary> + /// 鏂规偊鏂伴闈㈡澘 + /// </summary> + public const int uDeviceDirectionName8 = 70007; + /// <summary> + /// 鏂规偊鐜闈㈡澘 + /// </summary> + public const int uDeviceDirectionName9 = 70008; + /// <summary> + /// 绐楀笜闈㈡澘 + /// </summary> + public const int uDeviceDirectionName10 = 70009; + /// <summary> + /// 3璺户鐢靛櫒 + /// </summary> + public const int uDeviceDirectionName11 = 70010; + /// <summary> + /// 1璺皟鍏夊櫒 + /// </summary> + public const int uDeviceDirectionName12 = 70011; + /// <summary> + /// 绐楀笜鐢垫満 + /// </summary> + public const int uDeviceDirectionName13 = 70012; + /// <summary> + /// 鍗峰笜鐢垫満 + /// </summary> + public const int uDeviceDirectionName14 = 70013; + /// <summary> + /// 绌鸿皟缃戝叧 + /// </summary> + public const int uDeviceDirectionName15 = 70014; + /// <summary> + /// 闂ㄩ攣 + /// </summary> + public const int uDeviceDirectionName16 = 70015; + /// <summary> + /// PIR浼犳劅鍣� + /// </summary> + public const int uDeviceDirectionName17 = 70016; + /// <summary> + /// 绾㈠浼犳劅鍣� + /// </summary> + public const int uDeviceDirectionName18 = 70017; + /// <summary> + /// 鐕冩皵浼犳劅鍣� + /// </summary> + public const int uDeviceDirectionName19 = 70018; + /// <summary> + /// 鐑熼浘浼犳劅鍣� + /// </summary> + public const int uDeviceDirectionName20 = 70019; + /// <summary> + /// 姘存蹈浼犳劅鍣� + /// </summary> + public const int uDeviceDirectionName21 = 70020; + /// <summary> + /// 闂ㄧ獥浼犳劅鍣� + /// </summary> + public const int uDeviceDirectionName22 = 70021; + /// <summary> + /// 娓╂箍搴︿紶鎰熷櫒 + /// </summary> + public const int uDeviceDirectionName23 = 70022; + /// <summary> + /// 涓户鍣� + /// </summary> + public const int uDeviceDirectionName24 = 70023; + /// <summary> + /// 鏅鸿兘绌哄紑 + /// </summary> + public const int uDeviceDirectionName25 = 70024; } } diff --git a/ZigbeeApp/Shared/Shared.projitems b/ZigbeeApp/Shared/Shared.projitems index dfe23a5..d73789e 100755 --- a/ZigbeeApp/Shared/Shared.projitems +++ b/ZigbeeApp/Shared/Shared.projitems @@ -33,6 +33,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\Category\Controls\DeviceRow\DeviceRelayRowControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Category\Controls\DeviceRow\DeviceSensorRowControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Category\Controls\DeviceRow\DeviceTemperatureRowControl.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\Category\SelectLocalSceneImageForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\CurrentDeviceState.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\AddDeviceView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\Addview.cs" /> @@ -46,6 +47,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\TypeView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\Method.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\OneLogic.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\OneTimePoint.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\RoomAndDeviceView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\SkipView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Login\AccountForgetPWD.cs" /> @@ -55,58 +57,22 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\Login\AccountResetPWDSuccess.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Login\PhoneEmailForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Login\PhoneZone.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\AC\ACControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\AC\ACControlBase.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategorySceneSelectImgByLocal.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\SelectDelayTime.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\SelectDevice.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\SelectFloor.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\SelectHouse.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\SelectScene.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\ACLeftIconButtonRowLayout.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\BackButton.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\ButtonLineForm.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\CategoryFunctionForWinRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\CategoryFunctionRow.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\CommonEnum.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\CommonFormResouce.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\CompleteButton.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\CustomAlert.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\DeviceDetailInfo.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\DeviceIconSelectedIMGByLocal.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\DeviceInfoEditRow.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\DeviceInfoRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\DeviceInfoWithZoneRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\FunctionButton.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\FunctionIconButton.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\FunctionMainView.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\FunctionRow.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\LeftIconButtonRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\RoomButton.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\RoomMainView.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\RoomNoNameMainView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\RoomView.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\RowLayoutDeleteButton.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\RowLayoutEditButton.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SceneCategoryView.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SceneMainView.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SceneTargetFunctionRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SceneTargetTimeRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SelectDeviceWithPickViewRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SelectDeviceWithSeekBarRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SelectedStatuButton.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SelectFunctionView.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SelectSceneRow.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SelectSceneStatuRow.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SelectTime.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\SelectZone.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\CommonForm\TopFrameLayout.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\DeviceLogic\ReadDeviceAttributeLogic.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Light\AirSwitchControl.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Light\DimmableLightControl.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Light\LightControl.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Light\OnOffControl.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Light\PlugControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\AddLogicPage.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\AddScenePage.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\CustomText.cs" /> @@ -128,11 +94,6 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\TimePage.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\TimePoint.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\WeekPage.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\EditRoom.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\RoomCommon.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\RoomHumiditySetting.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\RoomShareSetting.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\RoomTemperatureSetting.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\ControlForm\Base\DeviceDetailCardCommonForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\ControlForm\DeviceAcDetailCardForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\ControlForm\DeviceColorLightDetailCardForm.cs" /> @@ -183,8 +144,10 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Form\PswSecondarySecurityForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlACZbGatewayUpdateLogic.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlCheckLogic.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlControlLogic.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlDeviceAirConditionerLogic.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlDeviceCurtainLogic.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlDeviceDoorLockLogic.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlDeviceOtherLogic.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlGatewayBackupLogic.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Logic\HdlGatewayUpdateLogic.cs" /> @@ -427,10 +390,11 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Suggestion\FeedbackForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\UserMain\SecondAuthenticationForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserView\LoginLoading.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\UserView\SafetyShortcutControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\AC.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\DimmableLight.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\DoorLock.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\FreshAir.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\HumiditySensor.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\Repeater.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\ThirdPartyModuleUpgrade.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\Transverter.cs" /> @@ -452,7 +416,6 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\Login\AccountLogin.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Login\AccountLoginByCode.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\CommonPage.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Common\ResultStatus.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\ResponseEntity\BackupInfoRes.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\ResponseEntity\FolderRes.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\ResponseEntity\GatewayRes.cs" /> @@ -462,10 +425,9 @@ <Compile Include="$(MSBuildThisFileDirectory)Common\ResponseEntity\UserLoginRes.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\ResponseEntity\UserRegisterReqDto.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\SendDataToServer.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\UserView\UserHomeView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\Room.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\ListRoomViewFrom.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Room\AddRoomSelectPicByLocal.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Residence\SelectLocalRoomImageForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Controls\CompoundControls\ProgressBar.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Controls\CompoundControls\SearchEditText.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Controls\RowLayoutControls\RowLayoutControl.cs" /> @@ -475,9 +437,6 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\DeviceAddSuccessForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Safety\SafetyManagementMainForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\CommonBase\Controls\FrameLayoutControls\FrameRowControl.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\Category.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Curtain\rollerShadeControl.cs" /> - <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Category\CategoryAddScene.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\SceneUI.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\SceneTargetDeviceUI.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Common\SceneRoomUI.cs" /> @@ -522,7 +481,6 @@ <ItemGroup> <Folder Include="$(MSBuildThisFileDirectory)Pad\" /> <Folder Include="$(MSBuildThisFileDirectory)Pad\Home\" /> - <Folder Include="$(MSBuildThisFileDirectory)Phone\Device\Curtain\" /> <Folder Include="$(MSBuildThisFileDirectory)Phone\CommonForm\" /> <Folder Include="$(MSBuildThisFileDirectory)Phone\MainPage\Controls\DeviceCard\Base\" /> </ItemGroup> -- Gitblit v1.8.0