blob: 0eaf526c7f2e60cb9e17e662e583d69dfcee0672 [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
John Reckc8490812010-11-22 14:15:36 -080096 <TableRow
97 android:id="@+id/row_address">
The Android Open Source Project0c908882009-03-03 19:32:16 -080098 <TextView
99 android:id="@+id/addressText"
100 android:layout_height="wrap_content"
101 android:layout_width="wrap_content"
102 android:text="@string/location"
103 android:gravity="left"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400104 android:layout_marginBottom="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800105 android:textAppearance="?android:attr/textAppearanceMedium" />
106
107 <EditText
108 android:id="@+id/address"
109 android:layout_height="wrap_content"
Leon Scroggins02081942010-11-01 17:52:42 -0400110 android:layout_width="wrap_content"
111 android:layout_marginRight="20dip"
112 android:layout_marginLeft="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800113 android:hint="@string/http"
114 android:gravity="fill_horizontal"
115 android:inputType="textUri"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400116 android:ellipsize="end"
117 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400118 </TableRow>
119 <TableRow>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400120 <TextView
121 android:id="@+id/add_to"
122 android:layout_height="wrap_content"
123 android:layout_width="wrap_content"
124 android:text="@string/containing_folder"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400125 android:textAppearance="?android:attr/textAppearanceMedium" />
126
127 <TextView
128 android:id="@+id/folder"
129 android:layout_height="wrap_content"
130 android:layout_width="250dip"
Leon Scroggins02081942010-11-01 17:52:42 -0400131 android:layout_marginRight="20dip"
132 android:layout_marginLeft="20dip"
133 android:gravity="center_vertical"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400134 android:singleLine="true"
135 android:ellipsize="start"
136 android:text="@string/bookmarks"
Leon Scroggins02081942010-11-01 17:52:42 -0400137 android:drawableLeft="@drawable/ic_menu_bookmarks"
138 android:layout_marginBottom="40dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400139 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400140 </TableRow>
141 </TableLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400142
143 <LinearLayout android:id="@+id/folder_selector"
Leon Scroggins74dbe012010-10-15 10:54:27 -0400144 android:layout_width="match_parent"
145 android:layout_height="@dimen/folder_selector_height"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400146 android:orientation="vertical"
147 android:visibility="gone"
148 >
149
Leon Scroggins III052ce662010-09-13 14:44:16 -0400150 <ListView
151 android:id="@+id/list"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700152 android:layout_marginLeft="16dip"
153 android:layout_marginRight="16dip"
154 android:layout_width="match_parent"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400155 android:layout_height="wrap_content"
156 />
Leon Scroggins6573f9e2010-10-18 17:22:35 -0400157 <TextView
158 android:id="@+id/empty"
159 android:layout_width="wrap_content"
160 android:layout_height="wrap_content"
161 android:visibility="gone"
162 android:layout_marginLeft="16dip"
163 android:layout_marginTop="16dip"
164 android:text="@string/no_subfolders"
165 android:textStyle="italic"
166 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins III052ce662010-09-13 14:44:16 -0400167 <EditText
168 android:id="@+id/folder_namer"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700169 android:layout_marginLeft="16dip"
170 android:layout_marginRight="16dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400171 android:layout_width="match_parent"
172 android:layout_height="wrap_content"
173 android:visibility="gone"
174 />
The Android Open Source Project0c908882009-03-03 19:32:16 -0800175 </LinearLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400176
The Android Open Source Project0c908882009-03-03 19:32:16 -0800177 <LinearLayout
Romain Guy15b8ec62010-01-08 15:06:43 -0800178 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800179 android:layout_height="wrap_content"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800180 android:minHeight="54dip"
181 android:orientation="horizontal"
182 android:paddingTop="4dip"
183 android:paddingLeft="2dip"
184 android:paddingRight="2dip" >
185 <Button android:id="@+id/OK"
186 android:text="@string/save"
187 android:layout_width="0dip"
188 android:layout_gravity="left"
189 android:layout_weight="1"
190 android:maxLines="2"
191 android:layout_height="wrap_content" />
192 <Button android:id="@+id/cancel"
193 android:text="@string/do_not_save"
194 android:layout_width="0dip"
195 android:layout_gravity="right"
196 android:layout_weight="1"
197 android:maxLines="2"
198 android:layout_height="wrap_content" />
199 </LinearLayout>
200
201</LinearLayout>