-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show content metadata below the description #5946
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very clean!
app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java
Outdated
Show resolved
Hide resolved
Killer feature! You're da MVP for the next blog post. |
@TiA4f8R I fixed #5453 in this PR. See the screenshots and test the APK please ;-) |
Very good, @Stypox. Just a few suggestions:
|
Done
Done
Done
Here are two screenshots. Chips turn out to look good when there are few (left), but I think they use up too much space when there are many (center). Maybe they could be made scrollable (right)? That would make reading them more cumbersome, though. |
Making tags scrollable is a good idea and is similar to what the YouTube app does: I like this option, let's wait for what @opusforlife2 thinks. |
@TiA4f8R yeah, but that's the case when the tags (i.e. the categories for YouTube app) are sorted by importance, so seeing the first ones is usually enough. But why would you only show the first ~4 tags and hide the other e.g. 15? I am not sure what the best idea is, but I agree the scrollable chip group looks good. |
Or only show the first x entries to fit in a row and a "more / show all" button that can unfold the rest if there are more? 🤔 Btw. those chips look great and maybe should be used more through the app to make its look more eye catching... 😃👌 |
Agreed. A 'more' button makes more sense. There could be possible scenarios where the tags take up just enough space that they fit without being cut off, unlike the screenshot. The user would never know that there are more tags that could be scrolled into view. A 'more' button could expand the tags like in screenshot 1. Scrolling would be cumbersome, like Stypox says. Plain no-scrolling is definitely bad, because many tags will take up space, and some people tend to tag indiscriminately. Gotta get that sweet, sweet SEO, of course. |
These tags aren't available because we don't extract them in the extractor, if I am not wrong. |
Since now selection is disabled by default, this fixes TeamNewPipe#5453
Clicking on chips opens the search fragment Long clicking copies to clipboard
I'm (somewhat) back :-D.
See the image and tell me what you think :-) @B0pol @TobiGr @TiA4f8R @opusforlife2 |
@Stypox I tested it and it looks amazing! The only issue I see is the one @opusforlife2 mentioned:
I don't necessarily find this to be a blocker, but it would be nice if we could find a solution. |
app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java
Outdated
Show resolved
Hide resolved
Welcome back, @Stypox! @mhmdanas Does the scroll bar always show if the tags don't fit in the given space? Or does it only become visible upon tapping or scrolling in that area? I'm thinking an easy visual cue is to permanently show the scroll bar for more tags. Then there would be no need for a More button. |
@opusforlife2 no, it only becomes visible on scrolling (or tapping, didn't check). |
Then that's a possible solution. @Stypox thoughts? |
That thumbnail URL. If it's available like this maybe we could add more functionality on to it. Just the bare URL seems weird to simply show the user. Maybe an option to Preview, Share or Download it? |
A separate PR would be better for this. |
Of course. I'm just floating the possibility. |
Done. It looks natural, in my opinion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you!
Edit: tested on tablet and phone emulator with API 30. Android Studio has a bug and I cannot create new emulators currently, so i cannot test this on KitKat, This should be done before merging.
@TobiGr I already tested on KitKat, everything seems to work as intended. Sorry, I forgot to mention it. |
What is it?
Description of the changes in your PR
This PR adds a metadata menu below the description of video, containing, in order:
Each item is hidden if the corresponding value is null or empty.
This PR also disables text selection in the description by default, but adds a button to allow doing that. This fixes the strange flickering observed in #5453, see #5453 (comment) for more info.
Screenshot
Fixes the following issue(s)
APK testing
On the website the APK can be found by going to the "Checks" tab below the title and then on "artifacts" on the right.
Due diligence