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" |
Leon Scroggins | 905250c | 2010-12-17 15:25:33 -0500 | [diff] [blame] | 25 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 26 | android:gravity="center_vertical" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 27 | android:visibility="gone" |
Leon Scroggins | 7563067 | 2011-01-13 17:56:15 -0500 | [diff] [blame] | 28 | android:paddingLeft="5dip" |
| 29 | android:paddingRight="5dip" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 30 | > |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 31 | <com.android.browser.BreadCrumbView android:id="@+id/crumbs" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 32 | android:layout_width="wrap_content" |
Leon Scroggins | 905250c | 2010-12-17 15:25:33 -0500 | [diff] [blame] | 33 | android:layout_height="?android:attr/listPreferredItemHeight" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 34 | android:layout_alignParentLeft="true" |
| 35 | android:layout_toLeftOf="@+id/add_divider" |
Leon Scroggins | 905250c | 2010-12-17 15:25:33 -0500 | [diff] [blame] | 36 | android:layout_centerVertical="true" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 37 | /> |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 38 | <TextView |
| 39 | android:id="@+id/add_new_folder" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="wrap_content" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 42 | android:layout_alignParentRight="true" |
| 43 | android:layout_alignBaseline="@+id/crumbs" |
| 44 | android:drawableLeft="@drawable/ic_add_string" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 45 | android:gravity="center_vertical" |
Leon Scroggins | 6573f9e | 2010-10-18 17:22:35 -0400 | [diff] [blame] | 46 | android:text="@string/new_folder" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 47 | android:visibility="gone" |
Leon Scroggins | 905250c | 2010-12-17 15:25:33 -0500 | [diff] [blame] | 48 | android:layout_centerVertical="true" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 49 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 50 | <ImageView android:id="@+id/add_divider" |
| 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:layout_toLeftOf="@+id/add_new_folder" |
| 54 | android:src="@drawable/crumb_divider" |
Leon Scroggins | 905250c | 2010-12-17 15:25:33 -0500 | [diff] [blame] | 55 | android:layout_centerVertical="true" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 56 | /> |
| 57 | </RelativeLayout> |
Leon Scroggins | 7563067 | 2011-01-13 17:56:15 -0500 | [diff] [blame] | 58 | <LinearLayout android:id="@+id/title_holder" |
| 59 | android:layout_width="match_parent" |
Leon Scroggins | 905250c | 2010-12-17 15:25:33 -0500 | [diff] [blame] | 60 | android:layout_height="wrap_content" |
Leon Scroggins | 7563067 | 2011-01-13 17:56:15 -0500 | [diff] [blame] | 61 | android:orientation="horizontal" |
Leon Scroggins | 905250c | 2010-12-17 15:25:33 -0500 | [diff] [blame] | 62 | android:minHeight="?android:attr/listPreferredItemHeight" |
Leon Scroggins | 7563067 | 2011-01-13 17:56:15 -0500 | [diff] [blame] | 63 | android:paddingLeft="5dip" |
| 64 | android:paddingRight="5dip" |
| 65 | > |
| 66 | <TextView android:id="@+id/fake_title" |
| 67 | android:layout_width="0dip" |
| 68 | android:layout_weight="1" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:layout_gravity="center_vertical" |
| 71 | android:gravity="center_vertical" |
Michael Kolb | 5a72f18 | 2011-01-13 20:35:06 -0800 | [diff] [blame] | 72 | android:drawableLeft="@drawable/ic_bookmark_on_holo_dark" |
Leon Scroggins | 7563067 | 2011-01-13 17:56:15 -0500 | [diff] [blame] | 73 | android:text="@string/bookmark_this_page" |
| 74 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 75 | <ImageView android:id="@+id/remove_divider" |
| 76 | android:layout_width="wrap_content" |
| 77 | android:layout_height="wrap_content" |
| 78 | android:layout_gravity="center_vertical" |
| 79 | android:src="@drawable/crumb_divider" |
| 80 | android:layout_centerVertical="true" |
| 81 | android:visibility="gone" |
| 82 | /> |
| 83 | <TextView android:id="@+id/remove" |
| 84 | android:layout_width="wrap_content" |
| 85 | android:layout_height="wrap_content" |
| 86 | android:layout_gravity="center_vertical" |
| 87 | android:gravity="center_vertical" |
| 88 | android:text="@string/remove" |
Leon Scroggins | e7459bd | 2011-01-19 14:10:33 -0500 | [diff] [blame] | 89 | android:drawableLeft="@drawable/trashcan" |
Leon Scroggins | 7563067 | 2011-01-13 17:56:15 -0500 | [diff] [blame] | 90 | android:visibility="gone" |
| 91 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 92 | </LinearLayout> |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 93 | <View android:id="@+id/titleDivider" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 94 | android:layout_width="match_parent" |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 95 | android:layout_height="1dip" |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 96 | android:gravity="fill_horizontal" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 97 | android:background="?android:attr/colorForeground" |
| 98 | /> |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 99 | |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 100 | <TableLayout android:id="@+id/default_view" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 101 | android:layout_width="match_parent" |
Leon Scroggins | 2ab6d25 | 2011-01-05 18:02:41 -0500 | [diff] [blame] | 102 | android:layout_height="@dimen/folder_selector_height" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 103 | android:layout_weight="1" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 104 | android:stretchColumns="1" |
Leon Scroggins | 664f6cc | 2010-11-30 13:51:03 -0500 | [diff] [blame] | 105 | android:shrinkColumns="1" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 106 | android:paddingTop="20dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 107 | android:paddingLeft="20dip" |
| 108 | android:paddingRight="20dip" > |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 109 | <TableRow> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 110 | <TextView |
| 111 | android:id="@+id/titleText" |
| 112 | android:layout_height="wrap_content" |
| 113 | android:layout_width="wrap_content" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 114 | android:layout_marginBottom="40dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 115 | android:text="@string/name" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 116 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 117 | |
| 118 | <EditText |
| 119 | android:id="@+id/title" |
| 120 | android:layout_height="wrap_content" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 121 | android:layout_width="wrap_content" |
| 122 | android:layout_marginRight="20dip" |
| 123 | android:layout_marginLeft="20dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 124 | android:gravity="fill_horizontal" |
| 125 | android:inputType="textCapSentences" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 126 | android:ellipsize="end" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 127 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 128 | </TableRow> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 129 | |
John Reck | c849081 | 2010-11-22 14:15:36 -0800 | [diff] [blame] | 130 | <TableRow |
| 131 | android:id="@+id/row_address"> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 132 | <TextView |
| 133 | android:id="@+id/addressText" |
| 134 | android:layout_height="wrap_content" |
| 135 | android:layout_width="wrap_content" |
| 136 | android:text="@string/location" |
| 137 | android:gravity="left" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 138 | android:layout_marginBottom="40dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 139 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 140 | |
| 141 | <EditText |
| 142 | android:id="@+id/address" |
| 143 | android:layout_height="wrap_content" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 144 | android:layout_width="wrap_content" |
| 145 | android:layout_marginRight="20dip" |
| 146 | android:layout_marginLeft="20dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 147 | android:hint="@string/http" |
| 148 | android:gravity="fill_horizontal" |
| 149 | android:inputType="textUri" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 150 | android:ellipsize="end" |
| 151 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 152 | </TableRow> |
| 153 | <TableRow> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 154 | <TextView |
| 155 | android:id="@+id/add_to" |
| 156 | android:layout_height="wrap_content" |
| 157 | android:layout_width="wrap_content" |
| 158 | android:text="@string/containing_folder" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 159 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 160 | |
Leon Scroggins | dd13bad | 2011-01-06 20:25:54 -0500 | [diff] [blame] | 161 | <view class="com.android.browser.addbookmark.FolderSpinner" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 162 | android:id="@+id/folder" |
| 163 | android:layout_height="wrap_content" |
Leon Scroggins | dd13bad | 2011-01-06 20:25:54 -0500 | [diff] [blame] | 164 | android:layout_width="wrap_content" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 165 | android:layout_marginRight="20dip" |
| 166 | android:layout_marginLeft="20dip" |
Leon Scroggins | dd13bad | 2011-01-06 20:25:54 -0500 | [diff] [blame] | 167 | android:spinnerMode="dropdown" |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 168 | android:gravity="center_vertical" |
Leon Scroggins | dd13bad | 2011-01-06 20:25:54 -0500 | [diff] [blame] | 169 | /> |
Leon Scroggins | 0208194 | 2010-11-01 17:52:42 -0400 | [diff] [blame] | 170 | </TableRow> |
| 171 | </TableLayout> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 172 | |
| 173 | <LinearLayout android:id="@+id/folder_selector" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 174 | android:layout_width="match_parent" |
| 175 | android:layout_height="@dimen/folder_selector_height" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 176 | android:orientation="vertical" |
| 177 | android:visibility="gone" |
| 178 | > |
| 179 | |
Leon Scroggins | 162f835 | 2010-10-18 15:02:44 -0400 | [diff] [blame] | 180 | <view class="com.android.browser.AddBookmarkPage$CustomListView" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 181 | android:id="@+id/list" |
Michael Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 182 | android:layout_marginLeft="16dip" |
| 183 | android:layout_marginRight="16dip" |
| 184 | android:layout_width="match_parent" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 185 | android:layout_height="wrap_content" |
| 186 | /> |
Leon Scroggins | 6573f9e | 2010-10-18 17:22:35 -0400 | [diff] [blame] | 187 | <TextView |
| 188 | android:id="@+id/empty" |
| 189 | android:layout_width="wrap_content" |
| 190 | android:layout_height="wrap_content" |
| 191 | android:visibility="gone" |
| 192 | android:layout_marginLeft="16dip" |
| 193 | android:layout_marginTop="16dip" |
| 194 | android:text="@string/no_subfolders" |
| 195 | android:textStyle="italic" |
| 196 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 197 | </LinearLayout> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 198 | |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 199 | <LinearLayout |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 200 | android:layout_width="match_parent" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 201 | android:layout_height="wrap_content" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 202 | android:minHeight="54dip" |
| 203 | android:orientation="horizontal" |
| 204 | android:paddingTop="4dip" |
| 205 | android:paddingLeft="2dip" |
| 206 | android:paddingRight="2dip" > |
| 207 | <Button android:id="@+id/OK" |
| 208 | android:text="@string/save" |
| 209 | android:layout_width="0dip" |
| 210 | android:layout_gravity="left" |
| 211 | android:layout_weight="1" |
| 212 | android:maxLines="2" |
| 213 | android:layout_height="wrap_content" /> |
| 214 | <Button android:id="@+id/cancel" |
| 215 | android:text="@string/do_not_save" |
| 216 | android:layout_width="0dip" |
| 217 | android:layout_gravity="right" |
| 218 | android:layout_weight="1" |
| 219 | android:maxLines="2" |
| 220 | android:layout_height="wrap_content" /> |
| 221 | </LinearLayout> |
| 222 | |
| 223 | </LinearLayout> |