<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:orientation="vertical" >

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:textAppearance="@style/TextAppearance.Dialog.Body.Message"
        android:text="@string/qs_record_issue_dropdown_header" />

    <Button
        android:id="@+id/issue_type_button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/qs_record_issue_dropdown_prompt"
        android:lines="1"
        android:drawableRight="@drawable/arrow_pointing_down"
        android:layout_marginTop="@dimen/qqs_layout_margin_top"
        android:focusable="false"
        android:clickable="true" />

    <!-- Screen Record Switch -->
    <LinearLayout
        android:id="@+id/screenrecord_switch_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/qqs_layout_margin_top"
        android:orientation="horizontal">

        <ImageView
            android:layout_width="@dimen/screenrecord_option_icon_size"
            android:layout_height="@dimen/screenrecord_option_icon_size"
            android:layout_weight="0"
            android:src="@drawable/ic_screenrecord"
            app:tint="?androidprv:attr/materialColorOnSurface"
            android:importantForAccessibility="no"
            android:layout_gravity="center"
            android:layout_marginEnd="@dimen/screenrecord_option_padding" />

        <TextView
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:minHeight="@dimen/screenrecord_option_icon_size"
            android:layout_weight="1"
            android:layout_gravity="fill_vertical"
            android:gravity="center"
            android:text="@string/quick_settings_screen_record_label"
            android:textAppearance="@style/TextAppearance.Dialog.Body.Message"
            android:importantForAccessibility="no"/>

        <Switch
            android:id="@+id/screenrecord_switch"
            android:layout_width="wrap_content"
            android:minHeight="@dimen/screenrecord_option_icon_size"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="fill_vertical"
            android:layout_weight="0"
            android:contentDescription="@string/quick_settings_screen_record_label" />
    </LinearLayout>

    <!-- Bug Report Switch -->
    <LinearLayout
        android:id="@+id/bugreport_switch_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/qqs_layout_margin_top"
        android:orientation="horizontal">

        <ImageView
            android:layout_width="@dimen/screenrecord_option_icon_size"
            android:layout_height="@dimen/screenrecord_option_icon_size"
            android:layout_weight="0"
            android:src="@drawable/ic_bugreport"
            app:tint="?androidprv:attr/materialColorOnSurface"
            android:importantForAccessibility="no"
            android:layout_gravity="center"
            android:layout_marginEnd="@dimen/screenrecord_option_padding" />

        <TextView
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:minHeight="@dimen/screenrecord_option_icon_size"
            android:layout_weight="1"
            android:layout_gravity="fill_vertical"
            android:gravity="center"
            android:text="@string/qs_record_issue_bug_report"
            android:textAppearance="@style/TextAppearance.Dialog.Body.Message"
            android:importantForAccessibility="no"/>

        <Switch
            android:id="@+id/bugreport_switch"
            android:layout_width="wrap_content"
            android:minHeight="@dimen/screenrecord_option_icon_size"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="fill_vertical"
            android:layout_weight="0"
            android:contentDescription="@string/qs_record_issue_bug_report" />
    </LinearLayout>
</LinearLayout>