Open cbedoy opened 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:
Result without Paddings:
Why ignored the other margins?
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">
Result with Paddings:
Result without Paddings:
Why ignored the other margins?