7、,最后你就可以用这个定义好的注解修饰你的API了。接下来我们来使用IntDef来替换Enum看一下.1.public class MainActivity extends Activity { 2. public static final int SUNDAY = 0; 3. public static final int MONDAY = 1; 4. {...省略部分} 5. 1. @IntDef({SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,