feat:add Pullable and view's setRotation function

This commit is contained in:
pengfei.zhou
2019-11-26 13:33:03 +08:00
parent 208c635b8b
commit 3dfa6c9770
5 changed files with 57 additions and 8 deletions

View File

@@ -269,4 +269,9 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
}
doricLayer.setRotation(rotation * 360);
}
@DoricMethod
public float getRotation() {
return doricLayer.getRotation() / 360;
}
}

View File

@@ -81,6 +81,8 @@ public class DoricUtils {
return new JavaValue((Integer) arg);
} else if (arg instanceof Long) {
return new JavaValue((Long) arg);
} else if (arg instanceof Float) {
return new JavaValue((Float) arg);
} else if (arg instanceof Double) {
return new JavaValue((Double) arg);
} else if (arg instanceof Boolean) {