blob: 374f51c67a712b72d11d7ddf73b9f64061f894d8 [file] [log] [blame]
luxiaol62677b02013-07-22 07:54:49 +08001<?xml version="1.0" encoding="utf-8"?>
2<!--
jrizzoli700a8672015-10-18 00:15:07 +02003 Copyright (C) 2015 The CyanogenMod Project
luxiaol62677b02013-07-22 07:54:49 +08004
jrizzoli700a8672015-10-18 00:15:07 +02005 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
luxiaol62677b02013-07-22 07:54:49 +08008
jrizzoli700a8672015-10-18 00:15:07 +02009 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.
luxiaol62677b02013-07-22 07:54:49 +080016-->
jrizzoli700a8672015-10-18 00:15:07 +020017<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
luxiaol62677b02013-07-22 07:54:49 +080018 android:layout_width="match_parent"
19 android:layout_height="match_parent"
jrizzoli700a8672015-10-18 00:15:07 +020020 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"
luxiaol62677b02013-07-22 07:54:49 +080029 android:layout_height="wrap_content"
jrizzoli700a8672015-10-18 00:15:07 +020030 android:background="@color/accent"
31 android:elevation="5dp">
luxiaol62677b02013-07-22 07:54:49 +080032
jrizzoli700a8672015-10-18 00:15:07 +020033 <LinearLayout android:id="@+id/actions_download_holder"
luxiaol62677b02013-07-22 07:54:49 +080034 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
jrizzoli700a8672015-10-18 00:15:07 +020036 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"/>
luxiaol62677b02013-07-22 07:54:49 +080049
jrizzoli700a8672015-10-18 00:15:07 +020050 <LinearLayout android:layout_width="match_parent"
luxiaol62677b02013-07-22 07:54:49 +080051 android:layout_height="wrap_content"
jrizzoli700a8672015-10-18 00:15:07 +020052 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>
luxiaol62677b02013-07-22 07:54:49 +080067
jrizzoli700a8672015-10-18 00:15:07 +020068 </LinearLayout>
luxiaol62677b02013-07-22 07:54:49 +080069
jrizzoli700a8672015-10-18 00:15:07 +020070 </LinearLayout>
luxiaol62677b02013-07-22 07:54:49 +080071
jrizzoli700a8672015-10-18 00:15:07 +020072 <FrameLayout
73 android:layout_width="match_parent"
74 android:layout_height="0dip"
luxiaol62677b02013-07-22 07:54:49 +080075 android:layout_weight="1"
jrizzoli700a8672015-10-18 00:15:07 +020076 android:paddingTop="24dp">
luxiaol62677b02013-07-22 07:54:49 +080077
jrizzoli700a8672015-10-18 00:15:07 +020078 <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"
jrizzoli38a81f62015-10-25 18:22:38 +010092 android:layout_height="wrap_content"
jrizzoli700a8672015-10-18 00:15:07 +020093 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"
jrizzoli38a81f62015-10-25 18:22:38 +0100117 android:layout_height="wrap_content"
jrizzoli700a8672015-10-18 00:15:07 +0200118 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"
jrizzoli38a81f62015-10-25 18:22:38 +0100124 android:src="@drawable/ic_download_size"
125 android:gravity="center"/>
jrizzoli700a8672015-10-18 00:15:07 +0200126 <LinearLayout android:layout_width="match_parent"
127 android:layout_height="wrap_content"
128 android:orientation="vertical"
129 android:paddingStart="16dp"
130 android:paddingBottom="16dp">
131 <TextView
jrizzoli38a81f62015-10-25 18:22:38 +0100132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:textColor="@color/black"
135 android:text="@string/download_size_hint"
136 android:textSize="18sp" />
137 <TextView
jrizzoli700a8672015-10-18 00:15:07 +0200138 android:id="@+id/download_estimate_size_content"
139 android:layout_width="wrap_content"
140 android:layout_height="wrap_content"
141 android:layout_gravity="center_vertical"
142 android:text="@string/download_filesize"
143 android:textAppearance="?android:attr/textAppearanceMedium"
jrizzoli700a8672015-10-18 00:15:07 +0200144 android:textColor="@color/download_text_hint"
jrizzoli700a8672015-10-18 00:15:07 +0200145 android:textSize="@dimen/download_text_hint" />
146 </LinearLayout>
147 </LinearLayout>
148
149 <LinearLayout android:layout_width="match_parent"
jrizzoli38a81f62015-10-25 18:22:38 +0100150 android:layout_height="wrap_content"
jrizzoli700a8672015-10-18 00:15:07 +0200151 android:orientation="horizontal"
152 android:layout_gravity="center">
153 <ImageView
154 android:layout_height="@dimen/download_icon_size"
155 android:layout_width="@dimen/download_icon_size"
jrizzoli38a81f62015-10-25 18:22:38 +0100156 android:src="@drawable/ic_download_eta"
157 android:gravity="center"/>
jrizzoli700a8672015-10-18 00:15:07 +0200158 <LinearLayout android:layout_width="match_parent"
159 android:layout_height="wrap_content"
160 android:orientation="vertical"
161 android:paddingBottom="16dp"
162 android:paddingStart="16dp">
163 <TextView
jrizzoli38a81f62015-10-25 18:22:38 +0100164 android:layout_width="match_parent"
165 android:layout_height="wrap_content"
166 android:text="@string/download_eta_hint"
167 android:textColor="@color/black"
168 android:textSize="18sp" />
169 <TextView
jrizzoli700a8672015-10-18 00:15:07 +0200170 android:id="@+id/download_estimate_time_content"
171 android:layout_width="wrap_content"
172 android:layout_height="wrap_content"
173 android:layout_gravity="center_vertical"
174 android:text="@string/download_timeneeded"
175 android:textAppearance="?android:attr/textAppearanceMedium"
jrizzoli700a8672015-10-18 00:15:07 +0200176 android:textColor="@color/download_text_hint"
177 android:textSize="@dimen/download_text_hint" />
178 </LinearLayout>
179 </LinearLayout>
180 </LinearLayout>
181 </ScrollView>
182 </FrameLayout>
luxiaol62677b02013-07-22 07:54:49 +0800183 </LinearLayout>
184
jrizzoli700a8672015-10-18 00:15:07 +0200185 <!-- Download FAB -->
186 <LinearLayout style="?android:attr/buttonBarStyle"
187 android:layout_width="wrap_content"
188 android:layout_height="wrap_content"
189 android:orientation="horizontal"
190 android:layout_gravity="top|end"
191 android:paddingTop="144dp"
192 android:paddingEnd="16dp">
193 <FrameLayout android:id="@+id/floating_action_button_container"
194 style="@style/floating_action_button"
195 android:background="@drawable/fab_accent">
196 <ImageButton
197 android:id="@+id/download_start"
198 style="@style/floating_action_button_image"
199 android:background="@drawable/floating_action_button"
200 android:src="@drawable/ic_action_download" />
201 </FrameLayout>
202 </LinearLayout>
203
204</FrameLayout>