From 34e965100d635346e2d4cd6e6013bdaed66b3004 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 02 一月 2020 19:52:13 +0800
Subject: [PATCH] 2019.1.2-3
---
ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionRow.cs | 42 +++++++++++++++++++++++++++++++-----------
1 files changed, 31 insertions(+), 11 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionRow.cs
old mode 100755
new mode 100644
index 9865c24..64d5392
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionRow.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/FunctionRow.cs
@@ -19,7 +19,11 @@
/// <summary>
/// SwitchBtn
/// </summary>
- public CommonForm.SelectedStatuButton SwitchBtn;
+ public Button SwitchBtn;
+ /// <summary>
+ /// ClickBtn
+ /// </summary>
+ public Button ClickBtn;
/// <summary>
/// v_Selected
/// </summary>
@@ -56,7 +60,7 @@
{
X = Application.GetRealWidth(x);
Y = Application.GetRealHeight(y);
- Width = Application.GetRealWidth(1022);
+ Width = Application.GetRealWidth(1080);
Height = Application.GetRealHeight(127);
}
@@ -65,7 +69,7 @@
/// </summary>
/// <param name="imagePath"></param>
/// <param name="selectedImagePath"></param>
- public void Init(string imagePath, string selectedImagePath)
+ public void Init(string imagePath, string selectedImagePath,bool click=false)
{
ImageBG = new Button()
{
@@ -94,18 +98,19 @@
NameBtn = new Button()
{
- X = Application.GetRealWidth(181),
+ X = Application.GetRealWidth(200),
Width = Application.GetRealWidth(500),
Height = Application.GetRealHeight(80),
Gravity = Gravity.CenterVertical,
TextColor = ZigbeeColor.Current.GXCTextBlackColor,
SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor,
TextAlignment = TextAlignment.CenterLeft,
- Tag = Tag
+ Tag = Tag,
+ TextSize=14
};
AddChidren(NameBtn);
- SwitchBtn = new SelectedStatuButton()
+ SwitchBtn = new Button()
{
X = Application.GetRealWidth(896),
Width = Application.GetMinRealAverage(78),
@@ -119,14 +124,20 @@
var line = new Button()
{
- X = Application.GetRealWidth(180),
- Y = Height - 2,
- Width = Application.GetRealWidth(841),
- Height = 2,
- BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor,
+ 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>
@@ -153,5 +164,14 @@
{
NameBtn.IsSelected = ImageBG.IsSelected = ImageBtn.IsSelected = SwitchBtn.IsSelected = statu;
}
+
+ /// <summary>
+ /// HideSwitchBtn
+ /// </summary>
+ /// <param name="statu"></param>
+ public void HideSwitchBtn(bool statu)
+ {
+ SwitchBtn.Visible = statu;
+ }
}
}
--
Gitblit v1.8.0