daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <com.google.android.exoplayer2.ui.PlayerView
  2.     android:id="@+id/player_view"
  3.     android:layout_width="match_parent"
  4.     android:layout_height="match_parent"
  5.     app:controller_layout_id="@layout/exo_controls" />
  6.    
  7. fun toggleController() {
  8.     val playerView = findViewById<PlayerView>(R.id.player_view)
  9.     val controlsVisible = // ???
  10.     if (controlsVisible) {
  11.         playerView.hideController()
  12.     } else {
  13.         playerView.showController()
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top