Vehicle List Adapter
class VehicleListAdapter(context: Context) : RecyclerView.Adapter<VehicleListAdapter.VehicleViewHolder>
Content copied to clipboard
VehicleListAdapter is a Adapter class which is used to manage the list of vehicle. It is used to manage each item of the vehicle list and perform required operations such as OnItemClick.
Created at : December 25, 2021
Author
Darshan Bhanushali
See also
Constructors
Types
Link copied to clipboard
data class VehicleViewHolder(binding: <ERROR CLASS>) : RecyclerView.ViewHolder
Content copied to clipboard
It is Data class which is useful to bind UI for each vehicle item
Functions
Link copied to clipboard
Returns count of items in vehicle list.
Link copied to clipboard
open override fun onBindViewHolder(vehicleViewHolder: VehicleListAdapter.VehicleViewHolder, position: Int)
Content copied to clipboard
It is used to manage the data in each item of vehicle list.
Link copied to clipboard
open override fun onCreateViewHolder(p0: ViewGroup, p1: Int): VehicleListAdapter.VehicleViewHolder
Content copied to clipboard
Initial part of Adapter class whenever view is created
Link copied to clipboard
It is used to set the vehicle list.