Skip to content

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

@Muddz

Description

@Muddz

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions