private void SetupInfo() { SettingsInfoText.Enabled = false; SettingsInfoText.Layer.CornerRadius = SettingsInfoText.Frame.Size.Height / 2; SettingsInfoText.Layer.BackgroundColor = UIColor.White.CGColor; SettingsInfoText.Layer.BorderWidth = 2; SettingsInfoText.SetTitleColor(UIColor.White, UIControlState.Normal); SettingsInfoText.BackgroundColor = UIColor.White; SettingsInfoText.Layer.BorderColor = UIColor.White.CGColor; SettingsInfoText.SetTitle(String.Empty, UIControlState.Normal); }
private void ShowInfo(string info) { SettingsInfoText.Enabled = false; SettingsInfoText.SetTitle(info, UIControlState.Normal); SettingsInfoText.Enabled = true; UIView.Animate(3.0f, 1, UIViewAnimationOptions.CurveLinear, () => { this.SettingsInfoText.SetTitleColor(UIColor.Black, UIControlState.Normal); this.SettingsInfoText.BackgroundColor = UIColor.Orange; this.SettingsInfoText.Layer.BorderColor = UIColor.Red.CGColor; }, () => { SettingsInfoText.Enabled = false; this.SettingsInfoText.SetTitleColor(UIColor.White, UIControlState.Normal); this.SettingsInfoText.BackgroundColor = UIColor.White; this.SettingsInfoText.Layer.BorderColor = UIColor.White.CGColor; SettingsInfoText.SetTitle(String.Empty, UIControlState.Normal); SettingsInfoText.Enabled = true; } ); }