Hello, I spent a few hours stuck in this problem, My image only appears in the second click, in the searches that I did, I know that, getInfoWindow transforms my layout into an image, so the image loads asynchronously, so on my first click it has not yet been rendered. With that in mind I tried to create a link for when the image loads view
Here is the image upload in getInfoWindown
Glide.with(MapsActivity.this).load(profile).listener(new MarkerCallback(marker))
.into(profile);
And here's my link;
public class MarkerCallback implements RequestListener {
Marker marker=null;
MarkerCallback(Marker marker) {
this.marker=marker;
}
@Override
public boolean onLoadFailed(@Nullable GlideException e, Object model, Target target, boolean isFirstResource) {
Log.e("testete", "Error loading thumbnail!");
return false;
}
@Override
public boolean onResourceReady(Object resource, Object model, Target target, DataSource dataSource, boolean isFirstResource) {
Log.e("testete", "Error loading thumbnail001!");
if (marker != null && marker.isInfoWindowShown()) {
Log.e("testete", "Error loading thumbnail!000");
marker.hideInfoWindow();
marker.showInfoWindow();
}
return false;
}
I thought that would be enough, however nothing happens does not load no more in the second click, Lenbrando that need the solution in Glide and use the latest version 4.71 see .