| | |
| | | { |
| | | |
| | | void EditParaterEvent(Button btnConfirm, int errorId_IsNullOrEmpty, int errorId_ContainsPar, List<string> list, EditText editText, Action<string> callBackAction, |
| | | FrameLayout contentView, Button btnLine, Button btnBottomLine, Button btnCancel, FrameLayout editView, Dialog dialog,int titleId) |
| | | FrameLayout contentView, Button btnLine, Button btnCancel, FrameLayout editView, Dialog dialog,int titleId) |
| | | { |
| | | |
| | | var btnTip = new Button() |
| | |
| | | |
| | | contentView.Height = Application.GetRealHeight(183); |
| | | btnLine.Y = Application.GetRealHeight(139); |
| | | btnBottomLine.Y = btnLine.Bottom; |
| | | btnCancel.Y = btnLine.Bottom; |
| | | btnConfirm.Y = btnLine.Bottom; |
| | | |
| | |
| | | Button btnCancel = new Button() |
| | | { |
| | | Y = btnLine.Bottom, |
| | | Width = Application.GetRealWidth(134), |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(43), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.TextualColor, |
| | |
| | | }; |
| | | contentView.AddChidren(btnCancel); |
| | | |
| | | Button btnBottomLine = new Button() |
| | | { |
| | | X = btnCancel.Right, |
| | | Y = btnLine.Bottom, |
| | | Height = Application.GetRealHeight(43), |
| | | Width = Application.GetRealWidth(1), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }; |
| | | //Button btnBottomLine = new Button() |
| | | //{ |
| | | // X = btnCancel.Right, |
| | | // Y = btnLine.Bottom, |
| | | // Height = Application.GetRealHeight(43), |
| | | // Width = Application.GetRealWidth(1), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | //}; |
| | | //contentView.AddChidren(btnBottomLine); |
| | | |
| | | Button btnConfirm = new Button() |
| | | { |
| | | X = btnBottomLine.Right, |
| | | X = btnCancel.Right, |
| | | Y = btnLine.Y, |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(43+1), |
| | |
| | | TextID = StringId.Confirm, |
| | | }; |
| | | contentView.AddChidren(btnConfirm); |
| | | int mRectCornerID = HDLUtils.RectCornerBottomRight; |
| | | btnConfirm.SetCornerWithSameRadius((uint)Application.GetMinRealAverage(10), mRectCornerID); |
| | | |
| | | dialog.Show(); |
| | | |
| | |
| | | // btnConfirm.IsSelected = true; |
| | | //}; |
| | | EditParaterEvent(btnConfirm, errorId_IsNullOrEmpty, errorId_ContainsPar, baseList, etParater, callBackAction, |
| | | contentView, btnLine, btnBottomLine, btnCancel, editView, dialog,titleId); |
| | | contentView, btnLine, btnCancel, editView, dialog,titleId); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | Button btnCancel = new Button() |
| | | { |
| | | Y = btnLine.Bottom, |
| | | Width = Application.GetRealWidth(134), |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(43), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.TextualColor, |
| | |
| | | }; |
| | | contentView.AddChidren(btnCancel); |
| | | |
| | | Button btnBottomLine = new Button() |
| | | { |
| | | X = btnCancel.Right, |
| | | Y = btnLine.Bottom, |
| | | Height = Application.GetRealHeight(43), |
| | | Width = Application.GetRealWidth(1), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | }; |
| | | //Button btnBottomLine = new Button() |
| | | //{ |
| | | // X = btnCancel.Right, |
| | | // Y = btnLine.Bottom, |
| | | // Height = Application.GetRealHeight(43), |
| | | // Width = Application.GetRealWidth(1), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | //}; |
| | | //contentView.AddChidren(btnBottomLine); |
| | | |
| | | Button btnConfirm = new Button() |
| | | { |
| | | X = btnBottomLine.Right, |
| | | X = btnCancel.Right, |
| | | Y = btnLine.Y, |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(43+1), |
| | | TextAlignment = TextAlignment.Center, |
| | | //TextColor = CSS_Color.TextualColor, |
| | | //TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextID = StringId.Confirm, |
| | | }; |
| | | contentView.AddChidren(btnConfirm); |
| | | |
| | | //例:右下圆角 大小为50 |
| | | int mRectCornerID = HDLUtils.RectCornerBottomRight; |
| | | btnConfirm.SetCornerWithSameRadius((uint)Application.GetMinRealAverage(10), mRectCornerID); |
| | | dialog.Show(); |
| | | |
| | | //btnCancel.MouseDownEventHandler += (sender, e) => |