UsersListAdapter.ViewHolder

class ViewHolder extends RecyclerView.ViewHolder

Holder of UI elements that compose each element of the displayed list

Fields

fullName

TextView fullName

User’s name

profilePicture

ImageView profilePicture

User’s profile picture

Constructors

ViewHolder

ViewHolder(View v)

Initialize instance fields with fields in v and set the listener for clicks to open a more detailed view of the profile in ViewProfileActivity

Parameters:
  • vView to use to display the list item