public class ItineraryViewHolder extends AbstractItineraryViewHolder
| Constructor and Description |
|---|
ItineraryViewHolder(android.view.View itemView,
android.content.Context context)
The view holder's constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setImage(java.lang.String url)
Show the itinerary's image.
|
void |
setLanguages(java.util.Set<Language> languages)
Shows the itinerary languages.
|
void |
setPrice(float price)
Show the itinerary's price.
|
void |
showError(boolean show)
Show a "Not available in your languages" error into the itinerary if show is true.
|
setBeginningDate, setEndingDate, setItineraryTitle, setLocationformatDate, getContext, setOnClickListenerpublic ItineraryViewHolder(@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 setImage(java.lang.String url)
url - The image's url.public void setPrice(float price)
price - The price.public void setLanguages(java.util.Set<Language> languages)
languages - The languages.public void showError(boolean show)
show - If true it shows the error.