Skip to content

Instantly share code, notes, and snippets.

@DjakaTechnology
Created March 3, 2019 15:29
Show Gist options
  • Save DjakaTechnology/d0b5564092f5f4a0171504cf55d88aad to your computer and use it in GitHub Desktop.
Save DjakaTechnology/d0b5564092f5f4a0171504cf55d88aad to your computer and use it in GitHub Desktop.
Default Adapter
class VPMainAdapter : RecyclerView.Adapter<VPMainAdapter.MyViewHolder>() {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MyViewHolder {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun getItemCount(): Int {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun onBindViewHolder(holder: MyViewHolder, position: Int) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
class MyViewHolder(itemView: View): RecyclerView.ViewHolder(itemView)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment