|
@@ -1,5 +1,9 @@
|
|
|
package com.benyanyi.viewbind.annotation;
|
|
|
|
|
|
+import android.view.View;
|
|
|
+
|
|
|
+import androidx.annotation.IdRes;
|
|
|
+
|
|
|
import java.lang.annotation.ElementType;
|
|
|
import java.lang.annotation.Retention;
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
@@ -29,7 +33,8 @@ import java.lang.annotation.Target;
|
|
|
@Target(ElementType.METHOD)
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
public @interface OnClick {
|
|
|
- int[] value();
|
|
|
+
|
|
|
+ @IdRes int[] value() default {View.NO_ID};
|
|
|
|
|
|
boolean isCheckNet() default false;
|
|
|
|