blob: c5473899eff45ad94681d5b38eb850fe23d80292 [file] [log] [blame]
The Android Open Source Project0c908882009-03-03 19:32:16 -08001<?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 Scroggins74dbe012010-10-15 10:54:27 -040018 android:layout_width="@dimen/add_bookmark_width"
The Android Open Source Project0c908882009-03-03 19:32:16 -080019 android:layout_height="wrap_content"
20 android:orientation="vertical"
21 >
Leon Scroggins7e5f7352010-10-18 13:25:31 -040022 <RelativeLayout android:id="@+id/crumb_holder"
Leon Scroggins74dbe012010-10-15 10:54:27 -040023 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:visibility="gone"
Leon Scroggins74dbe012010-10-15 10:54:27 -040026 >
Leon Scroggins7e5f7352010-10-18 13:25:31 -040027 <com.android.browser.BreadCrumbView android:id="@+id/crumbs"
Leon Scroggins74dbe012010-10-15 10:54:27 -040028 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040030 android:layout_alignParentLeft="true"
31 android:layout_toLeftOf="@+id/add_divider"
Leon Scroggins74dbe012010-10-15 10:54:27 -040032 />
Leon Scroggins7e5f7352010-10-18 13:25:31 -040033 <TextView
34 android:id="@+id/add_new_folder"
Leon Scroggins74dbe012010-10-15 10:54:27 -040035 android:layout_width="wrap_content"
36 android:layout_height="wrap_content"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040037 android:layout_alignParentRight="true"
38 android:layout_alignBaseline="@+id/crumbs"
39 android:drawableLeft="@drawable/ic_add_string"
Leon Scroggins02081942010-11-01 17:52:42 -040040 android:gravity="center_vertical"
Leon Scroggins6573f9e2010-10-18 17:22:35 -040041 android:text="@string/new_folder"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040042 android:visibility="gone"
Leon Scroggins74dbe012010-10-15 10:54:27 -040043 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins7e5f7352010-10-18 13:25:31 -040044 <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 Scroggins7e5f7352010-10-18 13:25:31 -040051 <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 Scroggins02081942010-11-01 17:52:42 -040057 android:gravity="center_vertical"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040058 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins74dbe012010-10-15 10:54:27 -040059
Leon Scroggins7e5f7352010-10-18 13:25:31 -040060 <View android:id="@+id/titleDivider"
Romain Guy15b8ec62010-01-08 15:06:43 -080061 android:layout_width="match_parent"
Ben Murdocha753d002009-10-01 11:36:19 +010062 android:layout_height="1dip"
Ben Murdocha753d002009-10-01 11:36:19 +010063 android:gravity="fill_horizontal"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040064 android:background="?android:attr/colorForeground"
65 />
Ben Murdocha753d002009-10-01 11:36:19 +010066
Leon Scroggins02081942010-11-01 17:52:42 -040067 <TableLayout android:id="@+id/default_view"
Romain Guy15b8ec62010-01-08 15:06:43 -080068 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -080069 android:layout_height="wrap_content"
70 android:layout_weight="1"
Leon Scroggins02081942010-11-01 17:52:42 -040071 android:stretchColumns="1"
Leon Scroggins664f6cc2010-11-30 13:51:03 -050072 android:shrinkColumns="1"
Leon Scroggins02081942010-11-01 17:52:42 -040073 android:paddingTop="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080074 android:paddingLeft="20dip"
75 android:paddingRight="20dip" >
Leon Scroggins02081942010-11-01 17:52:42 -040076 <TableRow>
The Android Open Source Project0c908882009-03-03 19:32:16 -080077 <TextView
78 android:id="@+id/titleText"
79 android:layout_height="wrap_content"
80 android:layout_width="wrap_content"
Leon Scroggins III052ce662010-09-13 14:44:16 -040081 android:layout_marginBottom="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080082 android:text="@string/name"
The Android Open Source Project0c908882009-03-03 19:32:16 -080083 android:textAppearance="?android:attr/textAppearanceMedium" />
84
85 <EditText
86 android:id="@+id/title"
87 android:layout_height="wrap_content"
Leon Scroggins02081942010-11-01 17:52:42 -040088 android:layout_width="wrap_content"
89 android:layout_marginRight="20dip"
90 android:layout_marginLeft="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080091 android:gravity="fill_horizontal"
92 android:inputType="textCapSentences"
Leon Scroggins III052ce662010-09-13 14:44:16 -040093 android:ellipsize="end"
The Android Open Source Project0c908882009-03-03 19:32:16 -080094 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -040095 </TableRow>
The Android Open Source Project0c908882009-03-03 19:32:16 -080096
John Reckc8490812010-11-22 14:15:36 -080097 <TableRow
98 android:id="@+id/row_address">
The Android Open Source Project0c908882009-03-03 19:32:16 -080099 <TextView
100 android:id="@+id/addressText"
101 android:layout_height="wrap_content"
102 android:layout_width="wrap_content"
103 android:text="@string/location"
104 android:gravity="left"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400105 android:layout_marginBottom="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800106 android:textAppearance="?android:attr/textAppearanceMedium" />
107
108 <EditText
109 android:id="@+id/address"
110 android:layout_height="wrap_content"
Leon Scroggins02081942010-11-01 17:52:42 -0400111 android:layout_width="wrap_content"
112 android:layout_marginRight="20dip"
113 android:layout_marginLeft="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800114 android:hint="@string/http"
115 android:gravity="fill_horizontal"
116 android:inputType="textUri"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400117 android:ellipsize="end"
118 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400119 </TableRow>
120 <TableRow>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400121 <TextView
122 android:id="@+id/add_to"
123 android:layout_height="wrap_content"
124 android:layout_width="wrap_content"
125 android:text="@string/containing_folder"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400126 android:textAppearance="?android:attr/textAppearanceMedium" />
127
128 <TextView
129 android:id="@+id/folder"
130 android:layout_height="wrap_content"
131 android:layout_width="250dip"
Leon Scroggins02081942010-11-01 17:52:42 -0400132 android:layout_marginRight="20dip"
133 android:layout_marginLeft="20dip"
134 android:gravity="center_vertical"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400135 android:singleLine="true"
136 android:ellipsize="start"
137 android:text="@string/bookmarks"
Leon Scroggins02081942010-11-01 17:52:42 -0400138 android:drawableLeft="@drawable/ic_menu_bookmarks"
139 android:layout_marginBottom="40dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400140 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400141 </TableRow>
142 </TableLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400143
144 <LinearLayout android:id="@+id/folder_selector"
Leon Scroggins74dbe012010-10-15 10:54:27 -0400145 android:layout_width="match_parent"
146 android:layout_height="@dimen/folder_selector_height"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400147 android:orientation="vertical"
148 android:visibility="gone"
149 >
150
Leon Scroggins III052ce662010-09-13 14:44:16 -0400151 <ListView
152 android:id="@+id/list"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700153 android:layout_marginLeft="16dip"
154 android:layout_marginRight="16dip"
155 android:layout_width="match_parent"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400156 android:layout_height="wrap_content"
157 />
Leon Scroggins6573f9e2010-10-18 17:22:35 -0400158 <TextView
159 android:id="@+id/empty"
160 android:layout_width="wrap_content"
161 android:layout_height="wrap_content"
162 android:visibility="gone"
163 android:layout_marginLeft="16dip"
164 android:layout_marginTop="16dip"
165 android:text="@string/no_subfolders"
166 android:textStyle="italic"
167 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins III052ce662010-09-13 14:44:16 -0400168 <EditText
169 android:id="@+id/folder_namer"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700170 android:layout_marginLeft="16dip"
171 android:layout_marginRight="16dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400172 android:layout_width="match_parent"
173 android:layout_height="wrap_content"
174 android:visibility="gone"
175 />
The Android Open Source Project0c908882009-03-03 19:32:16 -0800176 </LinearLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400177
The Android Open Source Project0c908882009-03-03 19:32:16 -0800178 <LinearLayout
Romain Guy15b8ec62010-01-08 15:06:43 -0800179 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800180 android:layout_height="wrap_content"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800181 android:minHeight="54dip"
182 android:orientation="horizontal"
183 android:paddingTop="4dip"
184 android:paddingLeft="2dip"
185 android:paddingRight="2dip" >
186 <Button android:id="@+id/OK"
187 android:text="@string/save"
188 android:layout_width="0dip"
189 android:layout_gravity="left"
190 android:layout_weight="1"
191 android:maxLines="2"
192 android:layout_height="wrap_content" />
193 <Button android:id="@+id/cancel"
194 android:text="@string/do_not_save"
195 android:layout_width="0dip"
196 android:layout_gravity="right"
197 android:layout_weight="1"
198 android:maxLines="2"
199 android:layout_height="wrap_content" />
200 </LinearLayout>
201
202</LinearLayout>