blob: e25f903c1255ec54d046aba073ca48e2c46de5d7 [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"
Leon Scroggins905250c2010-12-17 15:25:33 -050025 android:minHeight="?android:attr/listPreferredItemHeight"
26 android:gravity="center_vertical"
Leon Scroggins74dbe012010-10-15 10:54:27 -040027 android:visibility="gone"
Leon Scroggins74dbe012010-10-15 10:54:27 -040028 >
Leon Scroggins7e5f7352010-10-18 13:25:31 -040029 <com.android.browser.BreadCrumbView android:id="@+id/crumbs"
Leon Scroggins74dbe012010-10-15 10:54:27 -040030 android:layout_width="wrap_content"
Leon Scroggins905250c2010-12-17 15:25:33 -050031 android:layout_height="?android:attr/listPreferredItemHeight"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040032 android:layout_alignParentLeft="true"
33 android:layout_toLeftOf="@+id/add_divider"
Leon Scroggins905250c2010-12-17 15:25:33 -050034 android:layout_centerVertical="true"
Leon Scroggins74dbe012010-10-15 10:54:27 -040035 />
Leon Scroggins7e5f7352010-10-18 13:25:31 -040036 <TextView
37 android:id="@+id/add_new_folder"
Leon Scroggins74dbe012010-10-15 10:54:27 -040038 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040040 android:layout_alignParentRight="true"
41 android:layout_alignBaseline="@+id/crumbs"
42 android:drawableLeft="@drawable/ic_add_string"
Leon Scroggins02081942010-11-01 17:52:42 -040043 android:gravity="center_vertical"
Leon Scroggins6573f9e2010-10-18 17:22:35 -040044 android:text="@string/new_folder"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040045 android:visibility="gone"
Leon Scroggins905250c2010-12-17 15:25:33 -050046 android:layout_centerVertical="true"
Leon Scroggins74dbe012010-10-15 10:54:27 -040047 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins7e5f7352010-10-18 13:25:31 -040048 <ImageView android:id="@+id/add_divider"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_toLeftOf="@+id/add_new_folder"
52 android:src="@drawable/crumb_divider"
Leon Scroggins905250c2010-12-17 15:25:33 -050053 android:layout_centerVertical="true"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040054 />
55 </RelativeLayout>
Leon Scroggins7e5f7352010-10-18 13:25:31 -040056 <TextView android:id="@+id/fake_title"
57 android:layout_width="wrap_content"
Leon Scroggins905250c2010-12-17 15:25:33 -050058 android:layout_height="wrap_content"
59 android:minHeight="?android:attr/listPreferredItemHeight"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040060 android:drawableLeft="@drawable/ic_list_bookmark"
61 android:text="@string/bookmark_this_page"
62 android:layout_gravity="left"
Leon Scroggins02081942010-11-01 17:52:42 -040063 android:gravity="center_vertical"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040064 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins74dbe012010-10-15 10:54:27 -040065
Leon Scroggins7e5f7352010-10-18 13:25:31 -040066 <View android:id="@+id/titleDivider"
Romain Guy15b8ec62010-01-08 15:06:43 -080067 android:layout_width="match_parent"
Ben Murdocha753d002009-10-01 11:36:19 +010068 android:layout_height="1dip"
Ben Murdocha753d002009-10-01 11:36:19 +010069 android:gravity="fill_horizontal"
Leon Scroggins7e5f7352010-10-18 13:25:31 -040070 android:background="?android:attr/colorForeground"
71 />
Ben Murdocha753d002009-10-01 11:36:19 +010072
Leon Scroggins02081942010-11-01 17:52:42 -040073 <TableLayout android:id="@+id/default_view"
Romain Guy15b8ec62010-01-08 15:06:43 -080074 android:layout_width="match_parent"
Leon Scroggins2ab6d252011-01-05 18:02:41 -050075 android:layout_height="@dimen/folder_selector_height"
The Android Open Source Project0c908882009-03-03 19:32:16 -080076 android:layout_weight="1"
Leon Scroggins02081942010-11-01 17:52:42 -040077 android:stretchColumns="1"
Leon Scroggins664f6cc2010-11-30 13:51:03 -050078 android:shrinkColumns="1"
Leon Scroggins02081942010-11-01 17:52:42 -040079 android:paddingTop="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080080 android:paddingLeft="20dip"
81 android:paddingRight="20dip" >
Leon Scroggins02081942010-11-01 17:52:42 -040082 <TableRow>
The Android Open Source Project0c908882009-03-03 19:32:16 -080083 <TextView
84 android:id="@+id/titleText"
85 android:layout_height="wrap_content"
86 android:layout_width="wrap_content"
Leon Scroggins III052ce662010-09-13 14:44:16 -040087 android:layout_marginBottom="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080088 android:text="@string/name"
The Android Open Source Project0c908882009-03-03 19:32:16 -080089 android:textAppearance="?android:attr/textAppearanceMedium" />
90
91 <EditText
92 android:id="@+id/title"
93 android:layout_height="wrap_content"
Leon Scroggins02081942010-11-01 17:52:42 -040094 android:layout_width="wrap_content"
95 android:layout_marginRight="20dip"
96 android:layout_marginLeft="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080097 android:gravity="fill_horizontal"
98 android:inputType="textCapSentences"
Leon Scroggins III052ce662010-09-13 14:44:16 -040099 android:ellipsize="end"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800100 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400101 </TableRow>
The Android Open Source Project0c908882009-03-03 19:32:16 -0800102
John Reckc8490812010-11-22 14:15:36 -0800103 <TableRow
104 android:id="@+id/row_address">
The Android Open Source Project0c908882009-03-03 19:32:16 -0800105 <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_marginBottom="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800112 android:textAppearance="?android:attr/textAppearanceMedium" />
113
114 <EditText
115 android:id="@+id/address"
116 android:layout_height="wrap_content"
Leon Scroggins02081942010-11-01 17:52:42 -0400117 android:layout_width="wrap_content"
118 android:layout_marginRight="20dip"
119 android:layout_marginLeft="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800120 android:hint="@string/http"
121 android:gravity="fill_horizontal"
122 android:inputType="textUri"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400123 android:ellipsize="end"
124 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400125 </TableRow>
126 <TableRow>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400127 <TextView
128 android:id="@+id/add_to"
129 android:layout_height="wrap_content"
130 android:layout_width="wrap_content"
131 android:text="@string/containing_folder"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400132 android:textAppearance="?android:attr/textAppearanceMedium" />
133
Leon Scrogginsdd13bad2011-01-06 20:25:54 -0500134 <view class="com.android.browser.addbookmark.FolderSpinner"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400135 android:id="@+id/folder"
136 android:layout_height="wrap_content"
Leon Scrogginsdd13bad2011-01-06 20:25:54 -0500137 android:layout_width="wrap_content"
Leon Scroggins02081942010-11-01 17:52:42 -0400138 android:layout_marginRight="20dip"
139 android:layout_marginLeft="20dip"
Leon Scrogginsdd13bad2011-01-06 20:25:54 -0500140 android:spinnerMode="dropdown"
Leon Scroggins02081942010-11-01 17:52:42 -0400141 android:gravity="center_vertical"
Leon Scrogginsdd13bad2011-01-06 20:25:54 -0500142 />
Leon Scroggins02081942010-11-01 17:52:42 -0400143 </TableRow>
144 </TableLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400145
146 <LinearLayout android:id="@+id/folder_selector"
Leon Scroggins74dbe012010-10-15 10:54:27 -0400147 android:layout_width="match_parent"
148 android:layout_height="@dimen/folder_selector_height"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400149 android:orientation="vertical"
150 android:visibility="gone"
151 >
152
Leon Scroggins162f8352010-10-18 15:02:44 -0400153 <view class="com.android.browser.AddBookmarkPage$CustomListView"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400154 android:id="@+id/list"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700155 android:layout_marginLeft="16dip"
156 android:layout_marginRight="16dip"
157 android:layout_width="match_parent"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400158 android:layout_height="wrap_content"
159 />
Leon Scroggins6573f9e2010-10-18 17:22:35 -0400160 <TextView
161 android:id="@+id/empty"
162 android:layout_width="wrap_content"
163 android:layout_height="wrap_content"
164 android:visibility="gone"
165 android:layout_marginLeft="16dip"
166 android:layout_marginTop="16dip"
167 android:text="@string/no_subfolders"
168 android:textStyle="italic"
169 android:textAppearance="?android:attr/textAppearanceMedium" />
The Android Open Source Project0c908882009-03-03 19:32:16 -0800170 </LinearLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400171
The Android Open Source Project0c908882009-03-03 19:32:16 -0800172 <LinearLayout
Romain Guy15b8ec62010-01-08 15:06:43 -0800173 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800174 android:layout_height="wrap_content"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800175 android:minHeight="54dip"
176 android:orientation="horizontal"
177 android:paddingTop="4dip"
178 android:paddingLeft="2dip"
179 android:paddingRight="2dip" >
180 <Button android:id="@+id/OK"
181 android:text="@string/save"
182 android:layout_width="0dip"
183 android:layout_gravity="left"
184 android:layout_weight="1"
185 android:maxLines="2"
186 android:layout_height="wrap_content" />
187 <Button android:id="@+id/cancel"
188 android:text="@string/do_not_save"
189 android:layout_width="0dip"
190 android:layout_gravity="right"
191 android:layout_weight="1"
192 android:maxLines="2"
193 android:layout_height="wrap_content" />
194 </LinearLayout>
195
196</LinearLayout>