| | |
| | | this.ClearBodyFrame();
|
| | |
|
| | | //房间图片
|
| | | var framePic = new FrameLayout();
|
| | | framePic.Y = Application.GetRealHeight(60);
|
| | | framePic.Width = Application.GetMinRealAverage(887);
|
| | | framePic.Height = Application.GetMinRealAverage(444);
|
| | | framePic.Gravity = Gravity.CenterHorizontal;
|
| | | framePic.Radius = (uint)Application.GetRealHeight(17);
|
| | | framePic.BackgroundColor = UserCenterColor.Current.BodyFrameLayout;
|
| | | bodyFrameLayout.AddChidren(framePic);
|
| | | var btnPic = new ImageView();
|
| | | btnPic.Y = Application.GetRealHeight(60);
|
| | | btnPic.Width = Application.GetMinRealAverage(887);
|
| | | btnPic.Height = Application.GetMinRealAverage(444);
|
| | | btnPic.Radius = (uint)Application.GetRealHeight(17);
|
| | | btnPic.Gravity = Gravity.CenterHorizontal;
|
| | | btnPic.ImagePath = "RoomIcon/0.JPG";
|
| | | framePic.AddChidren(btnPic);
|
| | | //在上面放一层阴影
|
| | | var btnPicBack = new FrameLayout();
|
| | | btnPicBack.Radius = (uint)Application.GetRealHeight(17);
|
| | | btnPicBack.BackgroundColor = 0x26000000;
|
| | | framePic.AddChidren(btnPicBack);
|
| | | btnPicBack.MouseUpEventHandler += (sender, e) =>
|
| | | bodyFrameLayout.AddChidren(btnPic);
|
| | | var btnShadow = new PicViewControl(916, 487);
|
| | | btnShadow.Y = btnPic.Y;
|
| | | btnShadow.Gravity = Gravity.CenterHorizontal;
|
| | | btnShadow.UnSelectedImagePath = "Room/RoomShadow.png";
|
| | | bodyFrameLayout.AddChidren(btnShadow);
|
| | | btnShadow.MouseUpEventHandler += (sender, e) =>
|
| | | {
|
| | | //房间图片选择
|
| | | this.RoomPictrueSelect(btnPic);
|
| | | };
|
| | | //添加阴影特效
|
| | | framePic.SetViewShadow(true);
|
| | |
|
| | | this.newRoom = new Common.Room();
|
| | | newRoom.FloorId = this.floorKeys;
|