<!--
    Created by Angel Leon (@gubatron), Alden Torres (aldenml),
 *            Marcelina Knitter (@marcelinkaaa)
    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/>.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:background="@color/app_background_body_light"
        android:orientation="vertical">

    <include layout="@layout/toolbar_main" />

    <LinearLayout
        android:id="@+id/activity_preview_player_metadata_header"
        android:layout_width="match_parent"
        android:layout_height="@dimen/audio_player_header_height"
        android:background="@color/app_background_main"
        android:gravity="center_vertical"
        android:orientation="vertical"
        android:paddingEnd="@dimen/audio_player_header_padding_right"
        android:paddingLeft="@dimen/audio_player_header_padding_left"
        android:paddingRight="@dimen/audio_player_header_padding_right"
        android:paddingStart="@dimen/audio_player_header_padding_left">

        <TextView
            android:id="@+id/activity_preview_player_track_name"
            style="@style/BodyListTitleText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:maxLines="1"
            android:text="@string/dummy_title" />

        <TextView
            android:id="@+id/activity_preview_player_artist_name"
            style="@style/BodyListSubtitleText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:maxLines="1"
            android:text="@string/dummy_author" />
    </LinearLayout>

    <org.team_hermes.wireshare.android.offers.FWBannerView
        app:adUnitId="c902517bad27d4d7"
        android:id="@+id/activity_preview_player_320x50_banner"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:visibility="gone"
        android:layout_gravity="center_horizontal|center_vertical"/>

    <FrameLayout
        android:id="@+id/activity_preview_player_framelayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1.0"
        android:layout_marginTop="5dp"
        android:background="@color/basic_gray_medium">

        <TextureView
            android:id="@+id/activity_preview_player_videoview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="center_horizontal|center_vertical" />

        <ImageView
            android:id="@+id/activity_preview_player_thumbnail"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="center_horizontal|center_vertical"
            android:contentDescription="@null" />
    </FrameLayout>

    <Button
        android:id="@+id/activity_preview_player_download_button"
        style="@style/BlueButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_marginBottom="20dp"
        android:layout_marginTop="20dp"
        android:drawableLeft="@drawable/promo_download_arrow_button"
        android:minHeight="45dp"
        android:minWidth="150dp"
        android:text="@string/download" />
</LinearLayout>
