Android Studio 外掛程式

來源:互聯網
上載者:User

標籤:

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 外掛程式

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.