diff options
author | Allan Wang <me@allanwang.ca> | 2019-07-01 23:32:45 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-07-01 23:32:45 -0700 |
commit | 5ec00376fa6be5530cdd16cd5228f868f5680798 (patch) | |
tree | a023a4809fe1d95a1f2f3cdcb59372da575f54ba /app/src/main/res/layout/activity_image_textless.xml | |
parent | 05bf31e1b0f2d5398e2b1cf01b2015c64636598f (diff) | |
download | frost-5ec00376fa6be5530cdd16cd5228f868f5680798.tar.gz frost-5ec00376fa6be5530cdd16cd5228f868f5680798.tar.bz2 frost-5ec00376fa6be5530cdd16cd5228f868f5680798.zip |
Add swipe to dismiss
Diffstat (limited to 'app/src/main/res/layout/activity_image_textless.xml')
-rw-r--r-- | app/src/main/res/layout/activity_image_textless.xml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/app/src/main/res/layout/activity_image_textless.xml b/app/src/main/res/layout/activity_image_textless.xml index e047b23d..41fd43a2 100644 --- a/app/src/main/res/layout/activity_image_textless.xml +++ b/app/src/main/res/layout/activity_image_textless.xml @@ -11,13 +11,20 @@ android:layout_height="wrap_content" android:layout_gravity="center" /> - <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView - android:id="@+id/image_photo" + <com.pitchedapps.frost.views.DragFrame + android:id="@+id/image_drag" android:layout_width="match_parent" - android:layout_height="match_parent" - android:alpha="0" - android:scaleX="0.9" - android:scaleY="0.9" /> + android:layout_height="match_parent"> + + <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView + android:id="@+id/image_photo" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:alpha="0" + android:scaleX="0.9" + android:scaleY="0.9" /> + + </com.pitchedapps.frost.views.DragFrame> <com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/image_fab" |