chinwag-android/app/src/main/res
Nik Clayton 79ee2dc32c
Fix image zoom / pan / scroll / swipe (#3894)
Migrate to touchimageview from photoview, and adjust the touch logic to correctly handle single finger drag, two finger pinch/stretch, flings, taps, and swipes.

As before, the features are:

- Single tap, show/hide controls and media description
- Double tap, zoom in/out
- Single finger drag up/down, scale/translate image, dismiss if scrolled too far
- Single finger drag left/right
  - When not zoomed, swipe to next image if multiple images present
- When zoomed, scroll to edge of image, then to next image if multiple images present
- Two finger pinch/zoom, zoom in/out on the image

Behaviour differences to previous code

1. Bug fix: The image can't get "stuck" when zoomed, and impossible to scroll
2. Bug fix: Pinching is not mis-interpreted as a fling, closing the image
3. Bug fix: The zoom state of images is not lost or misinterpreted when the user swipes through multiple images
4. Bug fix: Double-tap zooms all the way, instead of stopping
5. Tapping outside the image does not dismiss it, controls and description show/hide

Fixes https://github.com/tuskyapp/Tusky/issues/3562, https://github.com/tuskyapp/Tusky/issues/2297
2023-07-31 12:44:01 +02:00
..
anim
color Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
color-v24 Fix crash on startup on Api levels 25 and lower (#2422) 2022-04-07 20:04:39 +02:00
drawable 3408 home help message (#3415) 2023-03-21 19:44:35 +01:00
drawable-v24 new app icon (#2695) 2022-09-13 19:48:09 +02:00
layout Fix image zoom / pan / scroll / swipe (#3894) 2023-07-31 12:44:01 +02:00
layout-land Fix trending tags being cut off (#3745) 2023-06-15 11:27:57 +02:00
layout-sw640dp 3503: SwipeRefreshLayout must be higher level (#3504) 2023-04-20 19:36:29 +02:00
menu Add a menu option to load the newest notifications (#3708) 2023-06-11 20:04:49 +02:00
mipmap-anydpi-v26 new app icon (#2695) 2022-09-13 19:48:09 +02:00
raw Update gradle, kotlin and other dependencies (#2291) 2022-01-20 21:10:32 +01:00
values Show the throwable error message when an upload fails (#3838) 2023-07-26 23:36:29 +02:00
values-ar Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-be Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-ber Replace “status” by “post” in strings name and source values (#2405) 2022-03-27 12:23:25 +02:00
values-bg Always publish image alt text 2023-04-24 11:48:40 +02:00
values-bn-rBD Always publish image alt text 2023-04-24 11:48:40 +02:00
values-bn-rIN Always publish image alt text 2023-04-24 11:48:40 +02:00
values-ca Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-ckb Always publish image alt text 2023-04-24 11:48:40 +02:00
values-cs Always publish image alt text 2023-04-24 11:48:40 +02:00
values-cy Translated using Weblate (Welsh) 2023-07-19 10:10:57 +02:00
values-de Translated using Weblate (German) 2023-07-11 16:29:06 +02:00
values-el Translated using Weblate (Greek) 2023-07-29 12:53:03 +02:00
values-en-rGB revert en-gb string update 2023-02-11 13:07:14 +01:00
values-eo Always publish image alt text 2023-04-24 11:48:40 +02:00
values-es Translated using Weblate (Spanish) 2023-07-07 21:38:23 +02:00
values-eu Always publish image alt text 2023-04-24 11:48:40 +02:00
values-fa Translated using Weblate (Persian) 2023-07-29 12:53:03 +02:00
values-fi Always publish image alt text 2023-04-24 11:48:40 +02:00
values-fr Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-fy Always publish image alt text 2023-04-24 11:48:40 +02:00
values-ga Always publish image alt text 2023-04-24 11:48:40 +02:00
values-gd Translated using Weblate (Gaelic) 2023-07-19 10:10:57 +02:00
values-gl Translated using Weblate (Galician) 2023-07-29 12:53:03 +02:00
values-hi Translated using Weblate (Hindi) 2023-06-18 13:46:58 +02:00
values-hu Translated using Weblate (Hungarian) 2023-07-07 21:38:23 +02:00
values-in Translated using Weblate (Indonesian) 2023-03-30 16:42:49 +00:00
values-is Translated using Weblate (Icelandic) 2023-07-24 21:48:21 +02:00
values-it Translated using Weblate (Italian) 2023-07-07 21:38:23 +02:00
values-iw Added translation using Weblate (Hebrew) 2023-07-30 15:30:24 +02:00
values-ja Translated using Weblate (Japanese) 2023-07-07 21:38:23 +02:00
values-kab Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
values-ko Always publish image alt text 2023-04-24 11:48:40 +02:00
values-large Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
values-large-land fix compose field on landscape tablets (#2747) 2022-11-07 19:56:28 +01:00
values-lv Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-ml Spelling (#2771) 2022-11-09 19:32:39 +01:00
values-nb-rNO Translated using Weblate (Norwegian Bokmål) 2023-07-11 16:29:06 +02:00
values-night #3178: Increase contrast for separator lines in dark themes (#3497) 2023-03-30 19:31:23 +02:00
values-nl Translated using Weblate (Dutch) 2023-07-12 12:54:46 +02:00
values-oc Translated using Weblate (Occitan) 2023-06-18 13:46:58 +02:00
values-or Translated using Weblate (Odia) 2023-05-09 15:44:10 +00:00
values-pl Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-pt-rBR Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-pt-rPT Translated using Weblate (Portuguese (Portugal)) 2023-06-11 15:14:11 +02:00
values-ru Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-sa Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-si Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
values-sk Spelling (#2771) 2022-11-09 19:32:39 +01:00
values-sl Always publish image alt text 2023-04-24 11:48:40 +02:00
values-small
values-sv Translated using Weblate (Swedish) 2023-07-07 21:38:23 +02:00
values-sw380dp ComposeActivity refactor (#1541) 2019-12-19 19:09:40 +01:00
values-ta Always publish image alt text 2023-04-24 11:48:40 +02:00
values-th Always publish image alt text 2023-04-24 11:48:40 +02:00
values-tr Translated using Weblate (Turkish) 2023-07-19 10:10:57 +02:00
values-uk Translated using Weblate (Ukrainian) 2023-07-29 12:53:03 +02:00
values-v27 Android 12 support, update AndroidX libraries (#2367) 2022-03-09 20:50:23 +01:00
values-vi Translated using Weblate (Vietnamese) 2023-07-29 12:53:03 +02:00
values-w640dp Add trending tags (#3149) 2023-02-14 19:52:11 +01:00
values-zh-rCN Translated using Weblate (Chinese (Simplified)) 2023-07-29 12:53:03 +02:00
values-zh-rHK Always publish image alt text 2023-04-24 11:48:40 +02:00
values-zh-rMO Always publish image alt text 2023-04-24 11:48:40 +02:00
values-zh-rSG Always publish image alt text 2023-04-24 11:48:40 +02:00
values-zh-rTW Always publish image alt text 2023-04-24 11:48:40 +02:00
xml Add entry for "or" to locales_config.xml and donottranslate.xml (#3584) 2023-05-11 12:54:51 +02:00