From b8e94316e41eba72d927d5ca7d931b26139ee8ff Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 15 六月 2020 09:12:53 +0800
Subject: [PATCH] 20200612
---
HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs | 36 ++++++++++++++++++++++++++++--------
1 files changed, 28 insertions(+), 8 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs
index e8e30e0..0734f38 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPage.cs
@@ -130,18 +130,28 @@
#endregion
Room room;
int pageTitleId;
+ int rowCount = 1;
+ Action backAction;
- public RoomEditPage(Room r, int tId)
+ public RoomEditPage(Room r, int tId,Action action)
{
bodyView = this;
room = r;
pageTitleId = tId;
+ backAction = action;
}
public void LoadPage()
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
- new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(pageTitleId));
+ if(pageTitleId == StringId.AddRoom)
+ {
+ new TopViewDiv(bodyView, Language.StringByID(pageTitleId)).LoadTopView();
+ }
+ else
+ {
+ new TopViewDiv(bodyView, Language.StringByID(pageTitleId)).LoadTopView(backAction);
+ }
roomBgView = new FrameLayout()
{
@@ -178,7 +188,7 @@
roomInfoView = new VerticalScrolViewLayout()
{
Y = roomBgView.Bottom + Application.GetRealHeight(8),
- Height = Application.GetRealHeight(51 * 5),
+ Height = Application.GetRealHeight(50 * 5),
BackgroundColor = CSS_Color.MainBackgroundColor,
ScrollEnabled = false,
};
@@ -203,6 +213,7 @@
Height = Application.GetRealHeight(50),
};
roomInfoView.AddChidren(roomNameRow);
+ rowCount++;
btnRoomNameTile = new Button()
{
@@ -243,6 +254,7 @@
Height = Application.GetRealHeight(50),
};
roomInfoView.AddChidren(floorView);
+ rowCount++;
btnFloorTitle = new Button()
{
X = Application.GetRealWidth(16),
@@ -260,6 +272,7 @@
TextAlignment = TextAlignment.CenterRight,
TextColor = CSS_Color.PromptingColor1,
TextSize = CSS_FontSize.TextFontSize,
+ Text = room.floor
};
floorView.AddChidren(btnFloorInfo);
btnFloorRight = new Button()
@@ -279,6 +292,7 @@
Height = Application.GetRealHeight(50),
};
roomInfoView.AddChidren(sharedView);
+ rowCount++;
btnSharedTitle = new Button()
{
X = Application.GetRealWidth(16),
@@ -315,6 +329,7 @@
Height = Application.GetRealHeight(50),
};
roomInfoView.AddChidren(functionManagemantView);
+ rowCount++;
btnFunctionManagementTitle = new Button()
{
X = Application.GetRealWidth(16),
@@ -336,19 +351,24 @@
functionManagemantView.AddChidren(btnFunctionManagementRight);
#endregion
+ roomInfoView.Height = Application.GetRealHeight(51 * rowCount);
btnOption = new Button()
{
Y = Application.GetRealHeight(617),
Height = Application.GetRealHeight(50),
BackgroundColor = CSS_Color.MainBackgroundColor,
+ TextAlignment = TextAlignment.Center,
TextColor = this.pageTitleId == StringId.AddRoom ? CSS_Color.MainColor : CSS_Color.WarningColor,
- TextID = this.pageTitleId == StringId.AddRoom ? StringId.Save : StringId.DelRoom
+ TextID = this.pageTitleId == StringId.AddRoom ? StringId.Save : StringId.DeleteRoom
};
bodyView.AddChidren(btnOption);
-
-
+ if (MainPage.Increase)
+ {
+ btnOption.Y = Application.GetRealHeight(607);
+ btnOption.Height = Application.GetRealHeight(60);
+ }
LoadEventList();
}
@@ -360,7 +380,7 @@
{
pictureOptionView = new FrameLayout()
{
- BackgroundColor = 0x99000000,
+ BackgroundColor = CSS_Color.DialogTransparentColor1,
};
bodyView.AddChidren(pictureOptionView);
@@ -409,7 +429,7 @@
TextColor = CSS_Color.TextualColor,
SelectedTextColor = CSS_Color.MainColor,
TextSize = CSS_FontSize.SubheadingFontSize,
- TextID = StringId.TakePicture,
+ TextID = StringId.Album,
};
optionView.AddChidren(btnAlbum);
--
Gitblit v1.8.0