Giter Site home page Giter Site logo

android-studio-templates's Introduction

Android Studio Templates

A set of Android studio package/activities/classes templates.Those templates are based on a system called FreeMarker. You can learn how to structure and format templates here: Android ADT Template Format Document.

What to do?

Installation

  • Copy templates you want to include in Android Studio from the package-templates folder.
  • Go to your Android Studio app, then Contents/plugins/android/lib/templates/other (Full path: /Applications/Android Studio.app/Contents/plugins/android/lib/templates/other).
  • Paste the templates in the 'other' folder
  • Restart Android Studio if it's running.

Note: Make sure to check the repo for updated templates. You have to remove and add the updated template again.

Note 2: Android Studio will remove the template on each update. You need to install it after each update.

Usage

  • Launch Android Studio
  • Right click -> New where you want to use the new template. Look for your new template and use it.
  • Complete the form with your information.
  • Hit finish and enjoy!

List of templates

  1. Dagger
    • Dagger setup (PerApp/PerActivity/Injector/HasComponent/AppComponent/AppModule)
    • Component
    • Component/Module
  2. MVVM
    • Activity package (Activity/ViewModel/View/Layout)
    • Fragment package (Fragment/ViewModel/View/Layout)
  3. MVP
    • Activity package (Activity/View/Presenter/Component/Module/Layout)
    • Fragment package (Fragment/Presenter/View/Layout)

Make sure to check sample to have an idea of the result for each template.

TODO

  • Automatically install templates using a Script.

Want to Contribute?

Submit your template ideas (issues or pull requests) and report any problems faced with current ones.

License

Android Studio Templates is Copyright (c) 2016 Prolific Interactive. It may be redistributed under the terms specified in the LICENSE file.

Maintainers

prolific

Android Studio Templates is maintained and funded by Prolific Interactive. The names and logos are trademarks of Prolific Interactive.

android-studio-templates's People

Contributors

quentin41500 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.