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