<!--
    Created by Angel Leon (@gubatron), Alden Torres (aldenml)
    Copyright (c) 2011-2026, FrostWire(R). All rights reserved.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/bottom_action_bar_parent"
    android:layout_width="match_parent"
    android:layout_height="@dimen/bottom_action_bar_height"
    android:layout_gravity="bottom"
    android:background="@drawable/bottom_action_bar"
    tools:ignore="ContentDescription">

    <include
        android:id="@+id/colorstrip"
        layout="@layout/colorstrip" />

    <LinearLayout
        android:id="@+id/bottom_action_bar"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/colorstrip"
        android:background="@drawable/holo_background_selector"
        android:clickable="true"
        android:focusable="true"
        android:orientation="horizontal">

        <com.andrew.apollo.widgets.SquareImageView
            android:id="@+id/bottom_action_bar_album_art"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="start|center"
            android:background="@drawable/default_artwork" />

        <RelativeLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
            android:paddingEnd="@dimen/bottom_action_bar_info_padding_left"
            android:paddingStart="@dimen/bottom_action_bar_info_padding_left">

            <TextView
                android:id="@+id/bottom_action_bar_line_one"
                style="@style/BottomActionBarLineOne"
                android:textColor="@color/bab_line_one" />

            <TextView
                android:id="@+id/bottom_action_bar_line_two"
                style="@style/BottomActionBarLineTwo"
                android:layout_below="@+id/bottom_action_bar_line_one"
                android:textColor="@color/bab_line_two" />
        </RelativeLayout>

        <HorizontalScrollView
            android:layout_width="@dimen/bottom_action_bar_button_container_width"
            android:layout_height="match_parent"
            android:scrollbars="none">

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:orientation="horizontal">

                <com.andrew.apollo.widgets.RepeatingImageButton
                    android:id="@+id/action_button_previous"
                    style="@style/BottomActionBarItem.Previous" />

                <com.andrew.apollo.widgets.PlayPauseButton
                    android:id="@+id/action_button_play"
                    style="@style/BottomActionBarItem.Play" />

                <com.andrew.apollo.widgets.RepeatingImageButton
                    android:id="@+id/action_button_next"
                    style="@style/BottomActionBarItem.Next" />

                <com.andrew.apollo.widgets.ShuffleButton
                    android:id="@+id/action_button_shuffle"
                    style="@style/BottomActionBarItem.Shuffle" />

                <com.andrew.apollo.widgets.RepeatButton
                    android:id="@+id/action_button_repeat"
                    style="@style/BottomActionBarItem.Repeat" />
            </LinearLayout>
        </HorizontalScrollView>
    </LinearLayout>

</RelativeLayout>
