public class UserViewHolder extends AbstractViewHolder
| Constructor and Description |
|---|
UserViewHolder(android.view.View itemView,
android.content.Context context)
The view holder's constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setImageResource(int resource)
Show an image.
|
void |
setRating(float rating)
Show the user's rating.
|
void |
setUsername(java.lang.String username)
Show the user's username.
|
void |
setUserType(UserType userType)
Show the user's type,
|
formatDate, getContext, setOnClickListenerpublic UserViewHolder(@NonNull
android.view.View itemView,
@NonNull
android.content.Context context)
itemView - The view holder's view.context - The view holder's context.AbstractViewHolder.AbstractViewHolder(View, Context)public void setUsername(java.lang.String username)
username - The user's username.public void setUserType(@NonNull
UserType userType)
userType - The user's type.public void setImageResource(int resource)
resource - The image resource.public void setRating(float rating)
rating - The rating.