blob: 58b7a6b37d193716a60ca45aca46a14f8c2e1fd8 [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"
72 android:paddingTop="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080073 android:paddingLeft="20dip"
74 android:paddingRight="20dip" >
Leon Scroggins02081942010-11-01 17:52:42 -040075 <TableRow>
The Android Open Source Project0c908882009-03-03 19:32:16 -080076 <TextView
77 android:id="@+id/titleText"
78 android:layout_height="wrap_content"
79 android:layout_width="wrap_content"
Leon Scroggins III052ce662010-09-13 14:44:16 -040080 android:layout_marginBottom="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080081 android:text="@string/name"
The Android Open Source Project0c908882009-03-03 19:32:16 -080082 android:textAppearance="?android:attr/textAppearanceMedium" />
83
84 <EditText
85 android:id="@+id/title"
86 android:layout_height="wrap_content"
Leon Scroggins02081942010-11-01 17:52:42 -040087 android:layout_width="wrap_content"
88 android:layout_marginRight="20dip"
89 android:layout_marginLeft="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080090 android:gravity="fill_horizontal"
91 android:inputType="textCapSentences"
Leon Scroggins III052ce662010-09-13 14:44:16 -040092 android:ellipsize="end"
The Android Open Source Project0c908882009-03-03 19:32:16 -080093 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -040094 </TableRow>
The Android Open Source Project0c908882009-03-03 19:32:16 -080095
Leon Scroggins02081942010-11-01 17:52:42 -040096 <TableRow>
The Android Open Source Project0c908882009-03-03 19:32:16 -080097 <TextView
98 android:id="@+id/addressText"
99 android:layout_height="wrap_content"
100 android:layout_width="wrap_content"
101 android:text="@string/location"
102 android:gravity="left"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400103 android:layout_marginBottom="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800104 android:textAppearance="?android:attr/textAppearanceMedium" />
105
106 <EditText
107 android:id="@+id/address"
108 android:layout_height="wrap_content"
Leon Scroggins02081942010-11-01 17:52:42 -0400109 android:layout_width="wrap_content"
110 android:layout_marginRight="20dip"
111 android:layout_marginLeft="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800112 android:hint="@string/http"
113 android:gravity="fill_horizontal"
114 android:inputType="textUri"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400115 android:ellipsize="end"
116 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400117 </TableRow>
118 <TableRow>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400119 <TextView
120 android:id="@+id/add_to"
121 android:layout_height="wrap_content"
122 android:layout_width="wrap_content"
123 android:text="@string/containing_folder"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400124 android:textAppearance="?android:attr/textAppearanceMedium" />
125
126 <TextView
127 android:id="@+id/folder"
128 android:layout_height="wrap_content"
129 android:layout_width="250dip"
Leon Scroggins02081942010-11-01 17:52:42 -0400130 android:layout_marginRight="20dip"
131 android:layout_marginLeft="20dip"
132 android:gravity="center_vertical"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400133 android:singleLine="true"
134 android:ellipsize="start"
135 android:text="@string/bookmarks"
Leon Scroggins02081942010-11-01 17:52:42 -0400136 android:drawableLeft="@drawable/ic_menu_bookmarks"
137 android:layout_marginBottom="40dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400138 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400139 </TableRow>
140 </TableLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400141
142 <LinearLayout android:id="@+id/folder_selector"
Leon Scroggins74dbe012010-10-15 10:54:27 -0400143 android:layout_width="match_parent"
144 android:layout_height="@dimen/folder_selector_height"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400145 android:orientation="vertical"
146 android:visibility="gone"
147 >
148
Leon Scroggins III052ce662010-09-13 14:44:16 -0400149 <ListView
150 android:id="@+id/list"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700151 android:layout_marginLeft="16dip"
152 android:layout_marginRight="16dip"
153 android:layout_width="match_parent"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400154 android:layout_height="wrap_content"
155 />
Leon Scroggins6573f9e2010-10-18 17:22:35 -0400156 <TextView
157 android:id="@+id/empty"
158 android:layout_width="wrap_content"
159 android:layout_height="wrap_content"
160 android:visibility="gone"
161 android:layout_marginLeft="16dip"
162 android:layout_marginTop="16dip"
163 android:text="@string/no_subfolders"
164 android:textStyle="italic"
165 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins III052ce662010-09-13 14:44:16 -0400166 <EditText
167 android:id="@+id/folder_namer"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700168 android:layout_marginLeft="16dip"
169 android:layout_marginRight="16dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400170 android:layout_width="match_parent"
171 android:layout_height="wrap_content"
172 android:visibility="gone"
173 />
The Android Open Source Project0c908882009-03-03 19:32:16 -0800174 </LinearLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400175
The Android Open Source Project0c908882009-03-03 19:32:16 -0800176 <LinearLayout
Romain Guy15b8ec62010-01-08 15:06:43 -0800177 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800178 android:layout_height="wrap_content"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800179 android:minHeight="54dip"
180 android:orientation="horizontal"
181 android:paddingTop="4dip"
182 android:paddingLeft="2dip"
183 android:paddingRight="2dip" >
184 <Button android:id="@+id/OK"
185 android:text="@string/save"
186 android:layout_width="0dip"
187 android:layout_gravity="left"
188 android:layout_weight="1"
189 android:maxLines="2"
190 android:layout_height="wrap_content" />
191 <Button android:id="@+id/cancel"
192 android:text="@string/do_not_save"
193 android:layout_width="0dip"
194 android:layout_gravity="right"
195 android:layout_weight="1"
196 android:maxLines="2"
197 android:layout_height="wrap_content" />
198 </LinearLayout>
199
200</LinearLayout>