63. template.xml – This will contain information about the template (Name,
minSdkVersion, etc)
recipe.xml.ftl – This will contain instructions explaining how to create the
template, including what variables to ask the user for and what should be
done with those variables.
globals.xml.ftl – This defines global variables
src (root/src or root/res) folder – this will contain the template code.
Structure
68. - Learn different params types
→ boolean
→ list
→ etc
- Reuse existing recipes - add dependencies or strings
- Create your own file groups
What’s next?
69. - You have to re-import custom templates after Android Studio update
- Documentation is the source code
- No easy way to debug
Known Issues
70. → Learn shortcuts to maximize your performance
→ Experiment and debug your gradle build speed
→ Use smart debug tools for better debugging
→ Create custom file templates to automate boilerplate code
Quick Recap
71. Android Studio Shortcuts → https://developer.android.com/studio/intro/keyboard-shortcuts
Android Studio for Experts → https://www.youtube.com/watch?v=Y2GC6P5hPeA
Mouseless Driven Development→ https://vimeo.com/98922030
File templates → https://riggaroo.dev/custom-file-templates-android-studio/
File group templates
→ https://medium.com/codequest/file-group-templates-in-android-studio-unofficial-guide-85dfa0a0c1ec
→ https://medium.com/gits-apps-insight/tutorial-create-your-own-template-for-android-studio-1aaa9b4cb18
Reuse gradle daemon → https://medium.com/@mydogtom/tip-how-to-reuse-gradle-daemon-between-
android-studio-and-terminal-df5232d63f38
Resources