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

Two ImageViewTouches on a layout #78

Open
lauranz opened this issue Aug 27, 2015 · 1 comment
Open

Two ImageViewTouches on a layout #78

lauranz opened this issue Aug 27, 2015 · 1 comment

Comments

@lauranz
Copy link

lauranz commented Aug 27, 2015

I'm displaying two images on a layout side-by-side. This is fine for ImageViews, they appear right next to each other, but for ImageViewTouches the bottom most image appears off the screen, or quite a distance away from the other image. If I zoom in on the image that is appearing off screen it shows up from the bottom of the page.

A link to screenshots of the results if it helps - http://imgur.com/a/vjofW

I'm running Android 5.0, compiling with API level 21.

Layout file:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:weightSum="1.0" >

        <it.sephiroth.android.library.imagezoom.ImageViewTouch
            android:id="@+id/srcImgZoom"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="0.5"/>

        <it.sephiroth.android.library.imagezoom.ImageViewTouch
            android:id="@+id/resImgZoom"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="0.5"/>

    </LinearLayout>

</FrameLayout>
@msphn
Copy link

msphn commented Aug 28, 2015

I could confirm that even with one ViewZoom under certain circumstances.

# 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

2 participants