Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/view
Nik Clayton 61720c3472
Meet accessibility guidelines for clickable spans (#3382)
Clickable spans in textviews do not normally meet the Android accessibility
guidelines of a minimum 48dp square touch target.

This can't be fixed with a `TouchDelegate`, as the span is not a separate
view to which the delegate can be attached.

Add `ClickableSpanTextView`. If used instead of a `TextView`, any spans
from `ClickableSpan` will have their touchable area extended to meet the
48dp minimum.

The touchable area is still bounded by the size of the view.

If two spans are closer together than 48dp then the closest span to the
touch wins.

Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>
2023-03-18 08:57:39 +01:00
..
BackgroundMessageView.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
BezelImageView.kt Convert BezelImageView, EndlessOnScrollListener, ComposeScheduleView, ProgressImageView to Kotlin (#3147) 2023-01-13 19:49:56 +01:00
ClickableSpanTextView.kt Meet accessibility guidelines for clickable spans (#3382) 2023-03-18 08:57:39 +01:00
EmojiPicker.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
EndlessOnScrollListener.kt Convert BezelImageView, EndlessOnScrollListener, ComposeScheduleView, ProgressImageView to Kotlin (#3147) 2023-01-13 19:49:56 +01:00
ExposedPlayPauseVideoView.kt Handle config changes for video playback (#2754) 2022-11-07 19:57:13 +01:00
GraphView.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
LicenseCard.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
MediaPreviewImageView.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
MediaPreviewLayout.kt Fix media preview bugs (#3160) 2023-01-12 19:40:51 +01:00
MuteAccountDialog.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00