diff --git a/Android/doric/src/main/java/pub/doric/pullable/PullingListener.java b/Android/doric/src/main/java/pub/doric/pullable/PullingListener.java new file mode 100644 index 00000000..71df7b07 --- /dev/null +++ b/Android/doric/src/main/java/pub/doric/pullable/PullingListener.java @@ -0,0 +1,20 @@ +package pub.doric.pullable; + +/** + * @Description: pub.doric.pullable + * @Author: pengfei.zhou + * @CreateDate: 2019-11-25 + */ +public interface IPullable { + + void startAnimation(); + + void stopAnimation(); + + /** + * Set the amount of rotation to apply to the progress spinner. + * + * @param rotation Rotation is from [0..2] + */ + void setProgressRotation(float rotation); +} diff --git a/js-framework/src/ui/view.ts b/js-framework/src/ui/view.ts index baa1595f..70f942b0 100644 --- a/js-framework/src/ui/view.ts +++ b/js-framework/src/ui/view.ts @@ -316,6 +316,7 @@ export abstract class Superview extends View { toModel() { const subviews = [] for (let v of this.allSubviews()) { + v.superview = this if (v.isDirty()) { subviews.push(v.toModel()) } @@ -341,7 +342,6 @@ export abstract class Group extends Superview { } addChild(view: View) { - view.superview = this this.children.push(view) } }