From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 28 二月 2020 15:25:13 +0800
Subject: [PATCH] 2020.2.28
---
ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs b/ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs
index 9811dc5..188c42f 100644
--- a/ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Category/CategorySceneSelectImgByLocal.cs
@@ -75,18 +75,19 @@
{
var itemView = new FrameLayout()
{
- Height = Application.GetRealHeight(311 + CommonPage.XLeft)
+ Height = Application.GetRealHeight(311 + 58)
};
scrollView.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 = $"SceneIcon/{k}.jpg",
+ X=Application.GetRealWidth(58+i*(467+32)),
+ Y=Application.GetRealHeight(58),
+ Width=Application.GetRealWidth(467),
+ Height=Application.GetRealHeight(311),
+ ImagePath = $"SceneIcon/{k}.jpg",
+ Radius =(uint)Application.GetRealHeight(17)
};
itemView.AddChidren(icon);
icon.SetViewShadow(true);
@@ -94,17 +95,13 @@
EventHandler<MouseEventArgs> selectIcon = (sender, e) =>
{
- //CategoryAddScene.ImagePath = icon.UnSelectedImagePath;
- //Room.AddRoomScene.ImagePath = icon.UnSelectedImagePath;
- action?.Invoke(icon.UnSelectedImagePath);
+ action?.Invoke(icon.ImagePath);
action = null;
this.RemoveFromParent();
-
};
icon.MouseUpEventHandler += selectIcon;
}
}
-
}
#endregion
}
--
Gitblit v1.8.0