tubi_tv_seek_bar.xml


Overview

`tubi_tv_seek_bar.xml` is an Android drawable resource file that defines the visual appearance of a custom seek bar used within the Tubi TV application. Specifically, it uses a **layer-list** to compose the seek bar's background and progress drawable layers. This layered drawable is typically applied as the track drawable for a `SeekBar` widget, enabling a customized look and feel consistent with the Tubi TV branding and UI design.

The file's primary function is to provide a reusable and modular graphic resource that visually represents both the unfilled (background) and filled (progress) portions of a seek bar, which is commonly used for media playback controls such as scrubbing through video content.


Detailed Explanation

Root Element: <layer-list>


Child Elements: <item>

Each `` element represents a drawable layer.

1. Background Layer

<item
    android:id="@android:id/background"
    android:drawable="@drawable/tubi_tv_seek_bar_bg" />

2. Progress Layer

<item android:id="@android:id/progress">
    <clip android:drawable="@drawable/tubi_tv_seek_bar_progress" />
</item>

Usage Example in Layout XML

<SeekBar
    android:id="@+id/media_seek_bar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:progressDrawable="@drawable/tubi_tv_seek_bar" />

Implementation Details and Behavior


Interaction with Other System Components


Visual Diagram: Component Interaction of tubi_tv_seek_bar.xml

componentDiagram
    component "tubi_tv_seek_bar.xml\n(layer-list drawable)" {
        [Background Layer]
        [Progress Layer (clip)]
    }
    component "tubi_tv_seek_bar_bg" as bg
    component "tubi_tv_seek_bar_progress" as progress

    [Background Layer] --> bg : references
    [Progress Layer (clip)] --> progress : references

    component "SeekBar Widget" as seekbar
    seekbar --> "tubi_tv_seek_bar.xml" : uses as progressDrawable

Summary

This modular approach allows for easy customization and maintenance of media control UI elements across the Tubi TV app.