| | |
| | | { |
| | | contentView.RemoveAll(); |
| | | |
| | | #region F3阶段 |
| | | #region 住宅信息区域 |
| | | //if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | //{ |
| | | // residenceInfoView = new FrameLayout() |
| | | // { |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Width = Application.GetRealWidth(343), |
| | | // Height = Application.GetRealHeight(213), |
| | | // BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | // Radius = (uint)Application.GetRealHeight(12), |
| | | // BorderColor = 0x00FFFFFF, |
| | | // BorderWidth = 0, |
| | | // }; |
| | | // contentView.AddChidren(residenceInfoView); |
| | | //} |
| | | //else |
| | | #endregion |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | { |
| | | residenceInfoView = new FrameLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(213), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | BorderColor = 0x00FFFFFF, |
| | | BorderWidth = 0, |
| | | }; |
| | | contentView.AddChidren(residenceInfoView); |
| | | } |
| | | else |
| | | { |
| | | residenceInfoView = new FrameLayout() |
| | | { |
| | |
| | | BackgroundImagePath = "PersonalCenter/UserTypebg.png", |
| | | }; |
| | | residenceInfoView.AddChidren(userTypeView); |
| | | if (Language.CurrentLanguage != "Chinese" && !DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | { |
| | | userTypeView.X = Application.GetRealWidth(200); |
| | | userTypeView.Width = Application.GetRealWidth(180); |
| | | userTypeView.BackgroundImagePath = "PersonalCenter/UserTypebg2.png"; |
| | | } |
| | | |
| | | btnUserTypeIcon = new Button() |
| | | { |
| | |
| | | == false ? "PersonalCenter/AdminTypeIcon.png" : "PersonalCenter/MemberTypeIcon.png", |
| | | }; |
| | | userTypeView.AddChidren(btnUserTypeIcon); |
| | | |
| | | btnUserTypeName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(8) + btnUserTypeIcon.Right, |
| | | Width = Application.GetRealWidth(80), |
| | | Width = Application.GetRealWidth(270), |
| | | Height = Application.GetRealHeight(17 * 3), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | |
| | | #region ---添加功能区域 |
| | | residenceAddFunctionView = new FrameLayout() |
| | | { |
| | | X = residenceAuxiliaryFunctionView.Right, |
| | | //X = residenceAuxiliaryFunctionView.Right, |
| | | X = Application.GetRealWidth(28 - 24), |
| | | Y = residenceManageView.Bottom, |
| | | Width = Application.GetRealWidth(64 + 48), |
| | | Height = Application.GetRealWidth(64), |