diff options
author | Neil Seligmann <git@neilseligmann.com> | 2022-01-06 22:54:53 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2022-01-10 11:49:14 +0300 |
commit | a38c176c77245c1de108e300bceba331c95d2a0e (patch) | |
tree | 2ee694230b33495af1d992c377b9e01f8818f4db /app/src/main/res/layout | |
parent | 1dcabdb46ca28ff8b5a6035ecbcf3f4882c63c99 (diff) |
feat: better attachment ImageView
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/item_attachment.xml | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/app/src/main/res/layout/item_attachment.xml b/app/src/main/res/layout/item_attachment.xml index 08a31cf7d..9542bef9a 100644 --- a/app/src/main/res/layout/item_attachment.xml +++ b/app/src/main/res/layout/item_attachment.xml @@ -1,7 +1,27 @@ <?xml version="1.0" encoding="utf-8"?> -<androidx.appcompat.widget.AppCompatImageView xmlns:android="http://schemas.android.com/apk/res/android" +<it.niedermann.nextcloud.deck.ui.card.attachments.AttachmentImageView + xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/preview" android:layout_width="match_parent" android:layout_height="match_parent" - app:srcCompat="@drawable/ic_image_grey600_24dp" />
\ No newline at end of file + android:scrollbars="none" + app:transformation="centerInside" + app:transformationGravity="auto" + app:alignment="center" + app:overScrollHorizontal="false" + app:overScrollVertical="false" + app:overPinchable="true" + app:horizontalPanEnabled="true" + app:verticalPanEnabled="true" + app:zoomEnabled="true" + app:flingEnabled="false" + app:scrollEnabled="true" + app:oneFingerScrollEnabled="true" + app:twoFingersScrollEnabled="false" + app:threeFingersScrollEnabled="false" + app:minZoom="0.7" + app:minZoomType="zoom" + app:maxZoom="5" + app:maxZoomType="zoom" + app:animationDuration="280" /> |