Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

When attempting to zoom/pan my images becames small and non-movable (VIDEO) #95

Open
Muddz opened this issue May 15, 2017 · 0 comments
Open

Comments

@Muddz
Copy link

Muddz commented May 15, 2017

I have a funny problem with this ImageView when I either zoom or pan on it. I load an image from my gallery via an Intent and loads in into the ImageView . See the problem here: https://www.youtube.com/watch?v=LDeYnVvIa-w

My xml:

    <it.sephiroth.android.library.imagezoom.ImageViewTouch
        android:id="@+id/imageView1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginRight="0.5dp"
        android:layout_weight="1"
        android:background="#747474" />


    <it.sephiroth.android.library.imagezoom.ImageViewTouch
        android:id="@+id/imageView2"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:background="#747474" />
</LinearLayout>

My code:

    imageView1.setDisplayType(ImageViewTouchBase.DisplayType.FIT_TO_SCREEN);
    imageView1.setImageURI(data.getData());
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant