標籤:
1、ButterKnife Zelezny
ButterKnife 註解產生器,使用起來非常簡單方便,使用ButterKnife的有福了!
compile ‘com.jakewharton:butterknife:7.0.1‘
2、SelectorChapek
設計師給我們提供好了各種資源,每個按鈕都要寫一個selector是不是很麻煩?這麼這個外掛程式就為解決這個問題而生,你只需要做的是告訴設計師們按照規範命名就好了,其他一鍵搞定。按照不同狀態(normal、pressed)的標準命名後,右鍵檔案樹Generate Android Selectors見inmite/android-selector-chapek · GitHub。
Mapping
File name suffixDrawable state
_normal(default state)
_pressedstate_pressed
_focusedstate_focused
_disabledstate_enabled (false)
_checkedstate_checked
_selectedstate_selected
_hoveredstate_hovered
_checkablestate_checkable
_activatedstate_activated
_windowfocusedstate_window_focused
3、GsonFormat
現在大多數服務端api都以json資料格式返回,而用戶端需要根據api介面產生相應的實體類,這個外掛程式把這個過程自動化了,趕緊使用起來吧。
4、Android Parcelable Code Generator
Android中的序列化有兩種方式,分別是實現Serializable介面和Parcelable介面,但在Android中是推薦使用Parcelable,只不過我們這種方式要比Serializable方式要繁瑣,那麼有了這個外掛程式一切就ok了。
5、LeakCanary -- 非外掛程式
強烈推薦,協助你在開發階段方便的檢測出記憶體泄露的問題,使用起來更簡單方便。
英文不好的這裡有雷鋒同志翻譯的中文版LeakCanary 中文使用說明
6.Android Postfix Completion
可根據尾碼快速完成代碼
.toast Create and show Toast Toast.makeText(context, expr, Toast.LENGTH_SHORT).show();
.log Log Log.d("log", expr);
.logd If BuildConfig.DEBUG is true, Log message. Log.d("log", expr);
.find Typed FindView (ViewType) findViewById(expr);
.isemp isEmpty TextUtils.isEmpty(expr);
.vg ? View.VISIBLE : View.GONE; (expr) ? View.VISIBLE : View.GONE
7.Lifecycle Sorter
可以根據Activity或者fragment的生命週期對其生命週期方法位置進行先後排序,快速鍵Ctrl + alt + K
8.CodeGlance
可用於快速定位代碼,看到許多編輯器都有這功能,就到想到android Studio找了下,還真找到了
Android Studio 外掛程式