onBindViewHolder
Called to set and update the click listener for viewHolder's item view.
If the onClickEventListener is set and the viewData is an AppInfoViewData, this method sets an View.OnClickListener on the viewHolder root view. When clicked:
If AppData is found: a. It invokes AppPickerEvent.OnItemClickEventListener.onClick with the view and the AppInfo. b. If the listener handles the click (returns
true
), no further action is taken. c. Otherwise, if the viewHolder is an AppListItemViewHolder and itsdoAction()
method returnstrue
, or if there's no onClickEventListener, the click listener on the view is removed.
Parameters
The PickerViewHolder which should be updated to represent the contents of the item at the given position in the data set.
The ViewData object containing the data for the item at the specified position.