PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.4k stars 758 forks source link

when YouTubePlayerView in NestedScrollView Or RecyclerView, settings dialog can't scroll #1048

Open zionFiv opened 1 year ago

zionFiv commented 1 year ago

Bug Report

when YouTubePlayerView in NestedScrollView Or RecyclerView, settings dialog can't scroll

is there any solution ?

or what should i do if i want hide setting button

Youtube Player Library Version: 12.1.0

EDFAA3E6-ECFB-440E-93D7-27CA05EEC3EF

Serkali-sudo commented 1 year ago

I dont think there is a simple solution for this problem.

But i do have some elaborate ideas:

1) Disable recyclerview scroll when user scrolls scrollable views (only y axis is enough recyclerview doesnt intercept scrolls x axis) in youtubeplayerview.

In summary check visibility of scrollable elements and get their coordinates check if element is visible and inside the touch coordinates then it means user wants to scroll but if the scrollable element is not visibile or not in the touched coordinates then means user wants to scroll recyclerview so enable recyclerview scroll.

Btw to implement this idea you will need to edit the html and add a callback and send touched coordinates to js ext. which means you are gonna have to edit the library

billdizl commented 8 months ago

错误报告

当 YouTubePlayerView 在 NestedScrollView 或 RecyclerView 中时,设置对话框无法滚动

有什么解决办法吗?

或者如果我想隐藏设置按钮我该怎么办

YouTube 播放器库版本:12.1.0

EDFAA3E6-ECFB-440E-93D7-27CA05EEC3EF

小伙子 你可以使用自定义布局来实现隐藏

PierfrancescoSoffritti commented 8 months ago

Please let's stick to using english so everyone can understand.

billdizl commented 8 months ago

can use custom layouts to achieve hiding.