sephiroth74 / ImageViewZoom

Android ImageView widget with zoom and pan capabilities
Other
1.9k stars 532 forks source link

Usage with viewpager #1

Open phimi opened 12 years ago

phimi commented 12 years ago

I use your lib and a viewpager and async loading of bitmaps from Web like in this article (http://developer.android.com/training/displaying-bitmaps/display-bitmap.html) from Google dev Page. The problem is that images are not displayed. Are there any ideas? Thanks

httpdispatch commented 11 years ago

Found same issue. Solved it by modifying ImageViewTouchBase

Drawable drawable;

    public void setImageDrawable(final Drawable drawable, final boolean reset,
            final Matrix initial_matrix, final float maxZoom)
    {

        this.drawable = drawable;
        final int viewWidth = getWidth();
@Override
    public Drawable getDrawable()
    {
        return drawable;
    }