| | |
| | | #region ◆ 变量申明__________________________ |
| | | public FrameLayout topFrameLayout = new FrameLayout { Height = Application.GetRealHeight(184), BackgroundColor = ZigbeeColor.Current.XMTopFrameLayout }; |
| | | public FrameLayout midFrameLayout = new FrameLayout { Height = Application.GetRealHeight(1925 - 184), BackgroundColor = ZigbeeColor.Current.XMMidFrameLayout }; |
| | | |
| | | public FrameLayout bottomRadiusFrameLayout = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(100), |
| | |
| | | Radius = 17, |
| | | BackgroundColor = ZigbeeColor.Current.XMWhite, |
| | | }; |
| | | |
| | | public FrameLayout titleFrameLayout = new FrameLayout |
| | | { |
| | | Y = Application.GetRealHeight(92), |
| | | X = Application.GetRealWidth(161), |
| | | Width = Application.GetRealWidth(1080 - 161),//919 |
| | | Height = Application.GetRealHeight(69), |
| | | }; |
| | | public Button btnTitle = new Button |
| | | { |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMTopTitleText, |
| | | X = Application.GetRealWidth(161), |
| | | Width = Application.GetRealWidth(1080 - 161), |
| | | Width = Application.GetRealWidth(1080 - 161),//919 |
| | | Height = Application.GetRealWidth(69), |
| | | IsBold = true, |
| | | TextSize = 17, |
| | | IsBold = true, |
| | | //X = Application.GetRealWidth(161 - 116), |
| | | }; |
| | | /// <summary> |
| | | /// 标题返回布局 |
| | | /// </summary> |
| | | public FrameLayout btnBackFrameLayout = new FrameLayout |
| | | { |
| | | X = Application.GetRealWidth(58), |
| | | Height = Application.GetRealHeight(58), |
| | | Width = Application.GetRealWidth(58), |
| | | Width = Application.GetRealWidth(58 * 2),//116 |
| | | }; |
| | | |
| | | /// <summary> |
| | | /// 标题返回按键 |
| | | /// </summary> |
| | | public Button btnBack = new Button |
| | | { |
| | | Height = Application.GetMinReal(51), |
| | | Width = Application.GetMinReal(30), |
| | | Height = Application.GetRealHeight(51), |
| | | Width = Application.GetRealWidth(30), |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(98), |
| | | UnSelectedImagePath = "DoorLock/Left.png", |
| | | }; |
| | | |
| | | /// <summary> |
| | | /// 标题下线 |
| | | /// </summary> |
| | | public Button btnTitleLine = new Button |
| | | { |
| | | Y = Application.GetRealHeight(181), |
| | |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 门锁顶部布局 |
| | | /// 顶部布局 |
| | | /// </summary> |
| | | /// <param name="frameLayout"></param> |
| | | public void TopFrameLayout(FrameLayout frameLayout, string titleText) |
| | | { |
| | | this.AddChidren(topFrameLayout); |
| | | topFrameLayout.AddChidren(btnBackFrameLayout); |
| | | topFrameLayout.AddChidren(titleFrameLayout); |
| | | topFrameLayout.AddChidren(btnTitleLine); |
| | | btnBackFrameLayout.AddChidren(btnBack); |
| | | titleFrameLayout.AddChidren(btnTitle); |
| | | btnTitle.Text = titleText; |
| | | titleFrameLayout.AddChidren(btnBackFrameLayout); |
| | | btnBackFrameLayout.AddChidren(btnBack); |
| | | } |
| | | /// <summary> |
| | | /// 门锁中部布局 |