Skip to content

Instantly share code, notes, and snippets.

@emre-ozcan
emre-ozcan / YouTubePlayerSupportFragmentXKt.kt
Created July 8, 2021 10:25 — forked from novanto/YouTubePlayerSupportFragmentXKt.kt
This is an alternative solution for YoutubePlayerSupportFragment for AndroidX - written in Kotlin. Feel free to comment if the code is not working! this is a translated version of https://gist.github.com/medyo/f226b967213c3b8ec6f6bebb5338a492#file-youtubeplayersupportfragmentx-java
package com.google.android.youtube.player
import android.os.Bundle
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.google.android.youtube.player.internal.ab