From 8a10caa6573a67dac87be44d6990151248b2cc44 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 04 十二月 2020 13:58:27 +0800 Subject: [PATCH] 2020-12-04 1.优化Android极光推送,未完善。 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 7bff1ae..2bb3b9b 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -224,7 +224,7 @@ { Gravity = Gravity.CenterHorizontal, Width = Application.GetRealWidth(343), - Height = Application.GetRealHeight(184), + Height = Application.GetRealWidth(192),//2020-12-01 鎴块棿鍥剧墖姣斾緥鏀瑰洖16:9 Radius = (uint)Application.GetRealWidth(12), Tag = room.sid, }; @@ -233,11 +233,14 @@ var roomViewbg = new ImageView() { Width = Application.GetRealWidth(343), - Height = Application.GetRealHeight(184), - ImagePath = room.backgroundImage, + Height = Application.GetRealWidth(192),//2020-12-01 鎴块棿鍥剧墖姣斾緥鏀瑰洖16:9 + //ImagePath = room.backgroundImage, Radius = (uint)Application.GetRealWidth(12), }; roomView.AddChidren(roomViewbg); + + //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶 + ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, roomViewbg); var roomViewbgColor = new Button() { @@ -341,7 +344,7 @@ var btnAllClose = new Button() { X = Application.GetRealWidth(282), - Y = Application.GetRealHeight(126), + Y = Application.GetRealWidth(126), Width = Application.GetMinRealAverage(58), Height = Application.GetMinRealAverage(58), UnSelectedImagePath = "Classification/Room/AllCloseIcon.png", @@ -353,17 +356,22 @@ var btn = new Button() { - Height = Application.GetRealHeight(20), + Height = Application.GetRealWidth(20), }; roomListView.AddChidren(btn); roomViewbgColor.MouseUpEventHandler += (sender, e) => { - Action<Room > ReloadRoomName = (obj) => { - btnFloorAndRoomName.Text = obj.floorName + obj.name; + Action ReloadRoomName = () => { + btnFloorAndRoomName.Text = room.floorName + room.name; }; - var view = new RoomPage(room, ReloadRoomName); + //鎴块棿鍒犻櫎浜嬩欢 + Action deleteAction = () => { + roomView.RemoveFromParent(); + }; + + var view = new RoomPage(room, ReloadRoomName, deleteAction); MainPage.BasePageView.AddChidren(view); view.LoadPage(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; -- Gitblit v1.8.0