How do I make the Exoplayer controls always visible?
Just posting for someone how needs, Try this once.
Please add below 2 lines in the XML view.
app:show_timeout="0"
app:hide_on_touch="false"
Like full Example.
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/audio_view"
android:layout_width="match_parent"
android:layout_height="300dp"
android:isScrollContainer="false"
app:controller_layout_id="@layout/exo_playback_control_view_audio"
app:fastforward_increment="10000"
app:show_timeout="0"
app:hide_on_touch="false"
app:resize_mode="fill"
app:rewind_increment="10000"
app:show_buffering="always" />
You can do it programmatically using these,
PlayerView.setControllerShowTimeoutMs(0);
PlayerView.setControllerHideOnTouch(false);
Set show_timeout
attribute to 0