在使用 Butter Knife 注入 NavigationView 内部元素的时候发生了 NPE 问题,搜索相关问题的解答终于明白了具体的原因和问题解决办法。 实际上,在 23.1.0 版本之后 NavigationView 的实现使用了 RecyclerView 代替 L
今年 3 月 21 号 Dagger 2 在 2.10 版本之后针对 Android 方面做了很大的优化,使用方法也随之有了不少变化。本次改动除了让 Dagger 2 的使用更加符合控制反转原则,还针对 Android 端做
本文要讨论的是一般 Android 项目中常用的 Android Studio 插件和开源库,目的是尽量节省编码时间,专注核心功能开发。 插件代码生成: Android ButterKnife Zelezny:生成 ButterKnife 需要的代
本篇文章内容集中讨论项目规范、文件结构组织等宏观内容,目的是尽可能地以最少的努力去实现结构清晰的项目结构。 项目规范在公司写项目时编码规范要跟
上一篇文章讲了项目管理工具和需求分析,本篇文章则简单讲解 Android 项目中如何快速进行界面设计。 一般来说,要在这个阶段细化原型设计中的产品界面细节,对