<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="org.kde.kdeconnect.UserInterface.DeviceFragment">

    <!-- Layout shown when device is reachable but not yet paired -->
    <include
        android:id="@+id/pair_request"
        layout="@layout/view_pair_request"
        tools:visibility="gone"/>

    <!-- Layout shown when we can't pair with device or device is not reachable -->
    <include
        android:id="@+id/pair_error"
        layout="@layout/view_pair_error"
        tools:visibility="gone"/>

    <!-- Layout shown when device is paired and reachable -->
    <ListView
        android:id="@+id/buttons_list"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:fillViewport="true"
        tools:context=".DeviceActivity"
        tools:listitem="@layout/list_item_with_icon_entry"
        android:layout_weight=".8"
        android:divider="@null"
        android:dividerHeight="0dp" />

    <!-- Extra information about the current device -->
    <RelativeLayout
        android:id="@+id/view_status_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:elevation="4dp"
        android:padding="8dp"
        android:visibility="gone"
        tools:visibility="visible"
        tools:ignore="UnusedAttribute">

        <TextView
            android:id="@+id/view_status_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:padding="4dp"
            android:text="@string/view_status_title"
            android:textAppearance="@style/TextAppearance.MaterialComponents.Headline5"
            />

        <CheckedTextView
            android:id="@+id/view_battery_status"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/view_status_title"
            android:checkMark="@null"
            android:clickable="false"
            android:padding="4dp"
            android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
            android:text="@string/battery_status_unknown"
            tools:text="100%"
            />

    </RelativeLayout>
</LinearLayout>
