From 1265d531759b5565e9f641b17045896b52dfdba8 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 03 十二月 2020 18:37:47 +0800 Subject: [PATCH] 2020-12-03 1.主页增加未读消息查询和提示处理。2.房间和场景背景上传和下载和读取方法修改处理。3.头像上传和下载方案修改处理。4.增加子账号头像下载。5.Loading 调用方法修复。6.封装ImageUtlis 图片上传和下载管理工具类 7.读取本地住宅增加判空处理。 --- HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPage.cs | 53 +++++++++++++++++++---------------------------------- 1 files changed, 19 insertions(+), 34 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPage.cs index a0e6a01..ff52f30 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPage.cs @@ -28,7 +28,7 @@ { bodyView.BackgroundColor = CSS_Color.BackgroundColor; LoadEvent_SkipAddRoomPage(); - new TopViewDiv(bodyView, Language.StringByID(StringId.RoomsManagement)).LoadTopView("rooms",skipAddRoomAction); + new TopViewDiv(bodyView, Language.StringByID(StringId.RoomsManagement)).LoadTopView_AddIcon("rooms",skipAddRoomAction); //new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.RoomsManagement), "rooms", skipAddRoomAction); roomsListView = new VerticalScrolViewLayout() @@ -50,61 +50,46 @@ /// </summary> void LoadRoomRow(Room room) { - roomsListView.AddChidren(new Button() - { - Height = Application.GetRealHeight(8), - Tag = room.name+"line", - }); - var roomRow = new FrameLayout() { - Gravity = Gravity.CenterHorizontal, Tag = room.name + "row", - Width = Application.GetRealWidth(343), - Height = Application.GetRealHeight(92), - Radius = (uint)Application.GetRealWidth(12), + Height = Application.GetRealHeight(100), }; roomsListView.AddChidren(roomRow); - var btnBg = new Button() + var btnBg = new ImageView() { - Y = Application.GetRealHeight(0 - (192 - 92) / 2), - Height = Application.GetRealHeight(192), - UnSelectedImagePath = room.backgroundImage, + Y = Application.GetRealHeight(10), + Height = Application.GetRealHeight(90), + Width = Application.GetRealWidth(343), + //ImagePath = room.backgroundImage, Radius = (uint)Application.GetRealWidth(12), + Gravity = Gravity.CenterHorizontal, }; roomRow.AddChidren(btnBg); - //ImageView imageView = new ImageView() - //{ - // Height = Application.GetRealHeight(92), - // Radius = (uint)Application.GetRealWidth(12), - //}; - //roomRow.AddChidren(imageView); - - var btnShadow = new Button() - { - BackgroundColor = 0x19333333, - }; - roomRow.AddChidren(btnShadow); + //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶 + ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, btnBg); var btnRoomName = new Button() { - X = Application.GetRealWidth(12), - Y = Application.GetRealHeight(10), + X = Application.GetRealWidth(28), + Y = Application.GetRealHeight(21), Width = Application.GetRealWidth(266), - Height = Application.GetRealHeight(26), - TextAlignment = TextAlignment.CenterLeft, + Height = Application.GetRealHeight(22), + TextAlignment = TextAlignment.TopLeft, TextColor = CSS_Color.MainBackgroundColor, TextSize = CSS_FontSize.SubheadingFontSize, Text = room.floorName + room.name, }; roomRow.AddChidren(btnRoomName); - btnShadow.MouseUpEventHandler += (sender, e) => - { - LoadEvent_SkipEditRoomPage(room, btnRoomName, btnBg); + EventHandler<MouseEventArgs> eventHandler = (sender, e) => { + LoadEvent_SkipEditRoomPage(room, btnRoomName, btnBg, roomRow); }; + btnBg.MouseUpEventHandler = eventHandler; + roomRow.MouseUpEventHandler = eventHandler; + btnRoomName.MouseUpEventHandler = eventHandler; } } -- Gitblit v1.8.0