Android Studio 插件整理

 

 

 

尊重原創java

 

1.GsonFormat

快速將json字符串轉換成一個Java Bean,免去咱們根據json字符串手寫對應Java Bean的過程。android

使用方法:快捷鍵Alt+S也可使用Alt+Insert選擇GsonFormatgit

更多資料請看http://www.cnblogs.com/dubo-/github

2.Android ButterKnife Zelezny

配合ButterKnife實現註解,今後不用寫findViewById,想着就爽啊。在Activity,Fragment,Adapter中選中佈局xml的資源id自動生成butterknife註解。json

使用方法:Ctrl+Shift+B選擇圖上所示選項.更多資料請看http://www.cnblogs.com/dubo-/segmentfault

3.Android Code Generator

根據佈局文件快速生成對應的Activity,Fragment,Adapter,Menu。markdown


4.Android Parcelable code generator

JavaBean序列化,快速實現Parcelable接口。app

5.Android Methods Count

顯示依賴庫中得方法數maven

6.Lifecycle Sorter

能夠根據Activity或者fragment的生命週期對其生命週期方法位置進行前後排序,快捷鍵Ctrl + alt + Kide


7.CodeGlance

在右邊能夠預覽代碼,實現快速定位


8.findBugs-IDEA

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

9.ADB WIFI

使用wifi無線調試你的app,無需root權限
也可參考如下文章:
Android wifi無線調試App新玩法ADB WIFI

10.AndroidPixelDimenGenerator

Android Studio自動生成dimen.xml文件插件

11.JsonOnlineViewer

在Android Studio中請求、調試接口

12.Android Styler

根據xml自動生成style代碼的插件



Usage:

a. copy lines with future style from your layout.xml file
b. paste it to styles.xml file with Ctrl+Shift+D (or context menu)
c. enter name of new style in the modal window
d. your style is prepared!

13.Android Drawable Importer

這是一個很是強大的圖片導入插件。它導入Android圖標與Material圖標的Drawable ,批量導入Drawable ,多源導入Drawable(即導入某張圖片各類dpi對應的圖片)








14.SelectorChapek for Android

經過資源文件命名自動生成Selector文件。



15.GenerateSerialVersionUID

實現Serializable序列化bean

Adds a new action ‘SerialVersionUID’ in the generate menu (alt + ins). The action adds an serialVersionUID field in the current class or updates it if it already exists, and assigns it the same value the standard ‘serialver’ JDK tool would return. The action is only visible when IDEA is not rebuilding its indexes, the class is serializable and either no serialVersionUID field exists or its value is different from the one the ‘serialver’ tool would return.

16.genymotion

速度較快的android模擬器

17.LeakCanary

幫助你在開發階段方便的檢測出內存泄露的問題,使用起來更簡單方便。
能夠參考如下文章:
LeakCanary 中文使用說明

更多資料請看http://www.cnblogs.com/dubo-/

18.Android Postfix Completion

可根據後綴快速完成代碼,這個屬於拓展吧,系統已經有這些功能,如sout、notnull等,這個插件在原有的基礎上增添了一些新的功能,我更想作的是經過原做者的代碼本身定製功能,那就更爽了

19.Android Holo Colors Generator

經過自定義Holo主題顏色生成對應的Drawable和佈局文件

20.dagger-intellij-plugin

dagger可視化輔助工具

21.GradleDependenciesHelperPlugin

maven gradle 依賴支持自動補全

ButterKnife這個第三方庫每次更新以後,綁定view的註解都會改變,從bind,到inject,再到bindview,搞得不少人都不敢升級,一旦升級,就會有巨量的代碼須要手動修改,很是痛苦
當咱們有一些很是棒的代碼須要拿到其餘項目使用,可是咱們發現,那個項目對第三方庫的使用是有限制的,咱們不能使用butterknife,這時候,咱們又得從註解改回findviewbyid
針對上面的兩種狀況,若是view比較少還好說,若是有幾十個view,那麼咱們一個個的手動刪除註解,寫findviewbyid語句,簡直是一場噩夢(別問我爲何知道這是噩夢)
因此,這種有規律又重複簡單的工做爲何不能用一個插件來實現呢?因而RemoveButterKnife的想法就出現了。

具體介紹

23.AndroidProguardPlugin

一鍵生成項目混淆代碼插件,值得你安裝~(不過目前可能有些第三方項目的混淆還未添加徹底)

24.otto-intellij-plugin

otto事件導航工具。


25.eventbus-intellij-plugin

eventbus導航插件

26.idea-markdown

markdown插件

27.Sexy Editor

設置AS代碼編輯區的背景圖

首先點擊界面的設置按鈕 進入設置界面,選中Plugins,右邊選擇 Browser … ,輸入Sexy … 下面自動彈出候選插件,右邊點擊Install 安裝

安裝成功 後須要重啓AS

重啓完成以後 進入設置界面 選擇other Setting 下的Sexy Editor , 右側 insert 一張或多張圖片便可,上面的其餘設置能夠設置方位 間隔時間 透明度等等,設置完成後,要關閉打開的文件,從新打開項目文件便可在代碼編輯區顯示插入的圖片,做爲代碼編輯區的背景圖。

28.folding-plugin

佈局文件分組的插件

29.Android-DPI-Calculator

DPI計算插件

使用:

或者

30.gradle-retrolambda

在java 6 7中使用 lambda表達式插件

修改編譯的jdk爲java8:

更多資料請看http://www.cnblogs.com/dubo-/

相關文章
相關標籤/搜索