| | |
| | | {
|
| | | //开关的背景图片
|
| | | var picSwitchBack = new FrameLayout();
|
| | | picSwitchBack.Height = Application.GetMinRealAverage(579);
|
| | | picSwitchBack.Width = Application.GetMinRealAverage(579);
|
| | | picSwitchBack.Height = this.GetPictrueRealSize(579);
|
| | | picSwitchBack.Width = this.GetPictrueRealSize(579);
|
| | | picSwitchBack.Y = Application.GetRealHeight(340);
|
| | | picSwitchBack.BackgroundImagePath = "Light/OnOff.png";
|
| | | picSwitchBack.Gravity = Gravity.CenterHorizontal;
|
| | |
| | | var btnClose = new IconViewControl(81);
|
| | | btnClose.UnSelectedImagePath = "Light/OFF.png";
|
| | | btnClose.SelectedImagePath = "Light/OFFSelected.png";
|
| | | btnClose.X = Application.GetMinRealAverage(101);
|
| | | btnClose.Y = Application.GetMinRealAverage(248);
|
| | | btnClose.X = this.GetPictrueRealSize(101);
|
| | | btnClose.Y = this.GetPictrueRealSize(248);
|
| | | picSwitchBack.AddChidren(btnClose);
|
| | | listControl.Add(btnClose);
|
| | |
|
| | |
| | | var btnOpen = new IconViewControl(81);
|
| | | btnOpen.UnSelectedImagePath = "Light/ON.png";
|
| | | btnOpen.SelectedImagePath = "Light/ONSelected.png";
|
| | | btnOpen.X = Application.GetMinRealAverage(397);
|
| | | btnOpen.X = this.GetPictrueRealSize(397);
|
| | | btnOpen.Y = btnClose.Y;
|
| | | picSwitchBack.AddChidren(btnOpen);
|
| | | listControl.Add(btnOpen);
|