主要介紹和 Android 開發工具和測試工具相關的開源項目。
開發效率工具
-
Parceler
通過注解及工具類自動完成實體類 Parcelable 及值傳遞
項目位址:https://github.com/johncarl81/parceler
-
Json2Java
根據 JSon 資料自動生成對應的 Java 實體類,還支援 Parcel、Gson Annotations 對應代碼自動生成。期待後續的提取父類以及多 url 建構整個工程的功能
項目位址:https://github.com/jonfhancock/JsonToJava
線上示範:http://jsontojava.appspot.com/
-
IntelliJ Plugin for Android Parcelable boilerplate code generation
Android studio 插件,生成 Parcelable 代碼
項目位址:https://github.com/mcharmas/android-parcelable-intellij-plugin
效果圖:
-
Android Holo Colors IntelliJ Plugin
Android studio 插件,生成 holo 樣式 9 patch 圖檔
項目位址:https://github.com/jeromevdl/android-holo-colors-idea-plugin
效果圖:
-
Android Drawable Factory
用于生成各個分辨率的圖檔
項目位址:https://github.com/tizionario/AndroidDrawableFactory
效果圖:
-
SelectorChapek for Android
Android Studio 插件,可根據固定檔案名格式資源自動生成 drawable selectors xml 檔案。
項目位址:https://github.com/inmite/android-selector-chapek
-
Android Action Bar Style Generator
Android ActionBar 樣式生成器,可線上選擇 ActionBar 樣式自動生成所需要的圖檔資源及 xml 檔案
項目位址:https://github.com/jgilfelt/android-actionbarstylegenerator
線上示範:http://jgilfelt.github.io/android-actionbarstylegenerator/
-
ButterKnifeZelezny
用于快速生成ButterKnifeView 注入代碼的 Android Studio/IDEA 插件
項目位址:https://github.com/inmite/android-butterknife-zelezny
-
RoboCoP
利用 Gradle task 根據固定格式的 json 檔案生成 ContentProvider
項目位址:https://github.com/mediarain/RoboCoP
-
appiconsizes
用于生成各個分辨率的圖檔
項目位址:http://www.appiconsizes.com/
-
Gradle Retrolambda Plugin
Retrolambda是将 Java8 的 Lambdas 應用于 Java7 的工具,本項目是 Gradle 插件,通過 Retrolambda 進而使 Java 或 Android 項目用 Java8 的 Lambdas 編寫,将編譯後的位元組碼轉換為 Java6 和 7 的位元組碼進而正常運作
項目位址:https://github.com/evant/gradle-retrolambda
-
Dagger IntelliJ Plugin
dagger 的 intellij 插件
項目位址:https://github.com/square/dagger-intellij-plugin
-
Android Gen Drawable Maven plugin
在編譯時根據 SVG 描述檔案生成不同分辨率的 jpg、png 或點 9 圖檔
項目位址:https://github.com/avianey/androidgendrawable-maven-plugin
-
Android Asset Studio
各種 Android 資源自動生成器,包括啟動圖示、ActionBar 圖示、通知欄圖示、點 9 等
項目位址:https://github.com/romannurik/AndroidAssetStudio
線上示範:http://romannurik.github.io/AndroidAssetStudio/
-
jsonschema2pojo
根據 Json 内容生成 java 對象,支援 jackjson 和 gson
項目位址:https://github.com/joelittlejohn/jsonschema2pojo
線上示範:http://www.jsonschema2pojo.org/
-
GsonFormat
根據 JSONObject 格式的字元串,自動生成實體類參數的 Android Studio/IntelliJ IDEA 插件
項目位址:https://github.com/zzz40500/GsonFormat
效果圖:
-
9-Patch-Resizer
自動生成 png 及點 9 圖檔的不同分辨率版本
項目位址:https://github.com/redwarp/9-Patch-Resizer
-
AndroidLocalizationer
可用于将項目中的 string 資源自動翻譯為其他語言的 Android Studio/IntelliJ IDEA 插件
項目位址:https://github.com/westlinkin/AndroidLocalizationer
-
Material Palette
一個将現有的色彩方案組合成材料設計的調色闆方案,提供下載下傳。選取兩個主要色彩後便可以提供下載下傳,提供下載下傳的格式可以是 android 的資源 xml 檔案,以色彩的方式提供,也可以是 CSS、SVG、PNG 等常見格式檔案。
項目位址:http://www.materialpalette.com/