| | |
| | | //TextAlignment = TextAlignment.CenterLeft , |
| | | }; |
| | | editView.AddChidren(etParater); |
| | | if(encryption) |
| | | if (encryption) |
| | | { |
| | | etParater.SecureTextEntry = encryption; |
| | | } |
| | | |
| | | Button btnClear = new Button() |
| | | { |
| | | X = Application.GetRealWidth(218-25), |
| | | X = Application.GetRealWidth(218 - 25), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(24), |
| | | Height = Application.GetRealWidth(24), |
| | |
| | | /// <param name="callBackAction"></param> |
| | | public void TipOptionMsg(int titleId, int msgId, Action callBackAction) |
| | | { |
| | | TipOptionMsg(titleId, Language.StringByID(msgId), callBackAction); |
| | | } |
| | | /// <summary> |
| | | /// 加载提示弹窗 |
| | | /// </summary> |
| | | /// <param name="titleId"></param> |
| | | /// <param name="msgId"></param> |
| | | /// <param name="callBackAction"></param> |
| | | public void TipOptionMsg(int titleId, string msg, Action callBackAction) |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = CSS_Color.DialogTransparentColor1, |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextID = msgId, |
| | | Text = msg, |
| | | IsMoreLines = true, |
| | | }; |
| | | contentView.AddChidren(btnMsg); |
| | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载提示弹窗 |
| | | /// </summary> |
| | | /// <param name="titleId"></param> |
| | | /// <param name="msgId"></param> |
| | | public void TipMsg(int titleId, int msgId,Action action = null) |
| | | /// <param name="title"></param> |
| | | /// <param name="msg"></param> |
| | | /// <param name="action"></param> |
| | | public void TipMsg(string title, string msg, Action action = null) |
| | | { |
| | | |
| | | Dialog dialog = new Dialog() |
| | | { |
| | | BackgroundColor = CSS_Color.DialogTransparentColor1, |
| | |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextAlignment = TextAlignment.Center, |
| | | IsBold = true, |
| | | TextID = titleId, |
| | | Text = title |
| | | }; |
| | | contentView.AddChidren(btnTitle); |
| | | |
| | |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextID = msgId, |
| | | Text = msg, |
| | | IsMoreLines = true, |
| | | }; |
| | | contentView.AddChidren(btnMsg); |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 加载提示弹窗 |
| | | /// </summary> |
| | | /// <param name="titleId"></param> |
| | | /// <param name="msgId"></param> |
| | | public void TipMsg(int titleId, int msgId, Action action = null) |
| | | { |
| | | TipMsg(Language.StringByID(titleId), Language.StringByID(msgId), action); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载等待界面 |
| | | /// </summary> |
| | |
| | | if (showedTime.AddSeconds(30) > DateTime.Now) |
| | | { |
| | | thread.Abort(); |
| | | waitPage.RemoveFromParent(); |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | } |
| | | }; |
| | | thread.Start(); |