gxc
2020-02-28 66a9965c44ecc32a6696abca876ab9d1cd091584
ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
@@ -48,18 +48,20 @@
                Height = Application.GetRealHeight(80),
                Gravity = Gravity.CenterVertical,
                TextColor = ZigbeeColor.Current.GXCTextBlackColor,
                TextAlignment = TextAlignment.CenterLeft
                TextAlignment = TextAlignment.CenterLeft,
                TextSize=CommonFormResouce.TextSize
            };
            AddChidren(TipBtn);
            NameText = new Button
            {
                X = Application.GetRealWidth(300),
                Width = Application.GetRealWidth(600),
                Width = Application.GetRealWidth(650),
                Height = Application.GetRealHeight(80),
                Gravity = Gravity.CenterVertical,
                TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor2,
                TextAlignment = TextAlignment.CenterLeft
                TextAlignment = TextAlignment.CenterLeft,
                TextSize = CommonFormResouce.TextSize
            };
            AddChidren(NameText);
@@ -69,17 +71,17 @@
                Width = Application.GetMinRealAverage(100),
                Height = Application.GetMinRealAverage(100),
                Gravity = Gravity.CenterVertical,
                SelectedImagePath="Item/Next.png",
                UnSelectedImagePath= "Item/NextSelected.png"
                SelectedImagePath= "Item/NextSelected.png",
                UnSelectedImagePath= "Item/Next.png"
            };
            AddChidren(NextBtn);
            line = new Button()
            {
                X = Application.GetRealWidth(CommonFormResouce.X_Left),
                Y = Height - 2,
                Y = Height - 1,
                Width = Application.GetRealWidth(965),
                Height = 2,
                Height = 1,
                BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2,
            };
            AddChidren(line);
@@ -104,6 +106,15 @@
        public void SetTitle(int title)
        {
            SetTitle(Language.StringByID(title));
        }
        /// <summary>
        /// SetTitleColor
        /// </summary>
        /// <param name="color"></param>
        public void SetTitleColor(uint color)
        {
            NameText.TextColor = color;
        }
@@ -135,12 +146,21 @@
        }
        /// <summary>
        ///
        /// HideNext
        /// </summary>
        /// <param name="hiden"></param>
        public void HideNext(bool hiden)
        {
            NextBtn.Visible = !hiden;
        }
        /// <summary>
        /// CanClick
        /// </summary>
        /// <param name="canClick"></param>
        public void CanClick(bool canClick)
        {
            ClickBtn.Enable = canClick;
        }
    }
}