Replaced images with icons
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user