From f3444aee5f8b983429f5386a33377e3ccb55a715 Mon Sep 17 00:00:00 2001 From: jbibik Date: Tue, 4 Jun 2024 10:43:24 -0700 Subject: [PATCH] Add icons for fastforward and rewind buttons PiperOrigin-RevId: 640206040 --- .../androidx/media3/ui/PlayerControlView.java | 71 +++++++++++++++---- libraries/ui/src/main/res/values/attrs.xml | 6 ++ .../ui/src/main/res/values/drawables.xml | 2 + 3 files changed, 64 insertions(+), 15 deletions(-) diff --git a/libraries/ui/src/main/java/androidx/media3/ui/PlayerControlView.java b/libraries/ui/src/main/java/androidx/media3/ui/PlayerControlView.java index de752071ee..c9748b02e8 100644 --- a/libraries/ui/src/main/java/androidx/media3/ui/PlayerControlView.java +++ b/libraries/ui/src/main/java/androidx/media3/ui/PlayerControlView.java @@ -61,6 +61,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; +import android.widget.ImageButton; import android.widget.ImageView; import android.widget.PopupWindow; import android.widget.TextView; @@ -211,6 +212,20 @@ import java.util.concurrent.CopyOnWriteArrayList; * + *
  • {@code fastforward_icon} - The drawable resource ID for the simple fast forward + * button without the seek-forward amount. The ID of the {@linkplain ImageButton image button} + * in such case should be {@code exo_ffwd}, specified in the {@code + * exo_player_control_ffwd_button} layout. + * + *
  • {@code rewind_icon} - The drawable resource ID for the simple rewind button without + * the seek-back amount. The ID of the {@linkplain ImageButton image button} in such case + * should be {@code exo_rew}, specified in the {@code exo_player_control_rewind_button} + * layout. + * *
  • {@code previous_icon} - The drawable resource ID for the previous button. *