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