Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Templates for use within Android Studio or IntelliJ

License

Notifications You must be signed in to change notification settings

lordcodes/android-studio-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Android Studio Templates 🗺

License @lordcodes Lord Codes Blog

A selection of templates for use within Android Studio (or IntelliJ), focusing on Kotlin and Android.

Installation

Copy individual template

  1. In Android Studio go to Preferences -> Editor -> File and Code Templates
  2. Select desired scheme:
  3. Default (global template)
  4. Project (current open project - can be shared via Git)
  5. Open File tab
  6. Click '+'
  7. Enter name and extension (likely kt)
  8. Copy template contents from this repository
  9. Paste template contents into Android Studio
  10. Click 'Apply' or 'OK'
  11. Enjoy. 🚀

Bulk install for project

  1. Clone the repository, or download a copy of latest master branch commit.
  2. Copy the contents of fileTemplates
  3. Place into PROJECT_DIR/.idea/fileTemplates/
  4. Enjoy. 🚀

File Templates

An abstract module for Dagger that can use @Binds and Dagger Android @ContributesAndroidInjector.

An object module for Dagger to provide regular (non-component dependencies).

Create a basic Kotlin data class really quickly.

Contributing

If you notice any typing mistakes or errors in the templates, then please feel free to let me know with a PR.

Releases

No releases published

Packages

No packages published

Languages