| | |
| | | ~View() |
| | | { |
| | | #if DEBUG |
| | | System.Console.WriteLine("=====" + GetType() + " " + Name); |
| | | Shared.HDLUtils.WriteLine("=====" + GetType() + " " + Name); |
| | | #endif |
| | | if (this is ViewGroup) |
| | | { |
| | |
| | | Parent.Remove(this); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 动画效果 速度 |
| | | /// 2020-06-15 |
| | | /// </summary> |
| | | public float AnimateSpeed = 0.6f; |
| | | |
| | | Animate animate = Animate.None; |
| | | /// <summary> |
| | |
| | | case Animate.DownToUp: |
| | | frame.Y += RealView.Frame.Height; |
| | | RealView.Frame = frame; |
| | | UIView.AnimateNotify(0.2f, 0.001f, UIViewAnimationOptions.CurveLinear, () => |
| | | UIView.AnimateNotify(AnimateSpeed, 0.001f, UIViewAnimationOptions.CurveLinear, () => |
| | | { |
| | | RealView.Frame = frameBefore; |
| | | }, null); |
| | |
| | | case Animate.UpToDown: |
| | | frame.Y -= RealView.Frame.Height; |
| | | RealView.Frame = frame; |
| | | UIView.AnimateNotify(0.2f, 0.001f, UIViewAnimationOptions.CurveLinear, () => |
| | | UIView.AnimateNotify(AnimateSpeed, 0.001f, UIViewAnimationOptions.CurveLinear, () => |
| | | { |
| | | RealView.Frame = frameBefore; |
| | | }, null); |