blob: 8adf4b6817f9db046e1bfcedabafb8124ba02275 [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
134 <TextView
135 android:id="@+id/folder"
136 android:layout_height="wrap_content"
137 android:layout_width="250dip"
Leon Scroggins02081942010-11-01 17:52:42 -0400138 android:layout_marginRight="20dip"
139 android:layout_marginLeft="20dip"
140 android:gravity="center_vertical"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400141 android:singleLine="true"
142 android:ellipsize="start"
143 android:text="@string/bookmarks"
Leon Scroggins02081942010-11-01 17:52:42 -0400144 android:drawableLeft="@drawable/ic_menu_bookmarks"
145 android:layout_marginBottom="40dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400146 android:textAppearance="?android:attr/textAppearanceMedium" />
Leon Scroggins02081942010-11-01 17:52:42 -0400147 </TableRow>
148 </TableLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400149
150 <LinearLayout android:id="@+id/folder_selector"
Leon Scroggins74dbe012010-10-15 10:54:27 -0400151 android:layout_width="match_parent"
152 android:layout_height="@dimen/folder_selector_height"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400153 android:orientation="vertical"
154 android:visibility="gone"
155 >
156
Leon Scroggins162f8352010-10-18 15:02:44 -0400157 <view class="com.android.browser.AddBookmarkPage$CustomListView"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400158 android:id="@+id/list"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700159 android:layout_marginLeft="16dip"
160 android:layout_marginRight="16dip"
161 android:layout_width="match_parent"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400162 android:layout_height="wrap_content"
163 />
Leon Scroggins6573f9e2010-10-18 17:22:35 -0400164 <TextView
165 android:id="@+id/empty"
166 android:layout_width="wrap_content"
167 android:layout_height="wrap_content"
168 android:visibility="gone"
169 android:layout_marginLeft="16dip"
170 android:layout_marginTop="16dip"
171 android:text="@string/no_subfolders"
172 android:textStyle="italic"
173 android:textAppearance="?android:attr/textAppearanceMedium" />
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>