| | |
| | | /// <summary> |
| | | /// 中部布局中门锁名称显示 |
| | | /// </summary> |
| | | Button btnDoorLockTitle; |
| | | NormalViewControl btnDoorLockTitle; |
| | | /// <summary> |
| | | /// 分享 |
| | | /// </summary> |
| | |
| | | }; |
| | | this.midFrameLayout.AddChidren(midTopFrameLayout); |
| | | |
| | | //门锁标题 |
| | | btnDoorLockTitle = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(250), |
| | | Height = Application.GetRealHeight(60), |
| | | X = Application.GetRealWidth(372), |
| | | Y = Application.GetRealHeight(46), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | TextSize = 15, |
| | | TextAlignment = TextAlignment.Center, |
| | | IsBold = true, |
| | | }; |
| | | //设备名称 |
| | | btnDoorLockTitle = new NormalViewControl(100, 60, true);
|
| | | btnDoorLockTitle.Y = Application.GetRealHeight(46);
|
| | | btnDoorLockTitle.TextSize = 15;
|
| | | btnDoorLockTitle.IsBold = true; |
| | | btnDoorLockTitle.Text = Common.LocalDevice.Current.GetDeviceMacName(doorLock);
|
| | | btnDoorLockTitle.Width = btnDoorLockTitle.GetRealWidthByText();
|
| | | btnDoorLockTitle.TextAlignment = TextAlignment.Center;
|
| | | btnDoorLockTitle.Gravity = Gravity.CenterHorizontal;
|
| | | midTopFrameLayout.AddChidren(btnDoorLockTitle); |
| | | |
| | | //记录 |