1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<merge xmlns:android="http://schemas.android.com/apk/res/android">
18    <LinearLayout android:id="@+id/crumb_holder"
19        android:layout_width="match_parent"
20        android:layout_height="wrap_content"
21        android:visibility="gone"
22        android:paddingLeft="5dip"
23        android:paddingRight="5dip"
24        android:orientation="horizontal"
25        android:minHeight="?android:attr/listPreferredItemHeightSmall"
26        >
27        <com.android.browser.BreadCrumbView android:id="@+id/crumbs"
28            android:layout_width="0dip"
29            android:layout_weight="1"
30            android:layout_height="match_parent" />
31        <View android:id="@+id/add_divider"
32            android:layout_width="1dip"
33            android:layout_height="match_parent"
34            android:background="?android:attr/dividerVertical"
35            />
36        <TextView
37            android:id="@+id/add_new_folder"
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:drawableLeft="@drawable/ic_add_string"
41            android:text="@string/new_folder"
42            android:visibility="gone"
43            android:focusable="true"
44            android:background="?android:attr/selectableItemBackground"
45            android:textAppearance="?android:attr/textAppearanceMedium"
46            android:gravity="center_vertical"
47            android:layout_gravity="center_vertical"
48            android:paddingRight="8dip" />
49    </LinearLayout>
50    <LinearLayout android:id="@+id/title_holder"
51        android:layout_width="match_parent"
52        android:layout_height="wrap_content"
53        android:orientation="horizontal"
54        android:paddingLeft="5dip"
55        android:paddingRight="5dip"
56        android:minHeight="?android:attr/listPreferredItemHeightSmall"
57        >
58        <TextView android:id="@+id/fake_title"
59            android:layout_width="0dip"
60            android:layout_weight="1"
61            android:layout_height="wrap_content"
62            android:layout_gravity="center_vertical"
63            android:gravity="center_vertical"
64            android:drawableLeft="@drawable/ic_bookmark_on_holo_dark"
65            android:text="@string/bookmark_this_page"
66            android:textAppearance="?android:attr/textAppearanceMedium" />
67        <View android:id="@+id/remove_divider"
68            android:layout_width="1dip"
69            android:layout_height="match_parent"
70            android:background="?android:attr/dividerVertical"
71            android:visibility="gone"
72            />
73        <TextView android:id="@+id/remove"
74            android:layout_width="wrap_content"
75            android:layout_height="wrap_content"
76            android:layout_gravity="center_vertical"
77            android:gravity="center_vertical"
78            android:text="@string/remove"
79            android:drawableLeft="@drawable/trashcan"
80            android:visibility="gone"
81            android:textAppearance="?android:attr/textAppearanceMedium" />
82    </LinearLayout>
83
84    <FrameLayout
85        android:layout_width="match_parent"
86        android:layout_height="0dip"
87        android:layout_weight="1">
88        <ScrollView
89            android:layout_width="match_parent"
90            android:layout_height="match_parent">
91            <TableLayout android:id="@+id/default_view"
92                android:layout_width="match_parent"
93                android:layout_height="wrap_content"
94                android:stretchColumns="1"
95                android:shrinkColumns="1"
96                android:paddingTop="10dip"
97                android:paddingLeft="20dip"
98                android:paddingRight="20dip" >
99              <TableRow android:layout_marginBottom="10dip">
100                <TextView
101                    android:id="@+id/titleText"
102                    android:layout_height="wrap_content"
103                    android:layout_width="wrap_content"
104                    android:layout_gravity="center_vertical"
105                    android:text="@string/name"
106                    android:textAppearance="?android:attr/textAppearanceMedium" />
107
108                <EditText
109                    android:id="@+id/title"
110                    android:layout_height="wrap_content"
111                    android:layout_width="wrap_content"
112                    android:layout_marginLeft="20dip"
113                    android:inputType="textCapSentences|textNoSuggestions"
114                    android:ellipsize="end"
115                    android:textAppearance="?android:attr/textAppearanceMedium" />
116              </TableRow>
117
118              <TableRow
119                  android:layout_marginBottom="10dip"
120                  android:id="@+id/row_address">
121                <TextView
122                    android:id="@+id/addressText"
123                    android:layout_height="wrap_content"
124                    android:layout_width="wrap_content"
125                    android:layout_gravity="center_vertical"
126                    android:text="@string/location"
127                    android:textAppearance="?android:attr/textAppearanceMedium" />
128
129                <EditText
130                    android:id="@+id/address"
131                    android:layout_height="wrap_content"
132                    android:layout_width="wrap_content"
133                    android:layout_marginLeft="20dip"
134                    android:hint="@string/http"
135                    android:inputType="textUri"
136                    android:ellipsize="end"
137                    android:textAppearance="?android:attr/textAppearanceMedium" />
138              </TableRow>
139              <TableRow android:layout_marginBottom="10dip">
140                <TextView
141                    android:layout_height="wrap_content"
142                    android:layout_width="wrap_content"
143                    android:layout_gravity="center_vertical"
144                    android:text="@string/account"
145                    android:textAppearance="?android:attr/textAppearanceMedium" />
146
147                <Spinner
148                    android:id="@+id/accounts"
149                    android:layout_height="wrap_content"
150                    android:layout_width="wrap_content"
151                    android:layout_marginLeft="20dip"
152                    android:spinnerMode="dropdown"
153                    />
154              </TableRow>
155              <TableRow android:layout_marginBottom="10dip">
156                <TextView
157                    android:layout_height="wrap_content"
158                    android:layout_width="wrap_content"
159                    android:layout_gravity="center_vertical"
160                    android:text="@string/containing_folder"
161                    android:textAppearance="?android:attr/textAppearanceMedium" />
162
163                <view class="com.android.browser.addbookmark.FolderSpinner"
164                    android:id="@+id/folder"
165                    android:layout_height="wrap_content"
166                    android:layout_width="wrap_content"
167                    android:layout_marginLeft="20dip"
168                    android:spinnerMode="dropdown"
169                    />
170              </TableRow>
171            </TableLayout>
172        </ScrollView>
173
174        <LinearLayout android:id="@+id/folder_selector"
175            android:layout_width="match_parent"
176            android:layout_height="match_parent"
177            android:orientation="vertical"
178            android:visibility="gone"
179            >
180
181            <view class="com.android.browser.AddBookmarkPage$CustomListView"
182                android:id="@+id/list"
183                android:layout_marginLeft="16dip"
184                android:layout_marginRight="16dip"
185                android:layout_width="match_parent"
186                android:layout_height="match_parent"
187                />
188            <TextView
189                android:id="@+id/empty"
190                android:layout_width="wrap_content"
191                android:layout_height="wrap_content"
192                android:visibility="gone"
193                android:layout_marginLeft="16dip"
194                android:layout_marginTop="16dip"
195                android:text="@string/no_subfolders"
196                android:textStyle="italic"
197                android:textAppearance="?android:attr/textAppearanceMedium" />
198        </LinearLayout>
199
200    </FrameLayout>
201
202    <LinearLayout
203        android:layout_width="match_parent"
204        android:layout_height="wrap_content"
205        android:orientation="horizontal"
206        style="?android:attr/buttonBarStyle">
207        <Button android:id="@+id/cancel"
208            android:text="@string/do_not_save"
209            android:layout_width="0dip"
210            android:layout_gravity="right"
211            android:layout_weight="1"
212            android:maxLines="2"
213            android:layout_height="wrap_content"
214            style="?android:attr/buttonBarButtonStyle" />
215        <Button android:id="@+id/OK"
216            android:text="@string/save"
217            android:layout_width="0dip"
218            android:layout_gravity="left"
219            android:layout_weight="1"
220            android:maxLines="2"
221            android:layout_height="wrap_content"
222            style="?android:attr/buttonBarButtonStyle" />
223    </LinearLayout>
224
225</merge>
226