Last active
May 26, 2020 18:18
-
-
Save dnnyg33/e7ef732d48abbf52573d5ee601cb885b to your computer and use it in GitHub Desktop.
A file template for creating an epoxy model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ${PACKAGE_NAME} | |
import android.view.View | |
import com.airbnb.epoxy.EpoxyHolder | |
import com.airbnb.epoxy.EpoxyModelWithHolder | |
class ${NAME} : EpoxyModelWithHolder<${NAME}.ViewHolder>() { | |
inner class ViewHolder : KotlinEpoxyHolder() { | |
val title: TextView by bind(R.id.title) | |
} | |
override fun getDefaultLayout(): Int = R.layout.layout_${NAME} | |
override fun createNewHolder(): ViewHolder = ViewHolder() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment