| | |
| | | btnLog.TextAlignment = TextAlignment.Center;
|
| | | btnLog.TextID = R.MyInternationalizationString.uSecurityLog;
|
| | | btnLog.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | frameLog.AddChidren(btnLog, ChidrenBindMode.BindEventOnly);
|
| | | frameLog.AddChidren(btnLog, ChidrenBindMode.BindEvent);
|
| | | //底线
|
| | | var btnLogLine = new NormalViewControl(40, 10, true);
|
| | | btnLogLine.Y = Application.GetRealHeight(86);
|
| | | btnLogLine.X = btnLog.X + btnLog.Width / 2 - Application.GetRealWidth(40) / 2;
|
| | | btnLogLine.Radius = (uint)Application.GetRealHeight(10) / 2;
|
| | | btnLogLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
|
| | | frameLog.AddChidren(btnLogLine, ChidrenBindMode.BindEventOnly);
|
| | | frameLog.AddChidren(btnLogLine, ChidrenBindMode.BindEvent);
|
| | | btnLogLine.Visible = false;
|
| | |
|
| | | //传感器状态(点击范围有点小,需要扩大它的点击范围)
|
| | |
| | | btnSensor.TextAlignment = TextAlignment.Center;
|
| | | btnSensor.TextColor = UserCenterColor.Current.TextColor2;
|
| | | btnSensor.IsBold = true;
|
| | | frameSensor.AddChidren(btnSensor, ChidrenBindMode.BindEventOnly);
|
| | | frameSensor.AddChidren(btnSensor, ChidrenBindMode.BindEvent);
|
| | | //底线
|
| | | var btnSensorLine = new NormalViewControl(40, 10, true);
|
| | | btnSensorLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnSensorLine.Y = btnLogLine.Y;
|
| | | btnSensorLine.X = btnSensor.X + btnSensor.Width / 2 - Application.GetRealWidth(40) / 2;
|
| | | btnSensorLine.Radius = (uint)Application.GetRealHeight(10) / 2;
|
| | | frameSensor.AddChidren(btnSensorLine, ChidrenBindMode.BindEventOnly);
|
| | | frameSensor.AddChidren(btnSensorLine, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //安防记录Tab
|
| | | frameLog.ButtonClickEvent += (sender, e) =>
|
| | |
| | |
|
| | | //自定义传感器状态控件
|
| | | var frameDevice = new SafetySensorStatuControl();
|
| | | listView.AddChidrenFrame(frameDevice);
|
| | | listView.AddChidren(frameDevice);
|
| | | frameDevice.InitControl(device);
|
| | | //添加阴影特效
|
| | | frameDevice.SetViewShadow(true);
|
| | |
| | | //执行初始化
|
| | | TodaySafeguardFrame = new SafeguardLogControl();
|
| | | TodaySafeguardFrame.Y = Application.GetRealHeight(10);
|
| | | listView.AddChidrenFrame(TodaySafeguardFrame);
|
| | | listView.AddChidren(TodaySafeguardFrame);
|
| | | TodaySafeguardFrame.InitControl(nowDayKey, nowDayData);
|
| | |
|
| | | //初始化其他日期的安防记录控件
|
| | |
| | | {
|
| | | otherDaySafeguardFrame = new FrameLayout();
|
| | | otherDaySafeguardFrame.Height = Application.GetRealHeight(10);
|
| | | listView.AddChidrenFrame(otherDaySafeguardFrame);
|
| | | listView.AddChidren(otherDaySafeguardFrame);
|
| | | foreach (var dayText in dicInfo.Keys)
|
| | | {
|
| | | //执行初始化
|