ViewPagerAdapter: YouTube video playback stopped due to unauthorized overlay on top of player

后端 未结 1 1975
余生分开走
余生分开走 2021-02-10 13:30

Asking this question because I did not find solution/suggestions after searching for hours. All answered solutions are with Fragment. What I am looking for ViewPagerAdapter and

1条回答
  •  不思量自难忘°
    2021-02-10 14:21

    fix this by removing the padding in the YouTubePlayerView in the layout. So your layout looks like this:

    
    

    why you are using instantiateItem instead of getItem in adapter?

    0 讨论(0)
提交回复
热议问题