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
fix this by removing the padding in the YouTubePlayerView in the layout. So your layout looks like this:
<com.google.android.youtube.player.YouTubePlayerView
android:id="@+id/video_player"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#000" />
why you are using instantiateItem
instead of getItem
in adapter?