From 94e4e5b9fd3da964c44b7b14227d6fe2bbb426d7 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期四, 02 四月 2020 13:56:39 +0800
Subject: [PATCH] 2020-04-02-2
---
ZigbeeApp/Shared/Phone/Device/Room/AddRoomSelectPicByLocal.cs | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/Room/AddRoomSelectPicByLocal.cs b/ZigbeeApp/Shared/Phone/Device/Room/AddRoomSelectPicByLocal.cs
index c0d9db5..de1c241 100755
--- a/ZigbeeApp/Shared/Phone/Device/Room/AddRoomSelectPicByLocal.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Room/AddRoomSelectPicByLocal.cs
@@ -33,9 +33,10 @@
};
topView.AddChidren(title);
- var back = new Device.CommonForm.BackButton() { };鈥� topView.AddChidren(back);
+ var back = new UserCenter.BackViewControl();鈥� topView.AddChidren(back);
+ back.InitControl();
- back.MouseUpEventHandler += (sender, e) =>
+ back.ButtonClickEvent += (sender, e) =>
{
this.RemoveFromParent();
};
@@ -56,18 +57,19 @@
{
var itemView = new FrameLayout()
{
- Height = Application.GetRealHeight(311 + CommonPage.XLeft)
+ Height = Application.GetRealHeight(311 + 58)
};
midFl.AddChidren(itemView);
for (int i = 0; i < 2; i++)
{
- var icon = new Button()
+ var icon = new ImageView()
{
- X = Application.GetRealWidth(CommonPage.XLeft + i * (467 + 32)),
- Width = Application.GetMinRealAverage(467),
- Height = Application.GetMinRealAverage(311),
- Gravity = Gravity.CenterVertical,
- UnSelectedImagePath = $"RoomIcon/{k}.JPG",
+ X = Application.GetRealWidth(58 + i * (467 + 32)),
+ Y = Application.GetRealHeight(58),
+ Width = Application.GetRealWidth(467),
+ Height = Application.GetRealHeight(311),
+ ImagePath = $"RoomIcon/{k}.JPG",
+ Radius = (uint)Application.GetRealHeight(17)
};
itemView.AddChidren(icon);
icon.SetViewShadow(true);
@@ -75,7 +77,7 @@
EventHandler<MouseEventArgs> selectIcon = (sender, e) =>
{
- action?.Invoke(icon.UnSelectedImagePath);
+ action?.Invoke(icon.ImagePath);
action = null;
this.RemoveFromParent();
};
--
Gitblit v1.8.0