From 74a9ba8e9a2df9c39f9c2eb212a5ac889a055cd4 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 03 十二月 2019 10:47:51 +0800
Subject: [PATCH] 优化UI细节(请合并最新代码)
---
ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs | 32 ++++++++++++++++++++++++++++++--
1 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
index f335c58..74c4422 100755
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceInfoRow.cs
@@ -4,7 +4,6 @@
{
public class DeviceInfoRow : FrameLayout
{
-
/// <summary>
/// TipBtn
/// </summary>
@@ -17,6 +16,14 @@
/// NextBtn
/// </summary>
public Button NextBtn;
+ /// <summary>
+ /// ClickBtn
+ /// </summary>
+ public Button ClickBtn;
+ /// <summary>
+ /// line
+ /// </summary>
+ private Button line;
/// <summary>
/// DeviceInfoEditRow
@@ -67,7 +74,7 @@
};
AddChidren(NextBtn);
- var line = new Button()
+ line = new Button()
{
X = Application.GetRealWidth(CommonFormResouce.X_Left),
Y = Height - 2,
@@ -76,6 +83,9 @@
BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor2,
};
AddChidren(line);
+
+ ClickBtn = new Button();
+ AddChidren(ClickBtn);
}
/// <summary>
@@ -114,5 +124,23 @@
{
SetTipTitle(Language.StringByID(title));
}
+
+ /// <summary>
+ /// HideLine
+ /// </summary>
+ /// <param name="hiden"></param>
+ public void HideLine(bool hiden)
+ {
+ line.Visible = !hiden;
+ }
+
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="hiden"></param>
+ public void HideNext(bool hiden)
+ {
+ NextBtn.Visible = !hiden;
+ }
}
}
--
Gitblit v1.8.0