Replaced images with icons

This commit is contained in:
RemoMeijer
2021-01-06 20:51:16 +01:00
parent 23beac0cf0
commit bbdf9a7d29
15 changed files with 94 additions and 45 deletions

View File

@@ -23,6 +23,7 @@ public class Location implements Parcelable {
@Nullable
private String imageUrl;
private String iconUrl;
public Location(@NotNull String name, String coordinates, String description, @Nullable String imageUrl) {
this.name = name;
@@ -88,6 +89,10 @@ public class Location implements Parcelable {
return imageUrl;
}
public String getIconUrl(){
return iconUrl;
}
public void setImageUrl(@Nullable String imageUrl) {
this.imageUrl = imageUrl;
}

View File

@@ -80,7 +80,7 @@ public class LocationAdapter extends RecyclerView.Adapter<LocationAdapter.Locati
public void onBindViewHolder(@NonNull LocationAdapter.LocationViewHolder holder, int position) {
Location location = locationList.get(position);
holder.setTextViewText(location.getName());
holder.setImageViewImage(location.getImageUrl());
holder.setImageViewImage(location.getIconUrl());
}
@Override