| | |
| | | frameLayoutDraw.Height = frameBack.Height - Application.GetRealHeight(181);
|
| | | frameBack.AddChidren(frameLayoutDraw);
|
| | |
|
| | | //计算宽度使用
|
| | | var btnTemp = new ButtonBase();
|
| | | btnTemp.TextSize = 16;
|
| | | btnTemp.IsBold = true;
|
| | |
|
| | | btnTemp.TextID = R.MyInternationalizationString.uSecurityLog;
|
| | | int frameLogWidth = btnTemp.GetRealWidthByText() + Application.GetRealWidth(30);
|
| | |
|
| | | btnTemp.TextID = R.MyInternationalizationString.uSensorStatu;
|
| | | int frameSensorWidth = btnTemp.GetRealWidthByText() + Application.GetRealWidth(30);
|
| | |
|
| | | //安防记录(点击范围有点小,需要扩大它的点击范围)
|
| | | var frameLog = new FrameLayoutStatuControl();
|
| | | frameLog.UseClickStatu = false;
|
| | | frameLog.Height = Application.GetRealHeight(123);
|
| | | frameLog.Width = Application.GetRealWidth(273);
|
| | | frameLog.X = Application.GetRealWidth(259);
|
| | | frameLog.Width = frameLogWidth;
|
| | | frameLog.X = (frameBack.Width - frameLogWidth - frameSensorWidth) / 2;
|
| | | frameLog.Y = Application.GetRealHeight(58);
|
| | | frameBack.AddChidren(frameLog);
|
| | | //标题
|
| | |
| | | //底线
|
| | | var btnLogLine = new NormalViewControl(40, 10, true);
|
| | | btnLogLine.Y = Application.GetRealHeight(86);
|
| | | btnLogLine.X = btnLog.X + btnLog.Width / 2 - Application.GetRealWidth(40) / 2;
|
| | | //btnLogLine.X = btnLog.X + btnLog.Width / 2 - Application.GetRealWidth(40) / 2;
|
| | | btnLogLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnLogLine.Radius = (uint)Application.GetRealHeight(10) / 2;
|
| | | btnLogLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
|
| | | frameLog.AddChidren(btnLogLine, ChidrenBindMode.BindEvent);
|
| | |
| | | var frameSensor = new FrameLayoutStatuControl();
|
| | | frameSensor.UseClickStatu = false;
|
| | | frameSensor.Height = frameLog.Height;
|
| | | frameSensor.Width = frameLog.Width;
|
| | | frameSensor.Width = frameSensorWidth;
|
| | | frameSensor.X = frameLog.Right;
|
| | | frameSensor.Y = frameLog.Y;
|
| | | frameBack.AddChidren(frameSensor);
|
| | |
| | | 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.X = btnSensor.X + btnSensor.Width / 2 - Application.GetRealWidth(40) / 2;
|
| | | btnSensorLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnSensorLine.Radius = (uint)Application.GetRealHeight(10) / 2;
|
| | | frameSensor.AddChidren(btnSensorLine, ChidrenBindMode.BindEvent);
|
| | |
|