feat:add Pullable and view's setRotation function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user