Creating a custom template in Android Studio
I am trying to add a custom template to Android Studio. I am using Ubuntu 14.04 and Android Studio 1.2.1.1.
As mentioned here , I add the template directory to the action path, but the custom template does not appear in the template list.
Tried restarting Android Studio with no success either.
Can anyone help me?
This is my first time doing this, so you need help.
+3
source to share
1 answer
I had the same problem with Linux Mint 17, Android Studio 2.2 beta. After some testing, I found out that the name in template.xml
must be unique from the rest of the action patterns. So if you copy the EmptyActivity folder open template.xml
and change the name:
<?xml version="1.0"?>
<template
name="Unique Name"
0
source to share