inner class FavViewHolder : ViewHolder, OnClickListener
Inner class to store the favourited gym data in
Author
Kenneth Soh
Since
2019-09-17
<init> |
Creates a view holder to hold the view required for RecyclerView FavViewHolder(v: View, listener: OnClickListener?) |
favCount |
TextView Number of users who favourited this gym var favCount: TextView |
gymObj |
GymShell? Gym object var gymObj: GymShell? |
rating |
AppCompatRatingBar Gym Rating var rating: AppCompatRatingBar |
ratingAvg |
TextView Average of the total ratings var ratingAvg: TextView |
ratingCount |
TextView Number of ratings var ratingCount: TextView |
title |
TextView Gym Title var title: TextView |
onClick |
Default onclick handler fun onClick(p0: View?): Unit |