app / sg.edu.ntu.scse.cz2006.gymbuddies.adapter / FavGymAdapter / FavViewHolder

FavViewHolder

inner class FavViewHolder : ViewHolder, OnClickListener

Inner class to store the favourited gym data in

Author
Kenneth Soh

Since
2019-09-17

Constructors

<init>

Creates a view holder to hold the view required for RecyclerView

FavViewHolder(v: View, listener: OnClickListener?)

Properties

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

Functions

onClick

Default onclick handler

fun onClick(p0: View?): Unit