app / sg.edu.ntu.scse.cz2006.gymbuddies.adapter / CarparkAdapter / CarparkViewHolder

CarparkViewHolder

inner class CarparkViewHolder : ViewHolder, OnClickListener

Inner class to store the carpark in

Author
Kenneth Soh

Since
2019-09-17

Constructors

<init>

Creates a view holder to hold the view required for RecyclerView

CarparkViewHolder(v: View, listener: OnClickListener?)

Properties

cpObj

CarPark? Carpark Object

var cpObj: CarPark?

description

TextView Carpark ID/Distance

var description: TextView

distance

Float Distance from gym

var distance: Float

lots

var lots: TextView

lotsPic

var lotsPic: ImageView

title

TextView Carpark Address

var title: TextView

Functions

onClick

Default onclick handler

fun onClick(p0: View?): Unit