| | |
| | | this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 613, 1175);
|
| | |
|
| | | //房间图片底部阴影
|
| | | var btnShadow = new PicViewControl(994, 588);
|
| | | var btnShadow = new PicViewControl(853, 593);
|
| | | btnShadow.Y = Application.GetRealHeight(58);
|
| | | btnShadow.Gravity = Gravity.CenterHorizontal;
|
| | | btnShadow.UnSelectedImagePath = "Room/RoomShadow.png";
|
| | |
| | | //房间图片
|
| | | var btnPic = new ImageView();
|
| | | btnPic.Y = Application.GetRealHeight(60);
|
| | | btnPic.Width = Application.GetMinRealAverage(965);
|
| | | btnPic.Height = Application.GetMinRealAverage(544);
|
| | | btnPic.Width = Application.GetMinRealAverage(824);
|
| | | btnPic.Height = Application.GetMinRealAverage(549);
|
| | | btnPic.Radius = (uint)Application.GetRealHeight(17);
|
| | | btnPic.Gravity = Gravity.CenterHorizontal;
|
| | | if (this.editorRoom.BackgroundImageType == 0)
|
| | |
| | | btnZhezhao.Gravity = Gravity.CenterHorizontal;
|
| | | btnZhezhao.Radius = btnPic.Radius;
|
| | | bodyFrameLayout.AddChidren(btnZhezhao);
|
| | | //分享的房间不能修改
|
| | | if (this.editorRoom.IsSharedRoom == false)
|
| | | btnZhezhao.MouseUpEventHandler += (sender, e) =>
|
| | | {
|
| | | btnZhezhao.MouseUpEventHandler += (sender, e) =>
|
| | | {
|
| | | //房间图片选择
|
| | | this.RoomPictrueSelect(btnPic);
|
| | | };
|
| | | }
|
| | | //房间图片选择
|
| | | this.RoomPictrueSelect(btnPic);
|
| | | };
|
| | |
|
| | | //变更一下那个白色背景的Y轴,它到图片的中间位置
|
| | | frameBack1.Y = btnPic.Y + btnPic.Height / 2;
|
| | |
|
| | | //添加全部菜单
|
| | | this.AddAllMenuRow(tableContr, btnPic);
|
| | |
| | | //初始化桌布完成
|
| | | tableContr.FinishInitControl(bodyFrameLayout, this.listview);
|
| | | tableContr = null;
|
| | |
|
| | | //分享的房间不能修改
|
| | | if (this.editorRoom.IsSharedRoom == true)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | //保存
|
| | | var btnFinish = new BottomClickButton();
|
| | |
| | | this.cloneRoom.BackgroundImageType = 1;
|
| | | imageContr.ImageBytes = Shared.IO.FileUtils.ReadFile(imagePath);
|
| | | System.IO.File.Delete(imagePath);
|
| | | }, "HdlPic", 16, 9);
|
| | | }, "HdlPic", 2, 1);
|
| | | });
|
| | | //我的相册
|
| | | menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.MyAblums), () =>
|
| | |
| | | imageContr.ImageBytes = Shared.IO.FileUtils.ReadFile(imagePath);
|
| | | System.IO.File.Delete(imagePath);
|
| | |
|
| | | }, "HdlPic", 16, 9);
|
| | | }, "HdlPic", 2, 1);
|
| | | });
|
| | | }
|
| | |
|