Created
February 11, 2022 13:51
-
-
Save fatihkurcenli/872c97ce92ce631370f992ac00a9a2af to your computer and use it in GitHub Desktop.
exo_player_custom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_gravity="bottom" | |
android:background="#CC706B6B" | |
android:layoutDirection="ltr" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:gravity="center" | |
android:orientation="horizontal" | |
android:paddingTop="4dp"> | |
<ImageButton | |
android:id="@id/exo_rew" | |
style="@style/ExoMediaButton.Rewind" /> | |
<ImageButton | |
android:id="@id/exo_play" | |
style="@style/ExoMediaButton.Play" /> | |
<ImageButton | |
android:id="@id/exo_pause" | |
style="@style/ExoMediaButton.Pause" /> | |
<ImageButton | |
android:id="@id/exo_ffwd" | |
style="@style/ExoMediaButton.FastForward" /> | |
<LinearLayout | |
android:id="@+id/exo_quality_button" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> | |
<ImageButton | |
android:id="@+id/exo_quality" | |
style="@style/ExoMediaButton" | |
android:visibility="gone" | |
app:srcCompat="@drawable/ic_settings" /> | |
</LinearLayout> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="4dp" | |
android:gravity="center_vertical" | |
android:orientation="horizontal"> | |
<TextView | |
android:id="@id/exo_position" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:includeFontPadding="false" | |
android:paddingLeft="4dp" | |
android:paddingRight="4dp" | |
android:textColor="#FFBEBEBE" | |
android:textSize="14sp" | |
android:textStyle="bold" /> | |
<com.google.android.exoplayer2.ui.DefaultTimeBar | |
android:id="@id/exo_progress" | |
android:layout_width="0dp" | |
android:layout_height="26dp" | |
android:layout_weight="1" /> | |
<TextView | |
android:id="@id/exo_duration" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:includeFontPadding="false" | |
android:paddingLeft="4dp" | |
android:paddingRight="4dp" | |
android:textColor="#FFBEBEBE" | |
android:textSize="14sp" | |
android:textStyle="bold" /> | |
</LinearLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment