Sebastian Corradi
Sebastian Corradi

Reputation: 1411

Android TV hide/show PlaybackControlsRow programmatically

In androidTV is there any way to hide and show the PlaybackcontrolsRow programmatically? (I check the official documentation, but there is nothing related to it)

Thanks

Upvotes: 0

Views: 611

Answers (1)

Kyle Venn
Kyle Venn

Reputation: 8038

The PlaybackFragment has the methods you want to achieve this.

tickle() will show the controls.

hideControlsOverlay() will hide the controls.


For those not on the latest version of Leanback:

The PlaybackOverlayFragment has the methods you want to achieve this.

tickle() will show the controls.

fadeOut() will hide the controls.

Upvotes: 2

Related Questions