chinwag-android/app/src/main/java/com/keylesspalace/tusky/view
mcclure 7684f06938
Add UI for image-attachment "focus" (#2620)
* Attempt-zero implementation of a "focus" feature for image attachments. Choose "Set focus" in the attachment menu, tap once to select focus point (no visual feedback currently), tap "OK". Works in tests.

* Remove code duplication between 'update description' and 'update focus'

* Fix ktlint/bitrise failures

* Make updateMediaItem private

* When focus is set on a post attachment the preview focuses correctly. ProgressImageView now inherits from MediaPreviewImageView.

* Replace use of PointF for Focus where focus is represented, fix ktlint

* Substitute 'focus' for 'focus point' in strings

* First attempt draw focus point. Only updates on initial load. Modeled on code from RoundedCorners builtin from Glide

* Redraw focus after each tap

* Dark curtain where focus isn't (now looks like mastosoc)

* Correct ktlint for FocusDialog

* draft: switch to overlay for focus indicator

* Draw focus circle, but ImageView and FocusIndicatorView seem to share a single canvas

* Switch focus circle to path approach

* Correctly scale, save and load focuses. Clamp to visible area. Focus editor looks and feels right

* ktlint fixes and comments

* Focus indicator drawing should use device-independent pixels

* Shrink focus window when it gets unattractively tall (no linting, misbehaves on wide aspect ratio screens)

* Correct max-height behavior for screens in landscape mode

* Focus attachment result is are flipped on x axis; fix this

* Correctly thread focus through on scheduled posts, redrafted posts, and drafts (but draft focus is lost on post)

* More focus ktlint fixes

* Fix specific case where a draft is given a focus, then deleted, then posted in that order

* Fix accidental file change in focus PR

* ktLint fix

* Fix property style warnings in focus

* Fix remaining style warnings from focus PR

Co-authored-by: Conny Duck <k.pozniak@gmx.at>
2022-09-21 20:28:06 +02:00
..
BackgroundMessageView.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
BezelImageView.java convert MainActivity to Kotlin and upgrade MaterialDrawer to version 8 (#1748) 2020-04-15 18:57:53 +02:00
EmojiPicker.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
EndlessOnScrollListener.java Caching toots (#809) 2019-01-14 22:05:08 +01:00
ExposedPlayPauseVideoView.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
FilterDialog.kt Support setting filter expirations (#2667) 2022-08-17 17:50:34 +02:00
LicenseCard.kt Use tags from status when adding handlers to hashtag spans in status content (#2344) 2022-02-25 18:56:21 +01:00
MediaPreviewImageView.kt Add UI for image-attachment "focus" (#2620) 2022-09-21 20:28:06 +02:00
MuteAccountDialog.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00