luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 1 | <?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" |
luxiaol | 62677b0 | 2013-07-22 07:54:49 +0800 | [diff] [blame] | 50 | android:text="@string/download_settings_title" |
| 51 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 52 | |
| 53 | </LinearLayout> |
| 54 | |
| 55 | <FrameLayout |
| 56 | android:layout_width="match_parent" |
| 57 | android:layout_height="0dip" |
| 58 | android:layout_weight="1" > |
| 59 | |
| 60 | <ScrollView |
| 61 | android:layout_width="match_parent" |
| 62 | android:layout_height="match_parent" > |
| 63 | |
| 64 | <TableLayout |
| 65 | android:id="@+id/download_table_layout" |
| 66 | android:layout_width="match_parent" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:paddingLeft="20dip" |
| 69 | android:paddingRight="20dip" |
| 70 | android:paddingTop="10dip" |
| 71 | android:shrinkColumns="1" |
| 72 | android:stretchColumns="1" > |
| 73 | |
| 74 | <TableRow android:layout_marginBottom="10dip" > |
| 75 | |
| 76 | <TextView |
| 77 | android:layout_width="wrap_content" |
| 78 | android:layout_height="wrap_content" |
| 79 | android:layout_gravity="center_vertical" |
| 80 | android:layout_weight="1" |
| 81 | android:text="@string/download_edit_filename_label" |
| 82 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 83 | android:textSize="18sp" > |
| 84 | </TextView> |
| 85 | |
| 86 | <EditText |
| 87 | android:id="@+id/download_filename_edit" |
| 88 | android:layout_width="260dip" |
| 89 | android:layout_height="wrap_content" |
| 90 | android:layout_gravity="center_vertical" |
| 91 | android:layout_weight="1" |
| 92 | android:inputType="textCapSentences" |
| 93 | android:selectAllOnFocus="true" |
| 94 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 95 | android:textSize="18sp" > |
| 96 | </EditText> |
| 97 | </TableRow> |
| 98 | |
| 99 | <TableRow |
| 100 | android:layout_marginBottom="10dip" > |
| 101 | |
| 102 | <TextView |
| 103 | android:layout_width="wrap_content" |
| 104 | android:layout_height="wrap_content" |
| 105 | android:layout_gravity="center_vertical" |
| 106 | android:layout_weight="1" |
| 107 | android:text="@string/download_filepath_label" |
| 108 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 109 | android:textSize="18sp" > |
| 110 | </TextView> |
| 111 | |
| 112 | <EditText |
| 113 | android:id="@+id/download_filepath_selected" |
| 114 | android:layout_width="260dip" |
| 115 | android:layout_height="wrap_content" |
| 116 | android:layout_weight="1" |
| 117 | android:editable="false" |
| 118 | android:ellipsize="end" |
| 119 | android:focusableInTouchMode="false" |
| 120 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 121 | android:textColor="@android:color/holo_blue_light" |
| 122 | android:textSize="18sp" > |
| 123 | </EditText> |
| 124 | </TableRow> |
| 125 | |
| 126 | <TableRow |
| 127 | android:layout_marginBottom="10dip" > |
| 128 | |
| 129 | <TextView |
| 130 | android:layout_width="wrap_content" |
| 131 | android:layout_height="wrap_content" |
| 132 | android:layout_gravity="center_vertical" |
| 133 | android:text="@string/download_filesize" |
| 134 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 135 | android:textSize="18sp" > |
| 136 | </TextView> |
| 137 | <TextView |
| 138 | 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:paddingLeft="10dip" |
| 144 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 145 | android:textSize="18sp" > |
| 146 | </TextView> |
| 147 | </TableRow> |
| 148 | |
| 149 | <TableRow |
| 150 | android:layout_marginBottom="10dip" > |
| 151 | |
| 152 | <TextView |
| 153 | android:layout_width="wrap_content" |
| 154 | android:layout_height="wrap_content" |
| 155 | android:layout_gravity="center_vertical" |
| 156 | android:text="@string/download_timeneeded" |
| 157 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 158 | android:textSize="18sp" > |
| 159 | </TextView> |
| 160 | <TextView |
| 161 | android:id="@+id/download_estimate_time_content" |
| 162 | android:layout_width="wrap_content" |
| 163 | android:layout_height="wrap_content" |
| 164 | android:layout_gravity="center_vertical" |
| 165 | android:paddingLeft="10dip" |
| 166 | android:text="@string/download_timeneeded" |
| 167 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 168 | android:textSize="18sp" > |
| 169 | </TextView> |
| 170 | </TableRow> |
| 171 | </TableLayout> |
| 172 | </ScrollView> |
| 173 | </FrameLayout> |
| 174 | |
| 175 | <LinearLayout |
| 176 | style="?android:attr/buttonBarStyle" |
| 177 | android:layout_width="match_parent" |
| 178 | android:layout_height="wrap_content" |
| 179 | android:orientation="horizontal" > |
| 180 | |
| 181 | <Button |
| 182 | android:id="@+id/download_cancle" |
| 183 | style="?android:attr/buttonBarButtonStyle" |
| 184 | android:layout_width="0dip" |
| 185 | android:layout_height="wrap_content" |
| 186 | android:layout_gravity="right" |
| 187 | android:layout_weight="1" |
| 188 | android:maxLines="1" |
| 189 | android:text="@string/download_cancel" /> |
| 190 | |
| 191 | <Button |
| 192 | android:id="@+id/download_start" |
| 193 | style="?android:attr/buttonBarButtonStyle" |
| 194 | android:layout_width="0dip" |
| 195 | android:layout_height="wrap_content" |
| 196 | android:layout_gravity="left" |
| 197 | android:layout_weight="1" |
| 198 | android:maxLines="1" |
| 199 | android:text="@string/download_start" /> |
| 200 | </LinearLayout> |
| 201 | |
| 202 | </LinearLayout> |