- 使用@ViewById注入View
- 使用@XXXRes注入资源
- 使用@SystemService注入系统资源
- @HtmlRes相当于Html.fromHtml(string),使用@FromHtml对TextView填充Html文本。
- @Extra与@FragmentArg
- 如果配置改变时需要保留某资源,标注@NonConfigurationInstance
- @Https
- 如果需要修改Intent,重写onNewIntent方法,因为AA重写了setIntent。
注入 -- AndroidAnnotations学习笔记二
最新推荐文章于 2024-07-13 23:11:02 发布