Guest User

Untitled

a guest
Apr 16th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment