开发过程中如何提高效率是一直值得学习和思考的问题,下面总结下目前能提高效率的方法。

Android Studio 快捷键

tips

这里是一个使用Android studio的小建议集合 >https://plus.google.com/u/0/collection/wtO0PB 大家可以在里边找到不少提高效率的点子。

个人Google+要关停了。。。记录一下

1)快速按两次 shift 键,调起搜索界面

如图

2)command+~ 快速切换Project

3)control+~ 快速切换主题、代码风格、keymap等

image

4)shift+f4 将文件单独放到一个窗口中

image

5)alt + F12 打开terminal

等等。。。

template

使用Live templates可以节省coding时间:使用缩写快速输入方法或者循环 eg: 输入 fbc 则快速速入了findViewById

template入门: Android Studio Live Templates

值得试用的live template 集合: github live templates

自定义template,这里是 Reto Meier写的一篇非常好的教程Writing More Code by Writing Less Code with Android Studio Live Templates,当然也可以从IntelliJ IDEA documentation获取更多细节

Debugging App时用到的工具

Stetho: 使用Stetho,可以非常方便地监控app,尤其是网络流量。还可以监测并编辑SQLite,和Shared Preferences。

LeakCanary: Android和java工程中可以的内存泄露监测工具

Gradle, Please: Chris broadFoot做的一个非常酷的一个library,只需要输入一个Library 的名字,就可以得到这个Library 的gradle依赖code,并且是该Library的最新版本,不要错过这个网站: image

Android Arsenal: 这是一个分类查看Android Library、工具、工程的网站,很赞!

Android Tool Mac 上的Android工具,可以进行录屏、截屏、安装apk,记录bug。

ADB Idea Android和Intellij IDEA中可用的插件,卸载App、killApp、启动App、重启App、清除App数据、清除App数据并重启。

Google Developers India , Android Developers 获取最新的Android信息

Android Dev weekly 订阅最新的Android资讯。

Plaid 提供了设计资讯和灵感,非常好的实践了material design。

参考

https://juejin.im/post/58c9e08bac502e005884bded