| | |
| | | |
| | | this.CalculatedPosition();//重新计算宽度 |
| | | |
| | | int heightY = btnDoorLockIcon.Bottom + Application.GetRealHeight(70); |
| | | var btnDoorlockStatus = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(200), |
| | | Height = Application.GetRealHeight(62), |
| | | Y = btnDoorLockIcon.Bottom, |
| | | TextAlignment = TextAlignment.Center, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextID = StringId.DoorlockOpen, |
| | | TextColor = CSS_Color.WarningColor, |
| | | TextSize = 16, |
| | | }; |
| | | whiteFl.AddChidren(btnDoorlockStatus); |
| | | |
| | | int heightY = btnDoorLockIcon.Bottom + Application.GetRealHeight(133); |
| | | //实时视频 |
| | | rtvFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | | whiteFl.AddChidren(rtvFL); |
| | | rtvFL.Y = heightY; |
| | | rtvFL.X = Application.GetRealWidth(41); |
| | | rtvFL.X = Application.GetRealWidth(26); |
| | | rtvFL.AddImageView(); |
| | | rtvFL.AddTextButtonView(); |
| | | rtvFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/RTV.png"; |
| | | rtvFL.GetTextButton().TextID = StringId.shishishipin; |
| | | //历史记录 |
| | | recordFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | | whiteFl.AddChidren(recordFL); |
| | | recordFL.Y = heightY; |
| | | recordFL.X = rtvFL.Right + Application.GetRealWidth(CustomFrameLayout.interval); |
| | | recordFL.AddImageView(); |
| | | recordFL.AddTextButtonView(); |
| | | recordFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/HistoryList.png"; |
| | | recordFL.GetTextButton().TextID = StringId.lishijilu; |
| | | |
| | | //临时密码 |
| | | pswFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | | whiteFl.AddChidren(pswFL); |
| | | pswFL.Y = heightY; |
| | | pswFL.X = recordFL.Right + Application.GetRealWidth(CustomFrameLayout.interval); |
| | | pswFL.X = rtvFL.Right + Application.GetRealWidth(CustomFrameLayout.interval); |
| | | pswFL.AddImageView(); |
| | | pswFL.AddTextButtonView(); |
| | | pswFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/OneOpenLock.png"; |
| | | pswFL.GetTextButton().TextID = StringId.linshimima1; |
| | | |
| | | //历史记录 |
| | | recordFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | | whiteFl.AddChidren(recordFL); |
| | | recordFL.Y = heightY; |
| | | recordFL.X = pswFL.Right + Application.GetRealWidth(CustomFrameLayout.interval); |
| | | recordFL.AddImageView(); |
| | | recordFL.AddTextButtonView(); |
| | | recordFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/HistoryList.png"; |
| | | recordFL.GetTextButton().TextID = StringId.lishijilu; |
| | | |
| | | //用户管理 |
| | | CustomFrameLayout userManagerView = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | | whiteFl.AddChidren(userManagerView); |
| | | userManagerView.Y = heightY; |
| | | userManagerView.X = recordFL.Right + Application.GetRealWidth(CustomFrameLayout.interval); |
| | | userManagerView.AddImageView(); |
| | | userManagerView.AddTextButtonView(); |
| | | userManagerView.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/DoorlockUserManager.png"; |
| | | userManagerView.GetTextButton().TextID = StringId.UserManagement; |
| | | |
| | | userManagerView.SetClickListener((fl, btnImage, btnText) => { |
| | | |
| | | }); |
| | | |
| | | #endregion |
| | | |
| | |
| | | //历史记录 |
| | | this.recordFL.SetClickListener((fl, btnStateImage, btnStateText) => |
| | | { |
| | | //VideoDoorlockHistoryPage historyPage = new VideoDoorlockHistoryPage(device); |
| | | //MainPage.BasePageView.AddChidren(historyPage); |
| | | //historyPage.LoadPage(); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | CommonMethod.Current.SkipRecordActivity(this.device.deviceId); |
| | | }); |
| | | |
| | |
| | | { |
| | | public const int widthFrameLayout = 48; |
| | | public const int heightFrameLayout = 53; |
| | | public const int yFrameLayout = 378; |
| | | public const int yFrameLayout = 442; |
| | | public const int xFrameLayout = 41; |
| | | public const int interval = 51;//行中的列间隔值 |
| | | public const int interval = 30;//行中的列间隔值 |
| | | |
| | | public CustomFrameLayout(int width, int height, int x = 0, int y = 0) |
| | | { |
| | |
| | | TextColor = MusicColor.TextCancelColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Name = "btnStateText" |
| | | Name = "btnStateText", |
| | | IsMoreLines = true, |
| | | }; |
| | | public void AddImageView() |
| | | { |