I\'m trying out the Google\'s new Volley library and it\'s looking sharp and loads images quickly when I use this method setImageUrl
:
holder.ima
We used something like this:
imageView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
@Override
public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
// the layout of the logo view changes at least twice: When it is added
// to the parent and when the image has been loaded. We are only interested
// in the second case and to find that case, we do this if statement
if (imageView.getDrawable() != null) {
doSomethingCoolHere();
}
}
});
It's not necessarily the most beautiful piece of code but it works (tm)