//using System;
|
//using HDL_ON.UI.CSS;
|
//using Shared;
|
//namespace HDL_ON.UI
|
//{
|
// public class FaceSettingPage : FrameLayout
|
// {
|
// FrameLayout bodyView;
|
|
// #region 图标选择部分图标
|
// /// <summary>
|
// /// 背景图选项区域
|
// /// </summary>
|
// FrameLayout pictureOptionView;
|
// /// <summary>
|
// /// 背景图选项选择区域
|
// /// </summary>
|
// VerticalScrolViewLayout optionView;
|
// /// <summary>
|
// /// 拍照按钮
|
// /// </summary>
|
// Button btnTakePicture;
|
// /// <summary>
|
// /// 相册按钮
|
// /// </summary>
|
// Button btnAlbum;
|
// /// <summary>
|
// /// 取消按钮
|
// /// </summary>
|
// Button btnCancel;
|
// #endregion
|
|
// public FaceSettingPage()
|
// {
|
// bodyView = this;
|
// }
|
|
// public void LoadPage()
|
// {
|
// new TopViewDiv(bodyView, Language.StringByID(StringId.FacePassage)).LoadTopView();
|
// bodyView.BackgroundColor = CSS_Color.BackgroundColor;
|
|
// var contentView = new FrameLayout()
|
// {
|
// Y = Application.GetRealHeight(64),
|
// Height = Application.GetRealHeight(667 - 64),
|
// BackgroundColor = 0xFFFFFFFF,
|
// };
|
// bodyView.AddChidren(contentView);
|
|
|
// var imageName = Guid.NewGuid().ToString();
|
// CropImage.TakePicture((imagePath) =>
|
// {
|
|
// }, imageName, 4, 3);
|
|
|
// }
|
|
|
|
|
// /// <summary>
|
// /// 加载图标选择选项
|
// /// </summary>
|
// void LoadPictureOptionView()
|
// {
|
// var pView = new FrameLayout()
|
// {
|
// BackgroundColor = CSS_Color.DialogTransparentColor1,
|
// };
|
// bodyView.AddChidren(pView);
|
|
// pictureOptionView = new FrameLayout()
|
// {
|
// Y = Application.GetRealHeight(445),
|
// Height = Application.GetRealHeight(250),
|
// AnimateSpeed = 0.3f,
|
// Animate = Animate.DownToUp,
|
// };
|
// pView.AddChidren(pictureOptionView);
|
|
// optionView = new VerticalScrolViewLayout()
|
// {
|
// Gravity = Gravity.CenterHorizontal,
|
// Width = Application.GetRealWidth(343),
|
// Height = Application.GetRealHeight(150),
|
// BackgroundColor = CSS_Color.MainBackgroundColor,
|
// Radius = (uint)Application.GetRealWidth(12),
|
// };
|
// pictureOptionView.AddChidren(optionView);
|
|
// btnTakePicture = new Button()
|
// {
|
// Height = Application.GetRealHeight(50),
|
// TextAlignment = TextAlignment.Center,
|
// TextColor = CSS_Color.TextualColor,
|
// SelectedTextColor = CSS_Color.MainColor,
|
// TextSize = CSS_FontSize.SubheadingFontSize,
|
// TextID = StringId.TakePicture,
|
// };
|
// optionView.AddChidren(btnTakePicture);
|
|
// optionView.AddChidren(new Button() { Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
|
|
// btnAlbum = new Button()
|
// {
|
// Height = Application.GetRealHeight(50),
|
// TextAlignment = TextAlignment.Center,
|
// TextColor = CSS_Color.TextualColor,
|
// SelectedTextColor = CSS_Color.MainColor,
|
// TextSize = CSS_FontSize.SubheadingFontSize,
|
// TextID = StringId.Album,
|
// };
|
// optionView.AddChidren(btnAlbum);
|
|
// optionView.AddChidren(new Button() { Height = Application.GetRealHeight(1), Width = Application.GetRealWidth(343), BackgroundColor = CSS_Color.DividingLineColor });
|
|
// btnCancel = new Button()
|
// {
|
// Gravity = Gravity.CenterHorizontal,
|
// Y = Application.GetRealHeight(8) + optionView.Bottom,
|
// Width = Application.GetRealWidth(343),
|
// Height = Application.GetRealHeight(50),
|
// BackgroundColor = CSS_Color.MainBackgroundColor,
|
// Radius = (uint)Application.GetRealWidth(12),
|
// TextID = StringId.Cancel,
|
// TextColor = CSS_Color.WarningColor,
|
// TextSize = CSS_FontSize.SubheadingFontSize,
|
// };
|
// pictureOptionView.AddChidren(btnCancel);
|
|
|
// LoadEvent_PictureOptionViewEventList(pView);
|
// }
|
|
// /// <summary>
|
// /// 加载背景图选择区域事件列表
|
// /// </summary>
|
// void LoadEvent_PictureOptionViewEventList(FrameLayout pView)
|
// {
|
// pictureOptionView.MouseUpEventHandler = (sender, e) =>
|
// {
|
// pictureOptionView.Parent.RemoveFromParent();
|
// };
|
// pView.MouseUpEventHandler = (sender, e) =>
|
// {
|
// pictureOptionView.Parent.RemoveFromParent();
|
// };
|
|
// btnCancel.MouseUpEventHandler = (sender, e) =>
|
// {
|
// pictureOptionView.Parent.RemoveFromParent();
|
// };
|
// btnTakePicture.MouseDownEventHandler = (sender, e) => {
|
// btnTakePicture.IsSelected = true;
|
// };
|
// btnTakePicture.MouseUpEventHandler = (sender, e) =>
|
// {
|
// btnTakePicture.IsSelected = false;
|
// var imageName = Guid.NewGuid().ToString();
|
// //var imageName = scene.sid;
|
// CropImage.TakePicture((imagePath) =>
|
// {
|
// CropImageCallBack(imagePath);
|
|
// }, imageName, 4, 3);
|
|
// //if (pageTitleId == StringId.EditScene)
|
// //{
|
// // scene.SaveFunctionData();
|
// //}
|
// pictureOptionView.Parent.RemoveFromParent();
|
// };
|
// btnAlbum.MouseDownEventHandler = (sender, e) => {
|
// btnAlbum.IsSelected = true;
|
// };
|
|
// btnAlbum.MouseUpEventHandler = (sender, e) =>
|
// {
|
// btnAlbum.IsSelected = false;
|
// //从相册选择图片裁剪
|
// var imageName = Guid.NewGuid().ToString();
|
// //var imageName = scene.sid;
|
// CropImage.SelectPicture((imagePath) =>
|
// {
|
// //CropImageCallBack(imagePath);
|
// }, imageName, 4, 3);
|
|
// pictureOptionView.Parent.RemoveFromParent();
|
// };
|
|
// }
|
|
// }
|
//}
|