Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mastering Android Studio Template Creation

Mastering Android Studio Template Creation

Talk presented @ChicagoRoboto-2018

Chandrasekar Kuppusamy

April 12, 2018
Tweet

More Decks by Chandrasekar Kuppusamy

Other Decks in Programming

Transcript

  1. 00 WHY AM I HERE ? Implementation, application and creation

    of templates Improve developer’s productivity Video Demo
  2. Predefined code which are generated based on the user input

    data. What is a template ? By default, Android studio provides set of templates like Basic Activity, Bottom Navigation Activity, Empty Activity, etc. 1 2 Reference : https://developer.android.com/studio/projects/templates.html
  3. Getting Started? Go to Applications \ Android Studio \ Right

    click \ Show Package Contents \ Plugins \ android \ lib \ templates. C:\ Program Files \ Android \ Android Studio \ Plugins \ android \ lib \ templates
  4. What is FreeMarker (.ftl) ? 2 1 3 Apache FreeMarker

    is a template engine A Java library to generate source code based on templates and changing data Reference : https:// freemarker.apache.org/
  5. ` templates .xml GLOBALS .xml RECIPES .xml It transforms Freemarker

    code (.ftl) to java, kotlin or xml files. It holds all the gradle dependencies. It holds all the global contents like text, slashed package, directory path. 2 1 It is responsible for creation of UI elements like Textbox, Dropdown and checkbox components.