blob: 7e518dd3588c88e74a034332491075f34c840571 [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 <!-- 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 Scroggins74dbe012010-10-15 10:54:27 -040037 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040039 android:layout_alignParentRight="true"
40 android:layout_alignBaseline="@+id/crumbs"
41 android:drawableLeft="@drawable/ic_add_string"
Leon Scroggins6573f9e2010-10-18 17:22:35 -040042 android:text="@string/new_folder"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040043 android:visibility="gone"
Leon Scroggins74dbe012010-10-15 10:54:27 -040044 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins7e5f7352010-10-18 13:25:31 -040045 <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 Scroggins74dbe012010-10-15 10:54:27 -040061
Leon Scroggins7e5f7352010-10-18 13:25:31 -040062 <View android:id="@+id/titleDivider"
Romain Guy15b8ec62010-01-08 15:06:43 -080063 android:layout_width="match_parent"
Ben Murdocha753d002009-10-01 11:36:19 +010064 android:layout_height="1dip"
Ben Murdocha753d002009-10-01 11:36:19 +010065 android:gravity="fill_horizontal"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040066 android:background="?android:attr/colorForeground"
67 />
Ben Murdocha753d002009-10-01 11:36:19 +010068
Leon Scroggins74dbe012010-10-15 10:54:27 -040069 <!-- XXX Use a TableLayout instead -->
Leon Scroggins III052ce662010-09-13 14:44:16 -040070 <RelativeLayout android:id="@+id/default_view"
Romain Guy15b8ec62010-01-08 15:06:43 -080071 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -080072 android:layout_height="wrap_content"
73 android:layout_weight="1"
The Android Open Source Project0c908882009-03-03 19:32:16 -080074 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 III052ce662010-09-13 14:44:16 -040083 android:layout_alignParentTop="true"
84 android:layout_marginRight="50dip"
85 android:layout_marginBottom="40dip"
86 android:layout_marginTop="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080087 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 Scroggins74dbe012010-10-15 10:54:27 -040094 android:layout_width="325dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080095 android:gravity="fill_horizontal"
Leon Scroggins III052ce662010-09-13 14:44:16 -040096 android:layout_alignBaseline="@+id/titleText"
97 android:layout_toRightOf="@+id/titleText"
The Android Open Source Project0c908882009-03-03 19:32:16 -080098 android:inputType="textCapSentences"
99 android:selectAllOnFocus="true"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400100 android:ellipsize="end"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800101 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 III052ce662010-09-13 14:44:16 -0400111 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 Project0c908882009-03-03 19:32:16 -0800115 android:textAppearance="?android:attr/textAppearanceMedium" />
116
117 <EditText
118 android:id="@+id/address"
119 android:layout_height="wrap_content"
Leon Scroggins74dbe012010-10-15 10:54:27 -0400120 android:layout_width="325dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800121 android:hint="@string/http"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400122 android:layout_alignBaseline="@+id/addressText"
123 android:layout_alignLeft="@+id/title"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800124 android:gravity="fill_horizontal"
125 android:inputType="textUri"
126 android:selectAllOnFocus="true"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400127 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 Scroggins74dbe012010-10-15 10:54:27 -0400154 android:layout_width="match_parent"
155 android:layout_height="@dimen/folder_selector_height"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400156 android:orientation="vertical"
157 android:visibility="gone"
158 >
159
Leon Scroggins III052ce662010-09-13 14:44:16 -0400160 <ListView
161 android:id="@+id/list"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700162 android:layout_marginLeft="16dip"
163 android:layout_marginRight="16dip"
164 android:layout_width="match_parent"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400165 android:layout_height="wrap_content"
166 />
Leon Scroggins6573f9e2010-10-18 17:22:35 -0400167 <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 III052ce662010-09-13 14:44:16 -0400177 <EditText
178 android:id="@+id/folder_namer"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700179 android:layout_marginLeft="16dip"
180 android:layout_marginRight="16dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400181 android:layout_width="match_parent"
182 android:layout_height="wrap_content"
183 android:visibility="gone"
184 />
The Android Open Source Project0c908882009-03-03 19:32:16 -0800185 </LinearLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400186
The Android Open Source Project0c908882009-03-03 19:32:16 -0800187 <LinearLayout
Romain Guy15b8ec62010-01-08 15:06:43 -0800188 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800189 android:layout_height="wrap_content"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800190 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>