<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2024 The Chromium Authors
  Use of this source code is governed by a BSD-style license that can be
  found in the LICENSE file.
-->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/fragment_net_logs"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

  <RelativeLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="8dp">

        <!--suppress HardcodedText -->

        <Button
            android:text="Delete All"
            android:id="@+id/delete_all_net_logs_button"
            android:nextFocusUp="@id/delete_all_net_logs_button"
            android:nextFocusDown="@id/net_log_list"
            android:layout_marginStart="8dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:textAppearance="?android:attr/textAppearanceMedium"/>

        <TextView
        android:id="@+id/net_logs_total_capacity"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginEnd="8dp"
        android:layout_centerVertical="true"
        android:layout_toEndOf="@+id/delete_all_net_logs_button"
        android:textAppearance="?android:attr/textAppearanceSmall"/>

      </RelativeLayout>

    <!-- horizontal divider -->
    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="?android:attr/listDivider"/>

    <ListView
        android:id="@+id/net_log_list"
        android:nextFocusUp="@id/delete_all_net_logs_button"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

</LinearLayout>