<parameter
id=“activityClass”
name=“Activity Name”
type=“string”
constraints=“class|unique|nonempty”
default=“WelcomeActivity”
help=“The name of the activity class to create” />
<parameter
id=“layoutName”
name=“Layout Name”
type=“string”
constraints=“layout|unique|nonempty”
suggest="${activityToLayout(activityClass)}"
default=“activity_welcome”
help=“The name of the layout to create for the activity” />
<parameter
id=“parentActivityClass”
name=“Hierarchical Parent”
type=“string”
constraints=“activity|exists|empty”
default=""
help=“The hierarchical parent activity, used to provide a default implementation for the ‘Up’ button” />
<parameter
id=“packageName”
name=“Package name”
type=“string”
constraints=“package”
default=“com.mycompany.myapp” />
template_welcome_activity.png
这里的配置和名称都是由template中进行配置的
thumb表示as显示的图片
注意:<parameter
id=“parentActivityClass”
name=“Hierarchical Parent”
type=“string”
constraints=“activity|exists|empty”
default=""
help=“The hierarchical parent activity, used to provide a default implementation for the ‘Up’ button” />
不能删除,否则as创建时会出错,其他的配置这里已经删除,
如果需要,可以去LoginActivity中copy
id :唯一标识,最终会通过它获取字符串 是否选中等等
name:界面上的左边的提示语
type : 输入值类型 可以是string int boolean 等等
constraints:填写值的约束 如文件名不能重复等等
suggest:建议值,比如填写ActivityName的时候,会给出一个布局文件的建议值。
default:默认值
help:显示的帮助提升语
2、globals.xml.ftl
一般不用动
3、recipe.xml.ftl
<?xml version="1.0"?><#if appCompat && !(hasDependency(‘com.android.support:a