LoginSignup
58
61

More than 5 years have passed since last update.

Android開発で個人的に使ってるPlugin・テンプレート一覧

Last updated at Posted at 2017-08-09

はじめに

Android-Studioで個人的に便利だなぁーと思って入れてるプラグインやテンプレート一覧。
Kotlin開発前提
半分は自分用のメモ兼宣伝
また増えたら随時更新する予定

Plugin

Parcelable Code Generator(for kotlin)

そのまんまでParcelable Codeを1発で作ってくれるやつ
スクリーンショット 2017-08-09 10.49.08.png

使い方

Parcelableにしたいクラスの上でShow Intention Actionsを表示
スクリーンショット 2017-08-09 10.51.04.png

するとAdd Parcelable Implementationの項目があるので選択すればParcelableなコードが1発で作られる
スクリーンショット 2017-08-09 10.53.32.png

Save Action

保存時に色々してくれる子。主に自動フォーマット目的
スクリーンショット 2017-08-09 10.56.20.png

検索で出て来ないのでインストールは以下のページから行う
https://plugins.jetbrains.com/plugin/7642-save-actions

DLしてきてInstall plugin from disk...からインストールして再起動する
そうすると設定のOther settingsSave Actionが追加されてるのでここから色々設定できる。
スクリーンショット 2017-08-09 10.58.50.png

とはいうものの、デフォルト設定のまま(保存した時に自動フォーマット&imports整理)だけで十分な気もする

gradle-unused-resources-remover-plugin

@konifar さんが作ったプラグイン。Res以下から未使用なリソースをガッと消してくれるやつ。ありそうでなかった。
https://github.com/konifar/gradle-unused-resources-remover-plugin
gradle-unused-resources-remover-plugin

kotlin-fill-class

その名の通りクラスの要素を1発で入力してくれるやつ。
https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class
kotlin-fill-class

Template

CleanArchitectureTemplateForKotlin

自作のCleanArchitecture用のテンプレート
https://github.com/kiuchikeisuke/Android-Studio-CleanArchitecture-template-forKotlin

詳しい説明はこちら
Kotlin用のCleanArchitectureのテンプレート作ったよ!

体感で10分近くかかる作業が10秒で終わるようになった。

RecycleViewAdapterTemplateForKotlin

自作テンプレート第2弾
https://github.com/kiuchikeisuke/Useful-template-forKotlin

RecycleViewAdapterのテンプレートをパパッと作れる。
毎回忘れがちなinflator周りのコーディングを一切しなくてよくなるから楽。
スクリーンショット 2017-08-09 11.38.49.png

クリックイベント&Rippleエフェクトも自動で作ってくれるようにしてある。単純なものならこれだけでOK。

体感で5分かかる作業が10秒で終わるようになった。

58
61
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
58
61