I tried to use :constructor-args with a View class that has a constructor with two arguments, the second beeing a primitive int.
[:my-view {:constructor-args [256]}
results in following error
java.lang.NoSuchMethodException: <init> [class android.content.Context, class java.lang.Long]
[:my-view {:constructor-args [(int 256)]}
results in following error
java.lang.NoSuchMethodException: <init> [class android.content.Context, class java.lang.Integer]
I believe the only way to support this case, is to add some kind of special syntax or metadata to :constructor-args.
I tried to use
:constructor-args
with a View class that has a constructor with two arguments, the second beeing a primitive int.[:my-view {:constructor-args [256]}
results in following errorjava.lang.NoSuchMethodException: <init> [class android.content.Context, class java.lang.Long]
[:my-view {:constructor-args [(int 256)]}
results in following errorjava.lang.NoSuchMethodException: <init> [class android.content.Context, class java.lang.Integer]
I believe the only way to support this case, is to add some kind of special syntax or metadata to
:constructor-args
.