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 | <!-- FIXME: The drawable does not line up properly. We may also want a |
| 34 | different asset in the final version. --> |
| 35 | <TextView |
| 36 | android:id="@+id/add_new_folder" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 37 | android:layout_width="wrap_content" |
| 38 | android:layout_height="wrap_content" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 39 | android:layout_alignParentRight="true" |
| 40 | android:layout_alignBaseline="@+id/crumbs" |
| 41 | android:drawableLeft="@drawable/ic_add_string" |
Leon Scroggins | 6573f9e | 2010-10-18 17:22:35 -0400 | [diff] [blame] | 42 | android:text="@string/new_folder" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 43 | android:visibility="gone" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 44 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 45 | <ImageView android:id="@+id/add_divider" |
| 46 | android:layout_width="wrap_content" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:layout_toLeftOf="@+id/add_new_folder" |
| 49 | android:src="@drawable/crumb_divider" |
| 50 | /> |
| 51 | </RelativeLayout> |
| 52 | <!-- FIXME: The drawable does not line up properly. We may also want a |
| 53 | different asset in the final version. --> |
| 54 | <TextView android:id="@+id/fake_title" |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:drawableLeft="@drawable/ic_list_bookmark" |
| 58 | android:text="@string/bookmark_this_page" |
| 59 | android:layout_gravity="left" |
| 60 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 61 | |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 62 | <View android:id="@+id/titleDivider" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 63 | android:layout_width="match_parent" |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 64 | android:layout_height="1dip" |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 65 | android:gravity="fill_horizontal" |
Leon Scroggins | 7e5f735 | 2010-10-18 13:25:31 -0400 | [diff] [blame] | 66 | android:background="?android:attr/colorForeground" |
| 67 | /> |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 68 | |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 69 | <!-- XXX Use a TableLayout instead --> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 70 | <RelativeLayout android:id="@+id/default_view" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 71 | android:layout_width="match_parent" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 72 | android:layout_height="wrap_content" |
| 73 | android:layout_weight="1" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 74 | android:paddingTop="5dip" |
| 75 | android:paddingBottom="13dip" |
| 76 | android:paddingLeft="20dip" |
| 77 | android:paddingRight="20dip" > |
| 78 | |
| 79 | <TextView |
| 80 | android:id="@+id/titleText" |
| 81 | android:layout_height="wrap_content" |
| 82 | android:layout_width="wrap_content" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 83 | android:layout_alignParentTop="true" |
| 84 | android:layout_marginRight="50dip" |
| 85 | android:layout_marginBottom="40dip" |
| 86 | android:layout_marginTop="40dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 87 | android:text="@string/name" |
| 88 | android:gravity="left" |
| 89 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 90 | |
| 91 | <EditText |
| 92 | android:id="@+id/title" |
| 93 | android:layout_height="wrap_content" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 94 | android:layout_width="325dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 95 | android:gravity="fill_horizontal" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 96 | android:layout_alignBaseline="@+id/titleText" |
| 97 | android:layout_toRightOf="@+id/titleText" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 98 | android:inputType="textCapSentences" |
| 99 | android:selectAllOnFocus="true" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 100 | android:ellipsize="end" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 101 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 102 | |
| 103 | |
| 104 | |
| 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_below="@+id/titleText" |
| 112 | android:layout_alignLeft="@+id/titleText" |
| 113 | android:layout_marginBottom="40dip" |
| 114 | android:layout_marginRight="20dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 115 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 116 | |
| 117 | <EditText |
| 118 | android:id="@+id/address" |
| 119 | android:layout_height="wrap_content" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 120 | android:layout_width="325dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 121 | android:hint="@string/http" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 122 | android:layout_alignBaseline="@+id/addressText" |
| 123 | android:layout_alignLeft="@+id/title" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 124 | android:gravity="fill_horizontal" |
| 125 | android:inputType="textUri" |
| 126 | android:selectAllOnFocus="true" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 127 | android:ellipsize="end" |
| 128 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 129 | |
| 130 | <TextView |
| 131 | android:id="@+id/add_to" |
| 132 | android:layout_height="wrap_content" |
| 133 | android:layout_width="wrap_content" |
| 134 | android:text="@string/containing_folder" |
| 135 | android:layout_below="@+id/addressText" |
| 136 | android:layout_alignLeft="@+id/titleText" |
| 137 | android:layout_marginRight="20dip" |
| 138 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 139 | |
| 140 | <TextView |
| 141 | android:id="@+id/folder" |
| 142 | android:layout_height="wrap_content" |
| 143 | android:layout_width="250dip" |
| 144 | android:layout_alignLeft="@+id/title" |
| 145 | android:layout_alignBaseline="@+id/add_to" |
| 146 | android:singleLine="true" |
| 147 | android:ellipsize="start" |
| 148 | android:text="@string/bookmarks" |
| 149 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 150 | |
| 151 | </RelativeLayout> |
| 152 | |
| 153 | <LinearLayout android:id="@+id/folder_selector" |
Leon Scroggins | 74dbe01 | 2010-10-15 10:54:27 -0400 | [diff] [blame] | 154 | android:layout_width="match_parent" |
| 155 | android:layout_height="@dimen/folder_selector_height" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 156 | android:orientation="vertical" |
| 157 | android:visibility="gone" |
| 158 | > |
| 159 | |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 160 | <ListView |
| 161 | android:id="@+id/list" |
Michael Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 162 | android:layout_marginLeft="16dip" |
| 163 | android:layout_marginRight="16dip" |
| 164 | android:layout_width="match_parent" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 165 | android:layout_height="wrap_content" |
| 166 | /> |
Leon Scroggins | 6573f9e | 2010-10-18 17:22:35 -0400 | [diff] [blame] | 167 | <TextView |
| 168 | android:id="@+id/empty" |
| 169 | android:layout_width="wrap_content" |
| 170 | android:layout_height="wrap_content" |
| 171 | android:visibility="gone" |
| 172 | android:layout_marginLeft="16dip" |
| 173 | android:layout_marginTop="16dip" |
| 174 | android:text="@string/no_subfolders" |
| 175 | android:textStyle="italic" |
| 176 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 177 | <EditText |
| 178 | android:id="@+id/folder_namer" |
Michael Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 179 | android:layout_marginLeft="16dip" |
| 180 | android:layout_marginRight="16dip" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 181 | android:layout_width="match_parent" |
| 182 | android:layout_height="wrap_content" |
| 183 | android:visibility="gone" |
| 184 | /> |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 185 | </LinearLayout> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 186 | |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 187 | <LinearLayout |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 188 | android:layout_width="match_parent" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 189 | android:layout_height="wrap_content" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 190 | android:minHeight="54dip" |
| 191 | android:orientation="horizontal" |
| 192 | android:paddingTop="4dip" |
| 193 | android:paddingLeft="2dip" |
| 194 | android:paddingRight="2dip" > |
| 195 | <Button android:id="@+id/OK" |
| 196 | android:text="@string/save" |
| 197 | android:layout_width="0dip" |
| 198 | android:layout_gravity="left" |
| 199 | android:layout_weight="1" |
| 200 | android:maxLines="2" |
| 201 | android:layout_height="wrap_content" /> |
| 202 | <Button android:id="@+id/cancel" |
| 203 | android:text="@string/do_not_save" |
| 204 | android:layout_width="0dip" |
| 205 | android:layout_gravity="right" |
| 206 | android:layout_weight="1" |
| 207 | android:maxLines="2" |
| 208 | android:layout_height="wrap_content" /> |
| 209 | </LinearLayout> |
| 210 | |
| 211 | </LinearLayout> |