陈嘉乐
2020-05-15 d5b9ff8bf8cc36f5b13c46b66682f5988d3a6f36
ZigbeeApp/Shared/Phone/Device/Logic/AddScenePage.cs
old mode 100644 new mode 100755
@@ -28,7 +28,7 @@
        public VerticalScrolViewLayout middle = new VerticalScrolViewLayout
        {
            Width = Application.GetRealWidth(1080),
            Height = Application.GetRealHeight(1920 - 260 - 200 - 184),
            Height = Application.GetRealHeight(Method.H - 260 - 200 - 184),
            BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor,
        };
@@ -303,9 +303,9 @@
            foreach (var sceneId in scenelist)
            {
                var scene = UserCenter.HdlSceneLogic.Current.GetSceneUIBySceneId(sceneId);
                if (scene == null)
                {
                    continue;
                if (scene == null)
                {
                    continue;
                }
                var sceneFramelayout = new FrameLayout
                {
@@ -313,7 +313,6 @@
                    BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor,
                };
                middle.AddChidren(sceneFramelayout);
                var sceneIconBtn = new Button
                {
@@ -332,8 +331,7 @@
                    Width = Application.GetRealWidth(850),
                    Height = Application.GetRealHeight(130),
                    X = Application.GetRealWidth(176 + 10),
                    LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
                    LineColor = ZigbeeColor.Current.LogicBlankBackgroundColor,
                };
                sceneFramelayout.AddChidren(sceneRow);
@@ -349,15 +347,23 @@
                var selectedBtn = new Button
                {
                    Width = Application.GetRealWidth(58),
                    Height = Application.GetRealHeight(58),
                    Width = Application.GetMinRealAverage(60),
                    Height = Application.GetMinRealAverage(60),
                    X = Application.GetRealWidth(789),
                    UnSelectedImagePath = "ZigeeLogic/selected.png",
                    Visible = false,
                    Gravity = Gravity.CenterVertical,
                };
                sceneRow.AddChidren(selectedBtn);
                var lineBtn = new Button
                {
                    Y = sceneFramelayout.Height - 1,
                    Width = Application.GetRealWidth(850),
                    Height = 1,
                    X = Application.GetRealWidth(176 + 10),
                    BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
                };
                sceneFramelayout.AddChidren(lineBtn);
                EventHandler<MouseEventArgs> sceneclick = (sender, e) =>
                {
                    tempScene = scene;