<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<org.chromium.chrome.browser.download.dialogs.DownloadLocationCustomView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/AlertDialogContent">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/download_dialog_title_margin_bottom"
android:textAppearance="@style/TextAppearance.DownloadDialogTitle" />
<TextView
android:id="@+id/subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/download_dialog_subtitle_margin_bottom"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary" />
<TextView
android:id="@+id/incognito_warning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/download_location_incognito_warning"
android:layout_marginBottom="@dimen/download_dialog_subtitle_margin_bottom"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary"
android:visibility="gone"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<org.chromium.ui.widget.ChromeImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_drive_file_24dp"
app:tint="@macro/default_icon_color"
style="@style/ListItemStartIcon"
android:importantForAccessibility="no" />
<org.chromium.components.browser_ui.widget.text.AlertDialogEditText
android:id="@+id/file_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.TextLarge.Primary"
android:singleLine="true" />
</LinearLayout>
<TextView
android:id="@+id/file_size"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/download_dialog_location_space_margin_start"
android:textAppearance="@style/TextAppearance.TextSmall.Primary"
android:visibility="gone"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<org.chromium.ui.widget.ChromeImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_folder_blue_24dp"
app:tint="@macro/default_icon_color"
style="@style/ListItemStartIcon"
android:importantForAccessibility="no" />
<Spinner
android:id="@+id/file_location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@android:style/Widget.EditText"/>
</LinearLayout>
<TextView
android:id="@+id/location_available_space"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/download_dialog_location_space_margin_start"
android:maxLines="2"
android:textAppearance="@style/TextAppearance.TextSmall.Primary"
android:visibility="gone"/>
</LinearLayout>
<CheckBox
android:id="@+id/show_again_checkbox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/download_dialog_checkbox_margin_top"
android:layout_marginStart="@dimen/download_dialog_checkbox_margin_start"
android:text="@string/download_location_dialog_checkbox"
style="@style/DefaultCheckboxStyle"/>
</LinearLayout>
</org.chromium.chrome.browser.download.dialogs.DownloadLocationCustomView>