<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/island_window_layout"
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_margin="16dp"
    android:layout_weight="0.95"
    android:background="@drawable/island_background"
    android:elevation="4dp"
    android:gravity="center"
    android:minHeight="115dp"
    android:orientation="horizontal"
    android:outlineAmbientShadowColor="#4EFFFFFF"
    android:outlineSpotShadowColor="#4EFFFFFF"
    android:padding="8dp">

    <VideoView
        android:id="@+id/island_video_view"
        android:layout_width="80dp"
        android:layout_height="80dp"
        android:layout_marginStart="8dp"
        android:importantForAccessibility="no" />

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_margin="0dp"
        android:layout_weight="1"
        android:gravity="bottom"
        android:orientation="vertical"
        android:padding="12dp">

        <TextView
            android:id="@+id/island_connected_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="0dp"
            android:fontFamily="@font/sf_pro"
            android:gravity="bottom"
            android:padding="0dp"
            android:text="@string/island_connected_text"
            android:textColor="#707072"
            android:includeFontPadding="false"
            android:lineSpacingExtra="0dp"
            android:lineSpacingMultiplier="1"
            android:textSize="16sp" />

        <TextView
            android:id="@+id/island_device_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="0dp"
            android:fontFamily="@font/sf_pro"
            android:gravity="bottom"
            android:padding="0dp"
            android:text="AirPods Pro"
            android:textColor="@color/white"
            android:textSize="24sp"
            android:includeFontPadding="false"
            android:lineSpacingExtra="0dp"
            android:lineSpacingMultiplier="1"
            tools:ignore="HardcodedText" />
    </LinearLayout>

    <FrameLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:gravity="center">

        <ProgressBar
            style="@style/Widget.AppCompat.ProgressBar.Horizontal"
            android:layout_width="84dp"
            android:layout_height="84dp"
            android:layout_gravity="center"
            android:indeterminate="false"
            android:max="100"
            android:progress="100"
            android:progressDrawable="@drawable/island_battery_background" />

        <ProgressBar
            android:id="@+id/island_battery_progress"
            style="@style/Widget.AppCompat.ProgressBar.Horizontal"
            android:layout_width="84dp"
            android:layout_height="84dp"
            android:layout_gravity="center"
            android:indeterminate="false"
            android:max="100"
            android:progress="50"
            android:progressDrawable="@drawable/island_battery_progress" />

        <TextView
            android:id="@+id/island_battery_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:fontFamily="@font/sf_pro"
            android:gravity="center"
            android:text="50%"
            android:textColor="#1ceb72"
            android:textSize="16sp"
            android:textStyle="bold"
            tools:ignore="HardcodedText" />
    </FrameLayout>
</LinearLayout>
