sephiroth74 / ImageViewZoom

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

Padding problem #93

Open cbedoy opened 7 years ago

cbedoy commented 7 years ago

If you have a layout that contains paddings on ImageTouch'sLibrary, the view just put left margins, but ignore the other one

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

<it.sephiroth.android.library.imagezoom.ImageViewTouch
    android:padding="32dp"
    android:adjustViewBounds="true"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/image_viewer_item_icon" />

Result with Paddings: device-2016-11-27-004812

Result without Paddings: device-2016-11-27-004917

Why ignored the other margins?