blob: ad473630f1a1716b4e30cc28060a52d302c5cb6c [file] [log] [blame]
luxiaol62677b02013-07-22 07:54:49 +08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (c) 2013, The Linux Foundation. All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are
7 met:
8 * Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above
11 copyright notice, this list of conditions and the following
12 disclaimer in the documentation and/or other materials provided
13 with the distribution.
14 * Neither the name of The Linux Foundation nor the names of its
15 contributors may be used to endorse or promote products derived
16 from this software without specific prior written permission.
17
18 THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
19 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
20 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
21 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
22 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
25 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
28 IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-->
30<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
31 android:layout_width="match_parent"
32 android:layout_height="match_parent"
33 android:divider="?android:attr/dividerHorizontal"
34 android:orientation="vertical"
35 android:showDividers="middle" >
36 <LinearLayout android:id="@+id/title_holder"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:orientation="horizontal"
40 android:paddingLeft="5dip"
41 android:paddingRight="5dip"
42 android:minHeight="?android:attr/listPreferredItemHeightSmall"
43 >
44 <TextView android:id="@+id/download_settings_title"
45 android:layout_width="0dip"
46 android:layout_weight="1"
47 android:layout_height="wrap_content"
48 android:layout_gravity="center_vertical"
49 android:gravity="center_vertical"
50 android:drawableLeft="@drawable/ic_bookmark_on_holo_dark"
51 android:text="@string/download_settings_title"
52 android:textAppearance="?android:attr/textAppearanceMedium" />
53
54 </LinearLayout>
55
56 <FrameLayout
57 android:layout_width="match_parent"
58 android:layout_height="0dip"
59 android:layout_weight="1" >
60
61 <ScrollView
62 android:layout_width="match_parent"
63 android:layout_height="match_parent" >
64
65 <TableLayout
66 android:id="@+id/download_table_layout"
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
69 android:paddingLeft="20dip"
70 android:paddingRight="20dip"
71 android:paddingTop="10dip"
72 android:shrinkColumns="1"
73 android:stretchColumns="1" >
74
75 <TableRow android:layout_marginBottom="10dip" >
76
77 <TextView
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_gravity="center_vertical"
81 android:layout_weight="1"
82 android:text="@string/download_edit_filename_label"
83 android:textAppearance="?android:attr/textAppearanceMedium"
84 android:textSize="18sp" >
85 </TextView>
86
87 <EditText
88 android:id="@+id/download_filename_edit"
89 android:layout_width="260dip"
90 android:layout_height="wrap_content"
91 android:layout_gravity="center_vertical"
92 android:layout_weight="1"
93 android:inputType="textCapSentences"
94 android:selectAllOnFocus="true"
95 android:textAppearance="?android:attr/textAppearanceMedium"
96 android:textSize="18sp" >
97 </EditText>
98 </TableRow>
99
100 <TableRow
101 android:layout_marginBottom="10dip" >
102
103 <TextView
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:layout_gravity="center_vertical"
107 android:layout_weight="1"
108 android:text="@string/download_filepath_label"
109 android:textAppearance="?android:attr/textAppearanceMedium"
110 android:textSize="18sp" >
111 </TextView>
112
113 <EditText
114 android:id="@+id/download_filepath_selected"
115 android:layout_width="260dip"
116 android:layout_height="wrap_content"
117 android:layout_weight="1"
118 android:editable="false"
119 android:ellipsize="end"
120 android:focusableInTouchMode="false"
121 android:textAppearance="?android:attr/textAppearanceMedium"
122 android:textColor="@android:color/holo_blue_light"
123 android:textSize="18sp" >
124 </EditText>
125 </TableRow>
126
127 <TableRow
128 android:layout_marginBottom="10dip" >
129
130 <TextView
131 android:layout_width="wrap_content"
132 android:layout_height="wrap_content"
133 android:layout_gravity="center_vertical"
134 android:text="@string/download_filesize"
135 android:textAppearance="?android:attr/textAppearanceMedium"
136 android:textSize="18sp" >
137 </TextView>
138 <TextView
139 android:id="@+id/download_estimate_size_content"
140 android:layout_width="wrap_content"
141 android:layout_height="wrap_content"
142 android:layout_gravity="center_vertical"
143 android:text="@string/download_filesize"
144 android:paddingLeft="10dip"
145 android:textAppearance="?android:attr/textAppearanceMedium"
146 android:textSize="18sp" >
147 </TextView>
148 </TableRow>
149
150 <TableRow
151 android:layout_marginBottom="10dip" >
152
153 <TextView
154 android:layout_width="wrap_content"
155 android:layout_height="wrap_content"
156 android:layout_gravity="center_vertical"
157 android:text="@string/download_timeneeded"
158 android:textAppearance="?android:attr/textAppearanceMedium"
159 android:textSize="18sp" >
160 </TextView>
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:paddingLeft="10dip"
167 android:text="@string/download_timeneeded"
168 android:textAppearance="?android:attr/textAppearanceMedium"
169 android:textSize="18sp" >
170 </TextView>
171 </TableRow>
172 </TableLayout>
173 </ScrollView>
174 </FrameLayout>
175
176 <LinearLayout
177 style="?android:attr/buttonBarStyle"
178 android:layout_width="match_parent"
179 android:layout_height="wrap_content"
180 android:orientation="horizontal" >
181
182 <Button
183 android:id="@+id/download_cancle"
184 style="?android:attr/buttonBarButtonStyle"
185 android:layout_width="0dip"
186 android:layout_height="wrap_content"
187 android:layout_gravity="right"
188 android:layout_weight="1"
189 android:maxLines="1"
190 android:text="@string/download_cancel" />
191
192 <Button
193 android:id="@+id/download_start"
194 style="?android:attr/buttonBarButtonStyle"
195 android:layout_width="0dip"
196 android:layout_height="wrap_content"
197 android:layout_gravity="left"
198 android:layout_weight="1"
199 android:maxLines="1"
200 android:text="@string/download_start" />
201 </LinearLayout>
202
203</LinearLayout>