1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
<?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>
|