blob: e5f164f7b57bb4ea2dbd5c8ae1abbfe8fe7a9d41 [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 >
22
Leon Scroggins74dbe012010-10-15 10:54:27 -040023 <com.android.browser.BreadCrumbView android:id="@+id/crumbs"
24 android:layout_width="match_parent"
25 android:layout_height="wrap_content"
26 android:visibility="gone"
27 />
28 <LinearLayout android:id="@+id/fake_title_bar"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:orientation="horizontal"
32 >
33 <ImageView
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
36 android:src="@drawable/ic_list_bookmark"
37 />
38 <TextView android:id="@+id/fake_title"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:text="@string/bookmark_this_page"
42 android:layout_gravity="center_horizontal"
43 android:textAppearance="?android:attr/textAppearanceMedium" />
44 </LinearLayout>
45
Ben Murdocha753d002009-10-01 11:36:19 +010046 <ImageView android:id="@+id/titleDivider"
Romain Guy15b8ec62010-01-08 15:06:43 -080047 android:layout_width="match_parent"
Ben Murdocha753d002009-10-01 11:36:19 +010048 android:layout_height="1dip"
49 android:scaleType="fitXY"
50 android:gravity="fill_horizontal"
51 android:src="@drawable/dialog_divider_horizontal_light"
52 android:layout_marginLeft="10dip"
53 android:layout_marginRight="10dip"/>
54
Leon Scroggins74dbe012010-10-15 10:54:27 -040055 <!-- XXX Use a TableLayout instead -->
Leon Scroggins III052ce662010-09-13 14:44:16 -040056 <RelativeLayout android:id="@+id/default_view"
Romain Guy15b8ec62010-01-08 15:06:43 -080057 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -080058 android:layout_height="wrap_content"
59 android:layout_weight="1"
The Android Open Source Project0c908882009-03-03 19:32:16 -080060 android:paddingTop="5dip"
61 android:paddingBottom="13dip"
62 android:paddingLeft="20dip"
63 android:paddingRight="20dip" >
64
65 <TextView
66 android:id="@+id/titleText"
67 android:layout_height="wrap_content"
68 android:layout_width="wrap_content"
Leon Scroggins III052ce662010-09-13 14:44:16 -040069 android:layout_alignParentTop="true"
70 android:layout_marginRight="50dip"
71 android:layout_marginBottom="40dip"
72 android:layout_marginTop="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080073 android:text="@string/name"
74 android:gravity="left"
75 android:textAppearance="?android:attr/textAppearanceMedium" />
76
77 <EditText
78 android:id="@+id/title"
79 android:layout_height="wrap_content"
Leon Scroggins74dbe012010-10-15 10:54:27 -040080 android:layout_width="325dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080081 android:gravity="fill_horizontal"
Leon Scroggins III052ce662010-09-13 14:44:16 -040082 android:layout_alignBaseline="@+id/titleText"
83 android:layout_toRightOf="@+id/titleText"
The Android Open Source Project0c908882009-03-03 19:32:16 -080084 android:inputType="textCapSentences"
85 android:selectAllOnFocus="true"
Leon Scroggins III052ce662010-09-13 14:44:16 -040086 android:ellipsize="end"
The Android Open Source Project0c908882009-03-03 19:32:16 -080087 android:textAppearance="?android:attr/textAppearanceMedium" />
88
89
90
91 <TextView
92 android:id="@+id/addressText"
93 android:layout_height="wrap_content"
94 android:layout_width="wrap_content"
95 android:text="@string/location"
96 android:gravity="left"
Leon Scroggins III052ce662010-09-13 14:44:16 -040097 android:layout_below="@+id/titleText"
98 android:layout_alignLeft="@+id/titleText"
99 android:layout_marginBottom="40dip"
100 android:layout_marginRight="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800101 android:textAppearance="?android:attr/textAppearanceMedium" />
102
103 <EditText
104 android:id="@+id/address"
105 android:layout_height="wrap_content"
Leon Scroggins74dbe012010-10-15 10:54:27 -0400106 android:layout_width="325dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800107 android:hint="@string/http"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400108 android:layout_alignBaseline="@+id/addressText"
109 android:layout_alignLeft="@+id/title"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800110 android:gravity="fill_horizontal"
111 android:inputType="textUri"
112 android:selectAllOnFocus="true"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400113 android:ellipsize="end"
114 android:textAppearance="?android:attr/textAppearanceMedium" />
115
116 <TextView
117 android:id="@+id/add_to"
118 android:layout_height="wrap_content"
119 android:layout_width="wrap_content"
120 android:text="@string/containing_folder"
121 android:layout_below="@+id/addressText"
122 android:layout_alignLeft="@+id/titleText"
123 android:layout_marginRight="20dip"
124 android:textAppearance="?android:attr/textAppearanceMedium" />
125
126 <TextView
127 android:id="@+id/folder"
128 android:layout_height="wrap_content"
129 android:layout_width="250dip"
130 android:layout_alignLeft="@+id/title"
131 android:layout_alignBaseline="@+id/add_to"
132 android:singleLine="true"
133 android:ellipsize="start"
134 android:text="@string/bookmarks"
135 android:textAppearance="?android:attr/textAppearanceMedium" />
136
137 </RelativeLayout>
138
139 <LinearLayout android:id="@+id/folder_selector"
Leon Scroggins74dbe012010-10-15 10:54:27 -0400140 android:layout_width="match_parent"
141 android:layout_height="@dimen/folder_selector_height"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400142 android:orientation="vertical"
143 android:visibility="gone"
144 >
145
Leon Scroggins III052ce662010-09-13 14:44:16 -0400146 <ListView
147 android:id="@+id/list"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700148 android:layout_marginLeft="16dip"
149 android:layout_marginRight="16dip"
150 android:layout_width="match_parent"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400151 android:layout_height="wrap_content"
152 />
153 <EditText
154 android:id="@+id/folder_namer"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700155 android:layout_marginLeft="16dip"
156 android:layout_marginRight="16dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400157 android:layout_width="match_parent"
158 android:layout_height="wrap_content"
159 android:visibility="gone"
160 />
161 <Button
162 android:id="@+id/add_new_folder"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700163 android_marginTop="16dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400164 android:layout_width="wrap_content"
165 android:layout_height="wrap_content"
166 android:layout_gravity="center_horizontal"
167 android:text="@string/add_new_folder"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800168 android:textAppearance="?android:attr/textAppearanceMedium" />
169 </LinearLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400170
The Android Open Source Project0c908882009-03-03 19:32:16 -0800171 <LinearLayout
Romain Guy15b8ec62010-01-08 15:06:43 -0800172 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800173 android:layout_height="wrap_content"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800174 android:minHeight="54dip"
175 android:orientation="horizontal"
176 android:paddingTop="4dip"
177 android:paddingLeft="2dip"
178 android:paddingRight="2dip" >
179 <Button android:id="@+id/OK"
180 android:text="@string/save"
181 android:layout_width="0dip"
182 android:layout_gravity="left"
183 android:layout_weight="1"
184 android:maxLines="2"
185 android:layout_height="wrap_content" />
186 <Button android:id="@+id/cancel"
187 android:text="@string/do_not_save"
188 android:layout_width="0dip"
189 android:layout_gravity="right"
190 android:layout_weight="1"
191 android:maxLines="2"
192 android:layout_height="wrap_content" />
193 </LinearLayout>
194
195</LinearLayout>