luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 3 | Copyright (C) 2015 The CyanogenMod Project |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 4 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 8 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 16 | --> |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 17 | <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="match_parent" |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 20 | android:orientation="vertical" > |
| 21 | |
| 22 | <LinearLayout android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent" |
| 24 | android:orientation="vertical" |
| 25 | android:background="@color/white" |
| 26 | android:elevation="0dp" > |
| 27 | |
| 28 | <LinearLayout android:layout_width="match_parent" |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 30 | android:background="@color/accent" |
| 31 | android:elevation="5dp"> |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 32 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 33 | <LinearLayout android:id="@+id/actions_download_holder" |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 34 | android:layout_width="match_parent" |
| 35 | android:layout_height="wrap_content" |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 36 | android:orientation="vertical" |
| 37 | android:paddingStart="16dp" |
| 38 | android:paddingTop="16dp"> |
| 39 | <ImageButton |
| 40 | android:id="@+id/download_cancel" |
| 41 | style="?android:attr/buttonBarButtonStyle" |
| 42 | android:layout_width="32dp" |
| 43 | android:layout_height="32dp" |
| 44 | android:src="@drawable/ic_action_back"/> |
| 45 | <ImageView |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="48dp" |
| 48 | android:src="@color/accent"/> |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 49 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 50 | <LinearLayout android:layout_width="match_parent" |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 51 | android:layout_height="wrap_content" |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 52 | android:paddingStart="26dp" |
| 53 | android:paddingEnd="16dp" |
| 54 | android:paddingBottom="32dp"> |
| 55 | <EditText |
| 56 | android:id="@+id/download_filename_edit" |
| 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="wrap_content" |
| 59 | android:inputType="textCapSentences" |
| 60 | android:selectAllOnFocus="true" |
| 61 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 62 | android:textSize="32dp" |
| 63 | android:textColor="@color/white" |
| 64 | android:hint="@string/download_name_hint" |
| 65 | android:textColorHint="@color/icon_white" /> |
| 66 | </LinearLayout> |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 67 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 68 | </LinearLayout> |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 69 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 70 | </LinearLayout> |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 71 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 72 | <FrameLayout |
| 73 | android:layout_width="match_parent" |
| 74 | android:layout_height="0dip" |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 75 | android:layout_weight="1" |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 76 | android:paddingTop="24dp"> |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 77 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 78 | <ScrollView |
| 79 | android:layout_width="match_parent" |
| 80 | android:layout_height="match_parent"> |
| 81 | |
| 82 | <LinearLayout |
| 83 | android:id="@+id/download_table_layout" |
| 84 | android:layout_width="match_parent" |
| 85 | android:layout_height="wrap_content" |
| 86 | android:paddingStart="16dp" |
| 87 | android:paddingEnd="16dp" |
| 88 | android:paddingTop="8dp" |
| 89 | android:orientation="vertical" > |
| 90 | |
| 91 | <LinearLayout android:layout_width="match_parent" |
| 92 | android:layout_height="72dp" |
| 93 | android:orientation="horizontal" |
| 94 | android:layout_marginBottom="8dp" |
| 95 | android:layout_gravity="center"> |
| 96 | <ImageView |
| 97 | android:layout_height="@dimen/download_icon_size" |
| 98 | android:layout_width="@dimen/download_icon_size" |
| 99 | android:src="@drawable/ic_download_path" |
| 100 | android:layout_gravity="center"/> |
| 101 | <EditText |
| 102 | android:id="@+id/download_filepath_selected" |
| 103 | android:layout_width="match_parent" |
| 104 | android:layout_height="wrap_content" |
| 105 | android:layout_weight="1" |
| 106 | android:layout_gravity="center" |
| 107 | android:layout_alignParentEnd="true" |
| 108 | android:editable="false" |
| 109 | android:focusableInTouchMode="false" |
| 110 | android:textColor="@color/black" |
| 111 | android:paddingStart="16dp" |
| 112 | android:paddingBottom="16dp" |
| 113 | android:textSize="18sp" /> |
| 114 | </LinearLayout> |
| 115 | |
| 116 | <LinearLayout android:layout_width="match_parent" |
| 117 | android:layout_height="72dp" |
| 118 | android:orientation="horizontal" |
| 119 | android:layout_marginBottom="8dp" |
| 120 | android:layout_gravity="center"> |
| 121 | <ImageView |
| 122 | android:layout_height="@dimen/download_icon_size" |
| 123 | android:layout_width="@dimen/download_icon_size" |
| 124 | android:src="@drawable/ic_download_size"/> |
| 125 | <LinearLayout android:layout_width="match_parent" |
| 126 | android:layout_height="wrap_content" |
| 127 | android:orientation="vertical" |
| 128 | android:paddingStart="16dp" |
| 129 | android:paddingBottom="16dp"> |
| 130 | <TextView |
| 131 | android:id="@+id/download_estimate_size_content" |
| 132 | android:layout_width="wrap_content" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:layout_gravity="center_vertical" |
| 135 | android:text="@string/download_filesize" |
| 136 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 137 | android:textColor="@color/black" |
| 138 | android:textSize="18sp" /> |
| 139 | <TextView |
| 140 | android:layout_width="match_parent" |
| 141 | android:layout_height="wrap_content" |
| 142 | android:textColor="@color/download_text_hint" |
| 143 | android:text="@string/download_size_hint" |
| 144 | android:textSize="@dimen/download_text_hint" /> |
| 145 | </LinearLayout> |
| 146 | </LinearLayout> |
| 147 | |
| 148 | <LinearLayout android:layout_width="match_parent" |
| 149 | android:layout_height="72dp" |
| 150 | android:orientation="horizontal" |
| 151 | android:layout_gravity="center"> |
| 152 | <ImageView |
| 153 | android:layout_height="@dimen/download_icon_size" |
| 154 | android:layout_width="@dimen/download_icon_size" |
| 155 | android:src="@drawable/ic_download_eta"/> |
| 156 | <LinearLayout android:layout_width="match_parent" |
| 157 | android:layout_height="wrap_content" |
| 158 | android:orientation="vertical" |
| 159 | android:paddingBottom="16dp" |
| 160 | android:paddingStart="16dp"> |
| 161 | <TextView |
| 162 | android:id="@+id/download_estimate_time_content" |
| 163 | android:layout_width="wrap_content" |
| 164 | android:layout_height="wrap_content" |
| 165 | android:layout_gravity="center_vertical" |
| 166 | android:text="@string/download_timeneeded" |
| 167 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 168 | android:textColor="@color/black" |
| 169 | android:textSize="18sp" /> |
| 170 | <TextView |
| 171 | android:layout_width="match_parent" |
| 172 | android:layout_height="wrap_content" |
| 173 | android:text="@string/download_eta_hint" |
| 174 | android:textColor="@color/download_text_hint" |
| 175 | android:textSize="@dimen/download_text_hint" /> |
| 176 | </LinearLayout> |
| 177 | </LinearLayout> |
| 178 | </LinearLayout> |
| 179 | </ScrollView> |
| 180 | </FrameLayout> |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 181 | </LinearLayout> |
| 182 | |
jrizzoli | 700a867 | 2015-10-18 00:15:07 +0200 | [diff] [blame^] | 183 | <!-- Download FAB --> |
| 184 | <LinearLayout style="?android:attr/buttonBarStyle" |
| 185 | android:layout_width="wrap_content" |
| 186 | android:layout_height="wrap_content" |
| 187 | android:orientation="horizontal" |
| 188 | android:layout_gravity="top|end" |
| 189 | android:paddingTop="144dp" |
| 190 | android:paddingEnd="16dp"> |
| 191 | <FrameLayout android:id="@+id/floating_action_button_container" |
| 192 | style="@style/floating_action_button" |
| 193 | android:background="@drawable/fab_accent"> |
| 194 | <ImageButton |
| 195 | android:id="@+id/download_start" |
| 196 | style="@style/floating_action_button_image" |
| 197 | android:background="@drawable/floating_action_button" |
| 198 | android:src="@drawable/ic_action_download" /> |
| 199 | </FrameLayout> |
| 200 | </LinearLayout> |
| 201 | |
| 202 | </FrameLayout> |