blob: 604bda88a93aceab9a3fd4e92ecd79477f96a189 [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"
Romain Guy15b8ec62010-01-08 15:06:43 -080018 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -080019 android:layout_height="wrap_content"
20 android:orientation="vertical"
21 >
22
Ben Murdocha753d002009-10-01 11:36:19 +010023 <ImageView android:id="@+id/titleDivider"
Romain Guy15b8ec62010-01-08 15:06:43 -080024 android:layout_width="match_parent"
Ben Murdocha753d002009-10-01 11:36:19 +010025 android:layout_height="1dip"
26 android:scaleType="fitXY"
27 android:gravity="fill_horizontal"
28 android:src="@drawable/dialog_divider_horizontal_light"
29 android:layout_marginLeft="10dip"
30 android:layout_marginRight="10dip"/>
31
Leon Scroggins III052ce662010-09-13 14:44:16 -040032 <RelativeLayout android:id="@+id/default_view"
Romain Guy15b8ec62010-01-08 15:06:43 -080033 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -080034 android:layout_height="wrap_content"
35 android:layout_weight="1"
The Android Open Source Project0c908882009-03-03 19:32:16 -080036 android:paddingTop="5dip"
37 android:paddingBottom="13dip"
38 android:paddingLeft="20dip"
39 android:paddingRight="20dip" >
40
41 <TextView
42 android:id="@+id/titleText"
43 android:layout_height="wrap_content"
44 android:layout_width="wrap_content"
Leon Scroggins III052ce662010-09-13 14:44:16 -040045 android:layout_alignParentTop="true"
46 android:layout_marginRight="50dip"
47 android:layout_marginBottom="40dip"
48 android:layout_marginTop="40dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080049 android:text="@string/name"
50 android:gravity="left"
51 android:textAppearance="?android:attr/textAppearanceMedium" />
52
53 <EditText
54 android:id="@+id/title"
55 android:layout_height="wrap_content"
56 android:layout_width="250dip"
57 android:gravity="fill_horizontal"
Leon Scroggins III052ce662010-09-13 14:44:16 -040058 android:layout_alignBaseline="@+id/titleText"
59 android:layout_toRightOf="@+id/titleText"
The Android Open Source Project0c908882009-03-03 19:32:16 -080060 android:inputType="textCapSentences"
61 android:selectAllOnFocus="true"
Leon Scroggins III052ce662010-09-13 14:44:16 -040062 android:ellipsize="end"
The Android Open Source Project0c908882009-03-03 19:32:16 -080063 android:textAppearance="?android:attr/textAppearanceMedium" />
64
65
66
67 <TextView
68 android:id="@+id/addressText"
69 android:layout_height="wrap_content"
70 android:layout_width="wrap_content"
71 android:text="@string/location"
72 android:gravity="left"
Leon Scroggins III052ce662010-09-13 14:44:16 -040073 android:layout_below="@+id/titleText"
74 android:layout_alignLeft="@+id/titleText"
75 android:layout_marginBottom="40dip"
76 android:layout_marginRight="20dip"
The Android Open Source Project0c908882009-03-03 19:32:16 -080077 android:textAppearance="?android:attr/textAppearanceMedium" />
78
79 <EditText
80 android:id="@+id/address"
81 android:layout_height="wrap_content"
82 android:layout_width="250dip"
83 android:hint="@string/http"
Leon Scroggins III052ce662010-09-13 14:44:16 -040084 android:layout_alignBaseline="@+id/addressText"
85 android:layout_alignLeft="@+id/title"
The Android Open Source Project0c908882009-03-03 19:32:16 -080086 android:gravity="fill_horizontal"
87 android:inputType="textUri"
88 android:selectAllOnFocus="true"
Leon Scroggins III052ce662010-09-13 14:44:16 -040089 android:ellipsize="end"
90 android:textAppearance="?android:attr/textAppearanceMedium" />
91
92 <TextView
93 android:id="@+id/add_to"
94 android:layout_height="wrap_content"
95 android:layout_width="wrap_content"
96 android:text="@string/containing_folder"
97 android:layout_below="@+id/addressText"
98 android:layout_alignLeft="@+id/titleText"
99 android:layout_marginRight="20dip"
100 android:textAppearance="?android:attr/textAppearanceMedium" />
101
102 <TextView
103 android:id="@+id/folder"
104 android:layout_height="wrap_content"
105 android:layout_width="250dip"
106 android:layout_alignLeft="@+id/title"
107 android:layout_alignBaseline="@+id/add_to"
108 android:singleLine="true"
109 android:ellipsize="start"
110 android:text="@string/bookmarks"
111 android:textAppearance="?android:attr/textAppearanceMedium" />
112
113 </RelativeLayout>
114
115 <LinearLayout android:id="@+id/folder_selector"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700116 android:layout_width="500dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400117 android:layout_height="wrap_content"
118 android:orientation="vertical"
119 android:visibility="gone"
120 >
121
122 <TextView
123 android:id="@+id/path"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700124 android:layout_marginTop="4dip"
125 android:layout_marginLeft="16dip"
126 android:layout_marginRight="16dip"
127 android:layout_marginBottom="4dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400128 android:layout_width="wrap_content"
129 android:layout_height="wrap_content"
130 android:singleLine="true"
131 android:ellipsize="start"
132 android:text="@string/bookmarks"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700133 android:textAppearance="?android:attr/textAppearanceLarge" />
Leon Scroggins III052ce662010-09-13 14:44:16 -0400134
135 <ListView
136 android:id="@+id/list"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700137 android:layout_marginLeft="16dip"
138 android:layout_marginRight="16dip"
139 android:layout_width="match_parent"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400140 android:layout_height="wrap_content"
141 />
142 <EditText
143 android:id="@+id/folder_namer"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700144 android:layout_marginLeft="16dip"
145 android:layout_marginRight="16dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400146 android:layout_width="match_parent"
147 android:layout_height="wrap_content"
148 android:visibility="gone"
149 />
150 <Button
151 android:id="@+id/add_new_folder"
Michael Kolbd40ac1a2010-09-29 00:23:46 -0700152 android_marginTop="16dip"
Leon Scroggins III052ce662010-09-13 14:44:16 -0400153 android:layout_width="wrap_content"
154 android:layout_height="wrap_content"
155 android:layout_gravity="center_horizontal"
156 android:text="@string/add_new_folder"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800157 android:textAppearance="?android:attr/textAppearanceMedium" />
158 </LinearLayout>
Leon Scroggins III052ce662010-09-13 14:44:16 -0400159
The Android Open Source Project0c908882009-03-03 19:32:16 -0800160 <LinearLayout
Romain Guy15b8ec62010-01-08 15:06:43 -0800161 android:layout_width="match_parent"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800162 android:layout_height="wrap_content"
The Android Open Source Project0c908882009-03-03 19:32:16 -0800163 android:minHeight="54dip"
164 android:orientation="horizontal"
165 android:paddingTop="4dip"
166 android:paddingLeft="2dip"
167 android:paddingRight="2dip" >
168 <Button android:id="@+id/OK"
169 android:text="@string/save"
170 android:layout_width="0dip"
171 android:layout_gravity="left"
172 android:layout_weight="1"
173 android:maxLines="2"
174 android:layout_height="wrap_content" />
175 <Button android:id="@+id/cancel"
176 android:text="@string/do_not_save"
177 android:layout_width="0dip"
178 android:layout_gravity="right"
179 android:layout_weight="1"
180 android:maxLines="2"
181 android:layout_height="wrap_content" />
182 </LinearLayout>
183
184</LinearLayout>