2022-10-21 17:31:50 -04:00
|
|
|
<?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"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
2022-10-25 15:22:38 -04:00
|
|
|
android:background="@color/transparent"
|
2022-10-21 17:31:50 -04:00
|
|
|
android:orientation="vertical"
|
|
|
|
tools:targetApi="28">
|
|
|
|
|
|
|
|
<LinearLayout
|
2022-10-25 15:22:38 -04:00
|
|
|
android:id="@+id/exo_duration_viewgroup"
|
2022-10-21 17:31:50 -04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-10-25 15:22:38 -04:00
|
|
|
android:layout_marginStart="@dimen/media_preview_video_timestamp_inset"
|
|
|
|
android:layout_marginTop="@dimen/media_preview_bottom_bar_vertical_margin"
|
|
|
|
android:layout_marginEnd="@dimen/media_preview_video_timestamp_inset"
|
|
|
|
android:layout_marginBottom="@dimen/media_preview_bottom_bar_vertical_margin"
|
2022-10-21 17:31:50 -04:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@id/exo_position"
|
2022-10-25 15:22:38 -04:00
|
|
|
style="@style/Signal.Text.BodyMedium"
|
2022-10-21 17:31:50 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:textColor="#FFBEBEBE"
|
2022-10-25 15:22:38 -04:00
|
|
|
android:textSize="14sp" />
|
2022-10-21 17:31:50 -04:00
|
|
|
|
2022-10-25 15:22:38 -04:00
|
|
|
<com.google.android.exoplayer2.ui.DefaultTimeBar
|
|
|
|
android:id="@id/exo_progress"
|
2022-10-21 17:31:50 -04:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="26dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@id/exo_duration"
|
2022-10-25 15:22:38 -04:00
|
|
|
style="@style/Signal.Text.BodyMedium"
|
2022-10-21 17:31:50 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:paddingRight="4dp"
|
|
|
|
android:textColor="#FFBEBEBE"
|
2022-10-25 15:22:38 -04:00
|
|
|
android:textSize="14sp" />
|
2022-10-21 17:31:50 -04:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2022-10-25 15:22:38 -04:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/media_preview_album_rail"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
tools:layout_height="64dp" />
|
|
|
|
|
2022-10-21 17:31:50 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-10-25 15:22:38 -04:00
|
|
|
android:layout_marginTop="@dimen/media_preview_bottom_bar_vertical_margin"
|
|
|
|
android:layout_marginBottom="@dimen/media_preview_bottom_bar_vertical_margin"
|
2022-10-21 17:31:50 -04:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="4dp">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/exo_share"
|
|
|
|
android:layout_width="@dimen/exo_media_button_width"
|
|
|
|
android:layout_height="@dimen/exo_media_button_height"
|
|
|
|
android:background="?selectableItemBackground"
|
2022-10-26 11:00:44 -04:00
|
|
|
app:srcCompat="@drawable/ic_share_24_outline" />
|
2022-10-21 17:31:50 -04:00
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1.0" />
|
|
|
|
|
2022-10-25 15:22:38 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/exo_button_viewgroup"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_prev"
|
|
|
|
style="@style/ExoMediaButton.Previous" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_rew"
|
|
|
|
style="@style/ExoMediaButton"
|
|
|
|
android:contentDescription="@string/exo_controls_rewind_description"
|
|
|
|
app:srcCompat="@drawable/ic_media_skipback_outline_24" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_shuffle"
|
|
|
|
style="@style/ExoMediaButton" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_repeat_toggle"
|
|
|
|
style="@style/ExoMediaButton" />
|
|
|
|
|
|
|
|
<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"
|
|
|
|
android:contentDescription="@string/exo_controls_fastforward_description"
|
|
|
|
app:srcCompat="@drawable/ic_media_skipforward_outline_24" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_next"
|
|
|
|
style="@style/ExoMediaButton.Next" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_vr"
|
|
|
|
style="@style/ExoMediaButton.VR" />
|
|
|
|
</LinearLayout>
|
2022-10-21 17:31:50 -04:00
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1.0" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/exo_forward"
|
|
|
|
android:layout_width="@dimen/exo_media_button_width"
|
|
|
|
android:layout_height="@dimen/exo_media_button_height"
|
|
|
|
android:background="?selectableItemBackground"
|
2022-10-25 15:22:38 -04:00
|
|
|
app:srcCompat="@drawable/ic_forward_outline_24" />
|
2022-10-21 17:31:50 -04:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|