From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期二, 21 七月 2020 09:46:53 +0800 Subject: [PATCH] 请合并最新多功能面板代码 --- ZigbeeApp/Shared/Phone/Device/Logic/LogicView/SelectedDeviceView.cs | 131 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 131 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/SelectedDeviceView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/SelectedDeviceView.cs new file mode 100755 index 0000000..a35381e --- /dev/null +++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/SelectedDeviceView.cs @@ -0,0 +1,131 @@ +锘縰sing System; +using Shared.Common; + +namespace Shared.Phone.Device.Logic +{ + public class SelectedDeviceView + { + + public FrameLayout selecetdFrameLayout = new FrameLayout + { + Height = Application.GetRealHeight(130), + BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, + }; + + /// <summary> + /// 鏄剧ず鍥炬爣 + /// </summary> + public Button iconBtn = new Button + { + Width = Application.GetMinRealAverage(81), + Height = Application.GetMinRealAverage(81), + X = Application.GetRealWidth(104), + Y = Application.GetRealHeight(25), + // UnSelectedImagePath = "ZigeeLogic/time.png", + + }; + /// + public RowLayout stateRow = new RowLayout + { + Width = Application.GetRealWidth(800+58), + Height = Application.GetRealHeight(130), + X = Application.GetRealWidth(222), + LineColor = ZigbeeColor.Current.LogicBlankBackgroundColor, + SubViewWidth=Application.GetRealWidth(184),//鏀瑰彉缂栬緫鎺т欢瀹藉害澶氬皯锛� + }; + /// <summary> + /// 鏄剧ず鍚嶅瓧(闄よ澶囩被鍨嬪) + /// </summary> + public Button ordinaryBtn = new Button + { + Width = Application.GetRealWidth(400), + TextAlignment = TextAlignment.CenterLeft, + Gravity = Gravity.CenterVertical, + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + TextSize = 14, + Visible = false, + }; + /// <summary> + /// 璁惧鐨勫悕瀛� + /// </summary> + public Button deviceNameBtn = new Button + { + Y = Application.GetRealHeight(18), + Height = Application.GetRealHeight(50), + Width = Application.GetRealWidth(400), + TextAlignment = TextAlignment.CenterLeft, + TextColor = ZigbeeColor.Current.LogicTextBlackColor, + TextSize = 14, + Visible = false, + }; + + /// <summary> + /// 鍖哄煙(鎴块棿)鍚嶇ОButton + /// </summary> + public Button regionNameBtn = new Button + { + Y = Application.GetRealHeight(6+ 70), + Width = Application.GetRealWidth(400), + TextAlignment = TextAlignment.CenterLeft, + Height = Application.GetRealHeight(50), + Text = "",//Language.StringByID(MyInternationalizationString.customroom), + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + Visible=false, + }; + /// <summary> + /// 鏄剧ず璁惧鏉′欢鐘舵�佹帶浠� + /// </summary> + public Button selecetddevicestateBtn = new Button + { + Width = Application.GetRealWidth(400), + Height = Application.GetRealHeight(130), + Gravity = Gravity.CenterVertical, + TextAlignment = TextAlignment.CenterRight, + X = Application.GetRealWidth(400), + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + TextSize = 14, + }; + + public Button lineBtn = new Button + { + Width = Application.GetRealWidth(800), + // Y=Application.GetRealHeight(130-5), + Height =1,//Application.GetRealHeight(5), + X = Application.GetRealWidth(222), + BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor, + }; + + /// <summary> + /// 缂栬緫 + /// </summary> + public Button edit = new Button + { + BackgroundColor = ZigbeeColor.Current.LogicEditBlackColor1, + Text = Language.StringByID(R.MyInternationalizationString.edit), + TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, + }; + /// <summary> + /// 鍒犻櫎 + /// </summary> + public Button del = new Button + { + BackgroundColor = ZigbeeColor.Current.LogicDelBlackColor1, + Text = Language.StringByID(R.MyInternationalizationString.del), + }; + public void Show(VerticalScrolViewLayout middle) + { + middle.AddChidren(selecetdFrameLayout); + selecetdFrameLayout.AddChidren(iconBtn); + selecetdFrameLayout.AddChidren(stateRow); + //stateRow.AddRightView(edit); + //stateRow.AddRightView(del); + stateRow.AddChidren(deviceNameBtn); + stateRow.AddChidren(regionNameBtn); + stateRow.AddChidren(ordinaryBtn); + stateRow.AddChidren(selecetddevicestateBtn); + lineBtn.Y = selecetdFrameLayout.Height - 1; + selecetdFrameLayout.AddChidren(lineBtn); + + } + } +} -- Gitblit v1.8.0