mirror of
https://github.com/androidx/media.git
synced 2025-05-05 06:30:24 +08:00
Remove more references to overriding layouts from Player(Control)View
In exoplayer2 this affects StyledPlayer(Control)View #minor-release PiperOrigin-RevId: 481878940 (cherry picked from commit a5583c04bb6c199633e2b1edf036060c0d33b616)
This commit is contained in:
parent
1c6cea80eb
commit
fb1c9dee04
@ -84,12 +84,13 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
|||||||
/**
|
/**
|
||||||
* A view for controlling {@link Player} instances.
|
* A view for controlling {@link Player} instances.
|
||||||
*
|
*
|
||||||
* <p>A StyledPlayerControlView can be customized by setting attributes (or calling corresponding
|
* <p>A {@code StyledPlayerControlView} can be customized by setting attributes (or calling
|
||||||
* methods), or overriding drawables.
|
* corresponding methods), or overriding drawables.
|
||||||
*
|
*
|
||||||
* <h2>Attributes</h2>
|
* <h2>Attributes</h2>
|
||||||
*
|
*
|
||||||
* The following attributes can be set on a StyledPlayerControlView when used in a layout XML file:
|
* The following attributes can be set on a {@code StyledPlayerControlView} when used in a layout
|
||||||
|
* XML file:
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li><b>{@code show_timeout}</b> - The time between the last user interaction and the controls
|
* <li><b>{@code show_timeout}</b> - The time between the last user interaction and the controls
|
||||||
@ -148,22 +149,14 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
|||||||
* <li>Corresponding method: {@link #setTimeBarMinUpdateInterval(int)}
|
* <li>Corresponding method: {@link #setTimeBarMinUpdateInterval(int)}
|
||||||
* <li>Default: {@link #DEFAULT_TIME_BAR_MIN_UPDATE_INTERVAL_MS}
|
* <li>Default: {@link #DEFAULT_TIME_BAR_MIN_UPDATE_INTERVAL_MS}
|
||||||
* </ul>
|
* </ul>
|
||||||
* <li><b>{@code controller_layout_id}</b> - Specifies the id of the layout to be inflated. See
|
* <li>All attributes that can be set on {@link DefaultTimeBar} can also be set on a {@code
|
||||||
* below for more details.
|
* StyledPlayerControlView}, and will be propagated to the inflated {@link DefaultTimeBar}.
|
||||||
* <ul>
|
|
||||||
* <li>Corresponding method: None
|
|
||||||
* <li>Default: {@code R.layout.exo_styled_player_control_view}
|
|
||||||
* </ul>
|
|
||||||
* <li>All attributes that can be set on {@link DefaultTimeBar} can also be set on a
|
|
||||||
* StyledPlayerControlView, and will be propagated to the inflated {@link DefaultTimeBar}
|
|
||||||
* unless the layout is overridden to specify a custom {@code exo_progress} (see below).
|
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h2>Overriding drawables</h2>
|
* <h2>Overriding drawables</h2>
|
||||||
*
|
*
|
||||||
* The drawables used by StyledPlayerControlView (with its default layout file) can be overridden by
|
* The drawables used by {@code StyledPlayerControlView} can be overridden by drawables with the
|
||||||
* drawables with the same names defined in your application. The drawables that can be overridden
|
* same names defined in your application. The drawables that can be overridden are:
|
||||||
* are:
|
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li><b>{@code exo_styled_controls_play}</b> - The play icon.
|
* <li><b>{@code exo_styled_controls_play}</b> - The play icon.
|
||||||
|
@ -156,15 +156,14 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||||||
* </ul>
|
* </ul>
|
||||||
* <li>All attributes that can be set on {@link StyledPlayerControlView} and {@link
|
* <li>All attributes that can be set on {@link StyledPlayerControlView} and {@link
|
||||||
* DefaultTimeBar} can also be set on a StyledPlayerView, and will be propagated to the
|
* DefaultTimeBar} can also be set on a StyledPlayerView, and will be propagated to the
|
||||||
* inflated {@link StyledPlayerControlView} unless the layout is overridden to specify a
|
* inflated {@link StyledPlayerControlView}.
|
||||||
* custom {@code exo_controller}.
|
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h2>Overriding drawables</h2>
|
* <h2>Overriding drawables</h2>
|
||||||
*
|
*
|
||||||
* The drawables used by {@link StyledPlayerControlView} (with its default layout file) can be
|
* The drawables used by {@link StyledPlayerControlView} can be overridden by drawables with the
|
||||||
* overridden by drawables with the same names defined in your application. See the {@link
|
* same names defined in your application. See the {@link StyledPlayerControlView} documentation for
|
||||||
* StyledPlayerControlView} documentation for a list of drawables that can be overridden.
|
* a list of drawables that can be overridden.
|
||||||
*/
|
*/
|
||||||
public class StyledPlayerView extends FrameLayout implements AdViewProvider {
|
public class StyledPlayerView extends FrameLayout implements AdViewProvider {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user