class NotesAdapter : Adapter<NotesHolder>
RecyclerView adapter for notes
notes
- Notes that should be added into view
activity
- Activity where RecyclerView exists
NotesHolder |
RecyclerView holder for notes's cards class NotesHolder : ViewHolder |
<init> |
RecyclerView adapter for notes NotesAdapter(notes: Array<Note>, activity: Activity) |
getItemCount |
fun getItemCount(): Int |
onBindViewHolder |
Adds data into cards based on given note's position fun onBindViewHolder(holder: NotesHolder, position: Int): Unit |
onCreateViewHolder |
fun onCreateViewHolder(parent: ViewGroup, viewType: Int): NotesHolder |