黄学彪
2020-07-20 2029e64ec0491f7e511dc15bffaf821bfbabe2de
ZigbeeApp/Shared/Phone/Device/Logic/Illumination.cs
@@ -22,7 +22,7 @@
            {
                RemoveFromParent();
            };
            FrameLayout middle = new FrameLayout
            FrameLayout middle= new FrameLayout
            {
                Y = view.topRowLayout.Bottom,
                Height = Application.GetRealHeight(Method.H - 184),
@@ -47,8 +47,9 @@
                //TextID = MyInternationalizationString.Save,
                TextColor = ZigbeeColor.Current.LogicBtnCancelColor,
                TextSize = 12,
                TextAlignment=TextAlignment.CenterLeft,
            };
            middle.AddChidren(illuminationBtn);
            blankFraLayout.AddChidren(illuminationBtn);
            //-图标控件
            Button lessBtn = new Button
            {
@@ -58,7 +59,7 @@
                Width = Application.GetMinRealAverage(104),
                UnSelectedImagePath = "ZigeeLogic/lesLuminositys.png",
            };
            middle.AddChidren(lessBtn);
            blankFraLayout.AddChidren(lessBtn);
            //+图标控件
            Button addBtn = new Button
            {
@@ -68,13 +69,13 @@
                Width = Application.GetMinRealAverage(104),
                UnSelectedImagePath = "ZigeeLogic/addLuminosity.png",
            };
            middle.AddChidren(addBtn);
            blankFraLayout.AddChidren(addBtn);
            //进度条控件
            var horizontalSeekBarVol = new DiyImageSeekBar
            {
                Y = Application.GetRealHeight(173),//进度条父控件Y坐标
                X = Application.GetRealWidth(104),//进度条X坐标
                Width = Application.GetRealWidth(873),//进度条的长度
                X = Application.GetRealWidth(104-20),//进度条X坐标
                Width = Application.GetRealWidth(873+40),//进度条的长度
                Height = Application.GetRealHeight(56),//进度条父控件高度
                IsProgressTextShow = false,//显示百分比
                IsClickable = true,//进度条是否滑动
@@ -89,7 +90,7 @@
                MinValue = 0,
                Progress = progresValue,
            };
            middle.AddChidren(horizontalSeekBarVol);
            blankFraLayout.AddChidren(horizontalSeekBarVol);
            lessBtn.MouseUpEventHandler += (sender, e) =>
            {
                horizontalSeekBarVol.Progress = horizontalSeekBarVol.Progress - 1;
@@ -109,32 +110,57 @@
            Button text1Btn = new Button()
            {
                X = Application.GetRealWidth(81),
                X = Application.GetRealWidth(95),
                Y = Application.GetRealHeight(426 - 184),
                Height = Application.GetRealHeight(100),
                Width = Application.GetRealWidth(63+15),
                Text = Language.StringByID(MyInternationalizationString.dark).Replace("{\\r\\n}", "\r\n"),
                Height = Application.GetRealHeight(50),
                Width = Application.GetRealWidth(100),
                Text = Language.StringByID(MyInternationalizationString.dark),
                TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor,
                TextSize = 12,
                TextAlignment = TextAlignment.Center,
                IsMoreLines = true,
                TextAlignment = TextAlignment.CenterLeft,
            };
            middle.AddChidren(text1Btn);
            blankFraLayout.AddChidren(text1Btn);
            Button text0Btn = new Button()
            {
                X = Application.GetRealWidth(81),
                Y = text1Btn.Bottom,
                Height = Application.GetRealHeight(50),
                Width = Application.GetRealWidth(100),
                Text = "0lux",
                TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor,
                TextSize = 12,
                TextAlignment = TextAlignment.CenterLeft,
            };
            blankFraLayout.AddChidren(text0Btn);
            Button text2Btn = new Button()
            {
                X = Application.GetRealWidth(913-20),
                X = Application.GetRealWidth(950),
                Y = Application.GetRealHeight(426 - 184),
                Height = Application.GetRealHeight(100),
                Width = Application.GetRealWidth(109+20),
                Text = Language.StringByID(MyInternationalizationString.bright).Replace("{\\r\\n}", "\r\n"),
                Height = Application.GetRealHeight(50),
                Width = Application.GetRealWidth(100),
                Text = Language.StringByID(MyInternationalizationString.bright),
                TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor,
                TextSize = 12,
                TextAlignment = TextAlignment.Center,
                IsMoreLines = true,
                TextAlignment = TextAlignment.CenterLeft,
            };
            middle.AddChidren(text2Btn);
            blankFraLayout.AddChidren(text2Btn);
            Button text100Btn = new Button()
            {
                X = Application.GetRealWidth(913),
                Y = text2Btn.Bottom,
                Height = Application.GetRealHeight(50),
                Width = Application.GetRealWidth(109+17),
                Text = "100lux",
                TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor,
                TextSize = 12,
                TextAlignment = TextAlignment.CenterLeft,
            };
            blankFraLayout.AddChidren(text100Btn);
            //提示图标
            Button tipIconBtn = new Button
            {
@@ -144,7 +170,7 @@
                Width = Application.GetMinRealAverage(58),
                UnSelectedImagePath = "ZigeeLogic/tipIcon.png",
            };
            middle.AddChidren(tipIconBtn);
            blankFraLayout.AddChidren(tipIconBtn);
            //提示文字
            Button tipTextBtn = new Button()
@@ -160,7 +186,7 @@
                IsMoreLines = true,
            };
            middle.AddChidren(tipTextBtn);
            blankFraLayout.AddChidren(tipTextBtn);
            //保存控件
            LogicView.SaveView saveView = new LogicView.SaveView();