If use ClickableAreasImages' library with DrawerLayout you can run into an error which prevents you to zoom out the image. This is caused by the old PhotoView version used in this library (1.2.0).
Crashing code:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageTable"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/tavola_periodica" />
</android.support.v4.widget.DrawerLayout>
Fix:
Change
compile 'com.github.chrisbanes:PhotoView:1.2.0'
to:
compile 'com.github.chrisbanes:PhotoView:1.3.0'
inside build.gradle and add
@Override public void onOutsidePhotoTap() { }
to ClickableAreasImage.java
If use ClickableAreasImages' library with DrawerLayout you can run into an error which prevents you to zoom out the image. This is caused by the old PhotoView version used in this library (1.2.0).
Crashing code:
Fix:
Change
compile 'com.github.chrisbanes:PhotoView:1.2.0'to:
compile 'com.github.chrisbanes:PhotoView:1.3.0'inside build.gradle and add
@Override public void onOutsidePhotoTap() { }to ClickableAreasImage.java