| | |
| | | public void InitControl(CommonDevice i_device)
|
| | | {
|
| | | this.deviceMac = i_device.DeviceAddr;
|
| | | //防止出现误差
|
| | | int iconWidth = Application.GetMinRealAverage(207) - Application.GetMinRealAverage(12) - Application.GetMinRealAverage(12);
|
| | | //第二层底色
|
| | | var btnIcon2 = new NormalViewControl(Application.GetMinRealAverage(184), Application.GetMinRealAverage(184), false);
|
| | | var btnIcon2 = new NormalViewControl(iconWidth, iconWidth, false);
|
| | | btnIcon2.BackgroundColor = 0xfffef1ed;
|
| | | btnIcon2.Radius = (uint)Application.GetMinRealAverage(184) / 2;
|
| | | btnIcon2.Radius = (uint)iconWidth / 2;
|
| | | btnIcon2.Gravity = Gravity.Center;
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEventOnly);
|
| | |
|
| | |
| | | {
|
| | | this.deviceMac = deviceMacAddr;
|
| | | this.deviceEpoint = epoint;
|
| | |
|
| | | //防止出现误差
|
| | | int iconWidth = Application.GetMinRealAverage(207) - Application.GetMinRealAverage(12) - Application.GetMinRealAverage(12);
|
| | | //第二层底色
|
| | | var btnIcon2 = new NormalViewControl(Application.GetMinRealAverage(184), Application.GetMinRealAverage(184), false);
|
| | | var btnIcon2 = new NormalViewControl(iconWidth, iconWidth, false);
|
| | | btnIcon2.BackgroundColor = 0xfffef1ed;
|
| | | btnIcon2.Radius = (uint)Application.GetMinRealAverage(184) / 2;
|
| | | btnIcon2.Radius = (uint)iconWidth / 2;
|
| | | btnIcon2.Gravity = Gravity.Center;
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEventOnly);
|
| | |
|
| | |
| | | public void InitControl(ZbGateway i_gateway)
|
| | | {
|
| | | this.zbGateway = i_gateway;
|
| | | //防止出现误差
|
| | | int iconWidth = Application.GetMinRealAverage(207) - Application.GetMinRealAverage(12) - Application.GetMinRealAverage(12);
|
| | | //第二层底色
|
| | | var btnIcon2 = new NormalViewControl(Application.GetMinRealAverage(184), Application.GetMinRealAverage(184), false);
|
| | | var btnIcon2 = new NormalViewControl(iconWidth, iconWidth, false);
|
| | | btnIcon2.BackgroundColor = 0xfffef1ed;
|
| | | btnIcon2.Radius = (uint)Application.GetMinRealAverage(184) / 2;
|
| | | btnIcon2.Radius = (uint)iconWidth / 2;
|
| | | btnIcon2.Gravity = Gravity.Center;
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEventOnly);
|
| | |
|