<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_margin="16.dp"
    android:id="@+id/linear_layout"
    android:orientation="vertical"
    android:background="@drawable/popup_shape">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="end"
        android:id="@+id/constraint_layout"
        android:paddingBottom="48dp"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:fontFamily="@font/sf_pro"
            android:gravity="center"
            android:text="Kavish's AirPods Pro"
            android:textColor="@color/popup_text"

            android:textSize="28sp"
            app:layout_constraintTop_toTopOf="parent"
            tools:ignore="HardcodedText" />

        <ImageButton
            android:id="@+id/close_button"
            android:layout_width="28dp"
            android:layout_height="28dp"
            android:layout_marginTop="12dp"
            android:layout_marginEnd="24dp"
            android:background="@drawable/popup_button_shape"
            android:contentDescription="Close Button"
            android:src="@drawable/close"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:ignore="HardcodedText" />
    </androidx.constraintlayout.widget.ConstraintLayout>
    <VideoView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/video"
        android:contentDescription="AirPods"
        android:src="@raw/connected"
        tools:ignore="HardcodedText" />

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

        <!-- Left Half -->
        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="horizontal">

            <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:textAlignment="center"
                android:layout_marginTop="16dp"
                android:fontFamily="@font/sf_pro"
                android:text=""
                android:textColor="@color/popup_text"
                android:textSize="20sp"
                android:id="@+id/left_battery"
                android:gravity="center"
                tools:ignore="NestedWeights" />

            <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:textAlignment="center"
                android:layout_marginTop="16dp"
                android:fontFamily="@font/sf_pro"
                android:gravity="center"
                android:text=""
                android:id="@+id/right_battery"
                android:textColor="@color/popup_text"
                android:textSize="20sp" />
        </LinearLayout>

        <!-- Right Half -->
        <TextView
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:textAlignment="center"
            android:id="@+id/case_battery"
            android:layout_marginTop="16dp"
            android:fontFamily="@font/sf_pro"
            android:gravity="center"
            android:text=""
            android:textColor="@color/popup_text"
            android:textSize="20sp" />
    </LinearLayout>
</LinearLayout>
