1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-05-04 04:31:24 +00:00
Files
NewPipe/app/src/main/res
AudricV cdd5e89b86 Add ability to copy hashtags, URLs and timestamps in descriptions on long-press
This commit adds the ability to copy to clipboard hashtags, URLs and timestamps
when long-pressing them.

Some changes in our TextView class related to text setting have been required
and metadata items are now using a NewPipeTextView instead of a standard
TextView.

Six new classes have been added:

- a custom LinkMovementMethod class;
- a custom ClickableSpan class, LongPressClickableSpan, in order to set a long
  press event;
- a class to avoid code duplication in CommentTextOnTouchListener, TouchUtils;
- three implementations of LongPressClickableSpan used when linkifying text:
  - HashtagLongPressClickableSpan for hashtags;
  - TimestampLongPressClickableSpan for timestamps;
  - UrlLongPressClickableSpan for URLs.
2023-01-15 11:40:27 +01:00
..
2020-10-14 11:04:48 +02:00
2021-08-04 11:54:32 +00:00
2022-09-17 17:18:15 +03:00
2021-08-04 11:54:32 +00:00
2021-08-04 11:54:32 +00:00
2021-08-04 11:54:32 +00:00
2021-08-04 11:54:32 +00:00
2021-09-02 21:13:54 +02:00
2021-09-02 21:13:54 +02:00
2022-11-08 09:24:09 +01:00
2021-09-02 21:13:54 +02:00
2022-12-04 19:11:38 +05:30
2022-12-04 19:11:38 +05:30
2022-12-04 19:11:38 +05:30
2021-09-02 21:13:54 +02:00
2022-12-04 19:11:38 +05:30
2022-11-08 09:24:09 +01:00
2022-11-08 09:24:09 +01:00
2021-09-02 21:13:54 +02:00
2021-09-02 21:13:54 +02:00
2021-09-02 21:13:54 +02:00
2021-09-02 21:13:54 +02:00
2021-03-04 16:54:24 +01:00
2022-12-04 19:11:38 +05:30