android.support.v7.app.AppCompatActivity <#else> import ${superClassFqcn} </#if> import kotlinx.android.synthetic.main.${layoutName}.* class ${activityClass} : ${superClass}() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.${layoutName}) <#if hasAppBar> setSupportActionBar(toolbar) fab.setOnClickListener { view -> Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG).setAction("Action", null).show() } </#if>