Android Studio插件整理

xiaoxiao2021-02-28  107

现在Android的开发者基本上都使用Android Studio进行开发(如果你还在使用eclipse那也行,毕竟你乐意怎么样都行)。使用好Android Studio插件能大量的减少我们的工作量。

1.GsonFormat

快速将json字符串转换成一个Java Bean,免去我们根据json字符串手写对应Java Bean的过程。

使用方法:快捷键Alt+S也可以使用Alt+Insert选择GsonFormat

2.Android ButterKnife Zelezny

配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。

使用方法:Ctrl+Shift+B选择图上所示选项

3.Android Code Generator

根据布局文件快速生成对应的Activity,Fragment,Adapter,Menu。

4.Android Parcelable code generator

JavaBean序列化,快速实现Parcelable接口。

5.Android Methods Count

6.Lifecycle Sorter

可以根据Activity或者fragment的生命周期对其生命周期方法位置进行先后排序,快捷键Ctrl + alt + K

7.CodeGlance

在右边可以预览代码,实现快速定位

8.findBugs-IDEA

查找bug的插件,Android Studio也提供了代码审查的功能(Analyze-Inspect Code…)

9.ADB WIFI

使用wifi无线调试你的app,无需root权限

也可参考以下文章:

Android wifi无线调试App新玩法ADB WIFI

本文转自http://www.open-open.com/lib/view/open1480329318348.html

转载请注明原文地址: https://www.6miu.com/read-30309.html

最新回复(0)