The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2007 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 18 | android:layout_width="@dimen/add_bookmark_width" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 19 | android:layout_height="wrap_content" |
| 20 | android:orientation="vertical" |
| 21 | > |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 22 | <RelativeLayout android:id="@+id/crumb_holder" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="wrap_content" |
| 25 | android:visibility="gone" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 26 | > |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 27 | <com.android.browser.BreadCrumbView android:id="@+id/crumbs" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 28 | android:layout_width="wrap_content" |
| 29 | android:layout_height="wrap_content" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 30 | android:layout_alignParentLeft="true" |
| 31 | android:layout_toLeftOf="@+id/add_divider" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 32 | /> |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 33 | <TextView |
| 34 | android:id="@+id/add_new_folder" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 35 | android:layout_width="wrap_content" |
| 36 | android:layout_height="wrap_content" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 37 | android:layout_alignParentRight="true" |
| 38 | android:layout_alignBaseline="@+id/crumbs" |
| 39 | android:drawableLeft="@drawable/ic_add_string" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 40 | android:gravity="center_vertical" |
Leon Scroggins | 6573f9e | 2010-10-18 17:22:35 -0400 | [diff] [blame] | 41 | android:text="@string/new_folder" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 42 | android:visibility="gone" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 43 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 44 | <ImageView android:id="@+id/add_divider" |
| 45 | android:layout_width="wrap_content" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:layout_toLeftOf="@+id/add_new_folder" |
| 48 | android:src="@drawable/crumb_divider" |
| 49 | /> |
| 50 | </RelativeLayout> |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 51 | <TextView android:id="@+id/fake_title" |
| 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:drawableLeft="@drawable/ic_list_bookmark" |
| 55 | android:text="@string/bookmark_this_page" |
| 56 | android:layout_gravity="left" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 57 | android:gravity="center_vertical" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 58 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 59 | |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 60 | <View android:id="@+id/titleDivider" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 61 | android:layout_width="match_parent" |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 62 | android:layout_height="1dip" |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 63 | android:gravity="fill_horizontal" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 64 | android:background="?android:attr/colorForeground" |
| 65 | /> |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 66 | |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 67 | <TableLayout android:id="@+id/default_view" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 68 | android:layout_width="match_parent" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 69 | android:layout_height="wrap_content" |
| 70 | android:layout_weight="1" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 71 | android:stretchColumns="1" |
| 72 | android:paddingTop="20dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 73 | android:paddingLeft="20dip" |
| 74 | android:paddingRight="20dip" > |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 75 | <TableRow> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 76 | <TextView |
| 77 | android:id="@+id/titleText" |
| 78 | android:layout_height="wrap_content" |
| 79 | android:layout_width="wrap_content" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 80 | android:layout_marginBottom="40dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 81 | android:text="@string/name" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 82 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 83 | |
| 84 | <EditText |
| 85 | android:id="@+id/title" |
| 86 | android:layout_height="wrap_content" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 87 | android:layout_width="wrap_content" |
| 88 | android:layout_marginRight="20dip" |
| 89 | android:layout_marginLeft="20dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 90 | android:gravity="fill_horizontal" |
| 91 | android:inputType="textCapSentences" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 92 | android:ellipsize="end" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 93 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 94 | </TableRow> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 95 | |
John Reck | c849081 | 2010-11-22 14:15:36 -0800 | [diff] [blame^] | 96 | <TableRow |
| 97 | android:id="@+id/row_address"> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 98 | <TextView |
| 99 | android:id="@+id/addressText" |
| 100 | android:layout_height="wrap_content" |
| 101 | android:layout_width="wrap_content" |
| 102 | android:text="@string/location" |
| 103 | android:gravity="left" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 104 | android:layout_marginBottom="40dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 105 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 106 | |
| 107 | <EditText |
| 108 | android:id="@+id/address" |
| 109 | android:layout_height="wrap_content" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 110 | android:layout_width="wrap_content" |
| 111 | android:layout_marginRight="20dip" |
| 112 | android:layout_marginLeft="20dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 113 | android:hint="@string/http" |
| 114 | android:gravity="fill_horizontal" |
| 115 | android:inputType="textUri" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 116 | android:ellipsize="end" |
| 117 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 118 | </TableRow> |
| 119 | <TableRow> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 120 | <TextView |
| 121 | android:id="@+id/add_to" |
| 122 | android:layout_height="wrap_content" |
| 123 | android:layout_width="wrap_content" |
| 124 | android:text="@string/containing_folder" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 125 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 126 | |
| 127 | <TextView |
| 128 | android:id="@+id/folder" |
| 129 | android:layout_height="wrap_content" |
| 130 | android:layout_width="250dip" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 131 | android:layout_marginRight="20dip" |
| 132 | android:layout_marginLeft="20dip" |
| 133 | android:gravity="center_vertical" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 134 | android:singleLine="true" |
| 135 | android:ellipsize="start" |
| 136 | android:text="@string/bookmarks" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 137 | android:drawableLeft="@drawable/ic_menu_bookmarks" |
| 138 | android:layout_marginBottom="40dip" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 139 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 140 | </TableRow> |
| 141 | </TableLayout> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 142 | |
| 143 | <LinearLayout android:id="@+id/folder_selector" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 144 | android:layout_width="match_parent" |
| 145 | android:layout_height="@dimen/folder_selector_height" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 146 | android:orientation="vertical" |
| 147 | android:visibility="gone" |
| 148 | > |
| 149 | |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 150 | <ListView |
| 151 | android:id="@+id/list" |
Michael Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 152 | android:layout_marginLeft="16dip" |
| 153 | android:layout_marginRight="16dip" |
| 154 | android:layout_width="match_parent" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 155 | android:layout_height="wrap_content" |
| 156 | /> |
Leon Scroggins | 6573f9e | 2010-10-18 17:22:35 -0400 | [diff] [blame] | 157 | <TextView |
| 158 | android:id="@+id/empty" |
| 159 | android:layout_width="wrap_content" |
| 160 | android:layout_height="wrap_content" |
| 161 | android:visibility="gone" |
| 162 | android:layout_marginLeft="16dip" |
| 163 | android:layout_marginTop="16dip" |
| 164 | android:text="@string/no_subfolders" |
| 165 | android:textStyle="italic" |
| 166 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 167 | <EditText |
| 168 | android:id="@+id/folder_namer" |
Michael Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 169 | android:layout_marginLeft="16dip" |
| 170 | android:layout_marginRight="16dip" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 171 | android:layout_width="match_parent" |
| 172 | android:layout_height="wrap_content" |
| 173 | android:visibility="gone" |
| 174 | /> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 175 | </LinearLayout> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 176 | |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 177 | <LinearLayout |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 178 | android:layout_width="match_parent" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 179 | android:layout_height="wrap_content" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 180 | android:minHeight="54dip" |
| 181 | android:orientation="horizontal" |
| 182 | android:paddingTop="4dip" |
| 183 | android:paddingLeft="2dip" |
| 184 | android:paddingRight="2dip" > |
| 185 | <Button android:id="@+id/OK" |
| 186 | android:text="@string/save" |
| 187 | android:layout_width="0dip" |
| 188 | android:layout_gravity="left" |
| 189 | android:layout_weight="1" |
| 190 | android:maxLines="2" |
| 191 | android:layout_height="wrap_content" /> |
| 192 | <Button android:id="@+id/cancel" |
| 193 | android:text="@string/do_not_save" |
| 194 | android:layout_width="0dip" |
| 195 | android:layout_gravity="right" |
| 196 | android:layout_weight="1" |
| 197 | android:maxLines="2" |
| 198 | android:layout_height="wrap_content" /> |
| 199 | </LinearLayout> |
| 200 | |
| 201 | </LinearLayout> |