public static class SkinConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(android.content.res.TypedArray a) |
Modifier and Type | Method and Description |
---|---|
SkinConfig |
build() |
SkinConfig.Builder |
controlBarBackground(java.lang.String controlBarBackground) |
SkinConfig.Builder |
controlBarIcons(java.lang.String controlBarIcons) |
SkinConfig.Builder |
controlBarIconsActive(java.lang.String controlBarIconsActive) |
SkinConfig.Builder |
controlBarText(java.lang.String controlBarText) |
SkinConfig.Builder |
menusBackground(java.lang.String menusBackground) |
SkinConfig.Builder |
menusText(java.lang.String menusText) |
SkinConfig.Builder |
menusTextActive(java.lang.String menusTextActive) |
SkinConfig.Builder |
name(java.lang.String name) |
SkinConfig.Builder |
timeSliderProgress(java.lang.String timeSliderProgress) |
SkinConfig.Builder |
timeSliderRail(java.lang.String timeSliderRail) |
SkinConfig.Builder |
tooltipsBackground(java.lang.String tooltipsBackground) |
SkinConfig.Builder |
tooltipsText(java.lang.String tooltipsText) |
SkinConfig.Builder |
url(java.lang.String url) |
public Builder()
public Builder(android.content.res.TypedArray a)
public SkinConfig.Builder name(java.lang.String name)
name
- The name of your custom skin to use for styling the player. If you are specifying skin.url, you must specify skin.name, which must match the class name in your CSS file.public SkinConfig.Builder url(java.lang.String url)
url
- If using an external CSS file to style your player, this must be specified here.public SkinConfig.Builder controlBarText(java.lang.String controlBarText)
controlBarText
- The color of any plain text in the control bar, such as the time.public SkinConfig.Builder controlBarIcons(java.lang.String controlBarIcons)
controlBarIcons
- The default, inactive color of all icons in the control bar. This option also controls the color of the play, pause, and replay icons in the inactive and complete states.public SkinConfig.Builder controlBarIconsActive(java.lang.String controlBarIconsActive)
controlBarIconsActive
- The color of hovered or selected icons in the control bar.public SkinConfig.Builder controlBarBackground(java.lang.String controlBarBackground)
controlBarBackground
- The background color of the control bar and the volume slider. The default background is transparent.public SkinConfig.Builder timeSliderProgress(java.lang.String timeSliderProgress)
timeSliderProgress
- The color of the bar in the time slider filled in from the beginning of the video through the current position. The buffer region of the control bar is 50% of the opacity of this color. The color of the volume slider is also controlled by this option.public SkinConfig.Builder timeSliderRail(java.lang.String timeSliderRail)
timeSliderRail
- The color of the base of the timeslider, known as the rail.public SkinConfig.Builder menusText(java.lang.String menusText)
menusText
- The color of inactive, default text in menus and the Next Up overlay.public SkinConfig.Builder menusTextActive(java.lang.String menusTextActive)
menusTextActive
- The color of hovered or selected text in menus. This option also controls the text color in the Discover overlay and the hover state text color in the Next Up overlay.public SkinConfig.Builder menusBackground(java.lang.String menusBackground)
menusBackground
- The background color of menus and the Next Up overlay.public SkinConfig.Builder tooltipsText(java.lang.String tooltipsText)
tooltipsText
- The text color of tooltips.public SkinConfig.Builder tooltipsBackground(java.lang.String tooltipsBackground)
tooltipsBackground
- The background color of tooltips.public SkinConfig build()