| | |
| | | if (etParater.Text.Length > 20) |
| | | { |
| | | etParater.Text = etParater.Text.Remove(20); |
| | | |
| | | #if __ANDROID__ |
| | | etParater.SetSelectionEnd(); |
| | | #endif |
| | | } |
| | | }; |
| | | |
| | |
| | | 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(btnCancel); |
| | | |
| | | //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 = btnCancel.Right, |
| | | Y = btnLine.Y, |
| | | Width = Application.GetRealWidth(135), |
| | | Height = Application.GetRealHeight(43 + 1), |
| | | Height = Application.GetRealHeight(45), |
| | | TextAlignment = TextAlignment.Center, |
| | | //TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | |
| | | /// <param name="isWhite"></param> |
| | | public void TipMsgAutoClose(string msg, bool isWhite, int closeTime = 1500) |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | Dialog dialog = new Dialog(); |
| | | |
| | | FrameLayout dialogBody = new FrameLayout(); |
| | | dialog.AddChidren(dialogBody); |
| | | dialogBody.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | dialog.Close(); |
| | | dialog = null; |
| | | }; |
| | | |
| | | FrameLayout frame = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(89), |
| | | Y = Application.GetRealHeight(285), |
| | | Width = Application.GetRealWidth(198), |
| | | Height = Application.GetRealHeight(98), |
| | | }; |
| | | |
| | | FrameLayout frame = new FrameLayout() |
| | | { |
| | | BackgroundColor = isWhite ? 0xE6FFFFFF : CSS_Color.DialogTransparentColor1, |
| | | Radius = (uint)Application.GetRealWidth(12), |
| | | }; |
| | | dialog.AddChidren(frame); |
| | | frame.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | dialog.Close(); |
| | | dialog = null; |
| | | }; |
| | | |
| | | Button btnTipIcon = new Button() |
| | | { |
| | |
| | | Thread.Sleep(closeTime); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | dialog.Close(); |
| | | if(dialog!=null) |
| | | { |
| | | dialog.Close(); |
| | | } |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |