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"
|
2022-10-25 15:22:38 -04:00
|
|
|
android:background="@color/transparent"
|
2022-11-01 13:34:08 -04:00
|
|
|
android:layoutDirection="ltr"
|
2022-10-21 17:31:50 -04:00
|
|
|
android:orientation="vertical"
|
2022-11-17 15:33:15 -05:00
|
|
|
android:animateLayoutChanges="true"
|
2022-10-21 17:31:50 -04:00
|
|
|
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_marginEnd="@dimen/media_preview_video_timestamp_inset"
|
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"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:textColor="@color/signal_colorOnSurface" />
|
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"
|
2022-11-07 09:15:24 -05:00
|
|
|
android:layout_height="55dp"
|
|
|
|
android:layout_weight="1"
|
2022-11-17 15:33:15 -05:00
|
|
|
app:touch_target_height="55dp" />
|
2022-10-21 17:31:50 -04:00
|
|
|
|
|
|
|
<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"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:textColor="@color/signal_colorOnSurface" />
|
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"
|
2022-11-14 17:28:36 -05:00
|
|
|
android:layout_width="match_parent"
|
2022-10-25 15:22:38 -04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
2022-11-17 15:33:15 -05:00
|
|
|
android:layout_marginBottom="11dp"
|
2022-10-25 15:22:38 -04:00
|
|
|
android:orientation="horizontal"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:visibility="gone"
|
2022-10-25 15:22:38 -04:00
|
|
|
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-27 10:54:14 -04:00
|
|
|
android:layout_marginBottom="@dimen/media_preview_bottom_bar_vertical_outer_margin"
|
2022-11-01 10:15:19 -04:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
2022-10-21 17:31:50 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/exo_share"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:layout_width="@dimen/exo_media_preview_button_width"
|
|
|
|
android:layout_height="@dimen/exo_media_preview_button_height"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background_material3"
|
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"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:gravity="center"
|
2022-11-17 15:33:15 -05:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="visible">
|
2022-10-25 15:22:38 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_prev"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/ExoMediaButton.Previous"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp" />
|
2022-10-25 15:22:38 -04:00
|
|
|
|
2022-10-27 10:54:14 -04:00
|
|
|
<org.thoughtcrime.securesms.mediapreview.LottieAnimatedButton
|
2022-10-25 15:22:38 -04:00
|
|
|
android:id="@id/exo_rew"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/MediaPreviewButton"
|
2022-11-01 10:15:19 -04:00
|
|
|
android:layout_width="@dimen/media_preview_lottie_button_dimen"
|
|
|
|
android:layout_height="@dimen/media_preview_lottie_button_dimen"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:layout_gravity="center_vertical"
|
2022-11-17 15:33:15 -05:00
|
|
|
android:layout_marginEnd="16dp"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:background="@drawable/circle_touch_highlight_background_material3"
|
2022-11-17 15:33:15 -05:00
|
|
|
android:contentDescription="@string/exo_controls_rewind_description"
|
2022-10-27 10:54:14 -04:00
|
|
|
app:lottie_rawRes="@raw/lottie_15s_skip_back"
|
|
|
|
app:tint="@color/signal_colorOnSurface"
|
|
|
|
tools:visibility="visible" />
|
2022-10-25 15:22:38 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_shuffle"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/ExoMediaButton"
|
|
|
|
android:layout_marginStart="@dimen/media_preview_button_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/media_preview_button_horizontal_margin" />
|
2022-10-25 15:22:38 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_repeat_toggle"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/ExoMediaButton"
|
|
|
|
android:layout_marginStart="@dimen/media_preview_button_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/media_preview_button_horizontal_margin" />
|
2022-10-25 15:22:38 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_play"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/MediaPreviewButton"
|
|
|
|
android:src="@drawable/exo_controls_play" />
|
2022-10-25 15:22:38 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_pause"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/MediaPreviewButton"
|
|
|
|
android:src="@drawable/exo_controls_pause" />
|
2022-10-25 15:22:38 -04:00
|
|
|
|
2022-10-27 10:54:14 -04:00
|
|
|
<org.thoughtcrime.securesms.mediapreview.LottieAnimatedButton
|
2022-10-25 15:22:38 -04:00
|
|
|
android:id="@id/exo_ffwd"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/MediaPreviewButton"
|
2022-11-01 10:15:19 -04:00
|
|
|
android:layout_width="@dimen/media_preview_lottie_button_dimen"
|
|
|
|
android:layout_height="@dimen/media_preview_lottie_button_dimen"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:layout_gravity="center_vertical"
|
2022-11-17 15:33:15 -05:00
|
|
|
android:layout_marginStart="16dp"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:background="@drawable/circle_touch_highlight_background_material3"
|
|
|
|
android:backgroundTint="@color/signal_colorOnSurface"
|
2022-11-17 15:33:15 -05:00
|
|
|
android:contentDescription="@string/exo_controls_fastforward_description"
|
2022-10-27 10:54:14 -04:00
|
|
|
app:lottie_rawRes="@raw/lottie_15s_skip_forward"
|
|
|
|
app:tint="@color/signal_colorOnSurface"
|
|
|
|
tools:visibility="visible" />
|
2022-10-25 15:22:38 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_next"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/ExoMediaButton.Next"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp" />
|
2022-10-25 15:22:38 -04:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@id/exo_vr"
|
2022-10-27 10:54:14 -04:00
|
|
|
style="@style/ExoMediaButton.VR"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp" />
|
2022-10-25 15:22:38 -04:00
|
|
|
</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"
|
2022-10-27 10:54:14 -04:00
|
|
|
android:layout_width="@dimen/exo_media_preview_button_width"
|
|
|
|
android:layout_height="@dimen/exo_media_preview_button_height"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background_material3"
|
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>
|