Stay organized with collections Save and categorize content based on your preferences.
added in version 25.4.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
Deprecated since version 27.1.0

VideoFragment

public class VideoFragment
extends PlaybackFragment

java.lang.Object
   ↳ android.app.Fragment
     ↳ android.support.v17.leanback.app.PlaybackFragment
       ↳ android.support.v17.leanback.app.VideoFragment


This class was deprecated in API level 27.1.0.
use VideoSupportFragment

Subclass of PlaybackFragment that is responsible for providing a SurfaceView and rendering video.

Summary

Inherited constants

From class android.support.v17.leanback.app.PlaybackFragment
From interface android.content.ComponentCallbacks2

Public constructors

VideoFragment()

Public methods

SurfaceView getSurfaceView()

Returns the surface view.

View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void onDestroyView()
void setSurfaceHolderCallback(SurfaceHolder.Callback callback)

Adds SurfaceHolder.Callback to SurfaceView.

Protected methods

void onVideoSizeChanged(int width, int height)

Called when size of the video changes.

Inherited methods

From class android.support.v17.leanback.app.PlaybackFragment
From class android.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks2