跳跃香菇

文章
5
资源
0
加入时间
3年1月13天

常用注解@Intdef与@Stringdef

1.优点  可以代替枚举,静态常量,可以让注解只在代码中存在,编译后就删除,可以省内存。2.@IntDef2.1 官网  https://developer.android.com/reference/kotlin/androidx/annotation/IntDef.html2.2 java示例 1 //1.指定注解的保留策略,RetentionP...