The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 1 | <?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 Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 19 | android:layout_height="wrap_content" |
| 20 | android:orientation="vertical" |
| 21 | > |
| 22 | |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 23 | <ImageView android:id="@+id/titleDivider" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 24 | android:layout_width="match_parent" |
Ben Murdoch | a753d00 | 2009-10-01 11:36:19 +0100 | [diff] [blame] | 25 | 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 III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 32 | <RelativeLayout android:id="@+id/default_view" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 33 | android:layout_width="match_parent" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 34 | android:layout_height="wrap_content" |
| 35 | android:layout_weight="1" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 36 | 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 III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 45 | android:layout_alignParentTop="true" |
| 46 | android:layout_marginRight="50dip" |
| 47 | android:layout_marginBottom="40dip" |
| 48 | android:layout_marginTop="40dip" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 49 | 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 III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 58 | android:layout_alignBaseline="@+id/titleText" |
| 59 | android:layout_toRightOf="@+id/titleText" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 60 | android:inputType="textCapSentences" |
| 61 | android:selectAllOnFocus="true" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 62 | android:ellipsize="end" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 63 | 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 III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 73 | 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 Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 77 | 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 III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 84 | android:layout_alignBaseline="@+id/addressText" |
| 85 | android:layout_alignLeft="@+id/title" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 86 | android:gravity="fill_horizontal" |
| 87 | android:inputType="textUri" |
| 88 | android:selectAllOnFocus="true" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 89 | 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 Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 116 | android:layout_width="500dip" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 117 | android:layout_height="wrap_content" |
| 118 | android:orientation="vertical" |
| 119 | android:visibility="gone" |
| 120 | > |
| 121 | |
| 122 | <TextView |
| 123 | android:id="@+id/path" |
Michael Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 124 | android:layout_marginTop="4dip" |
| 125 | android:layout_marginLeft="16dip" |
| 126 | android:layout_marginRight="16dip" |
| 127 | android:layout_marginBottom="4dip" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 128 | 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 Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 133 | android:textAppearance="?android:attr/textAppearanceLarge" /> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 134 | |
| 135 | <ListView |
| 136 | android:id="@+id/list" |
Michael Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 137 | android:layout_marginLeft="16dip" |
| 138 | android:layout_marginRight="16dip" |
| 139 | android:layout_width="match_parent" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 140 | android:layout_height="wrap_content" |
| 141 | /> |
| 142 | <EditText |
| 143 | android:id="@+id/folder_namer" |
Michael Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 144 | android:layout_marginLeft="16dip" |
| 145 | android:layout_marginRight="16dip" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 146 | 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 Kolb | d40ac1a | 2010-09-29 00:23:46 -0700 | [diff] [blame] | 152 | android_marginTop="16dip" |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 153 | 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 Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 157 | android:textAppearance="?android:attr/textAppearanceMedium" /> |
| 158 | </LinearLayout> |
Leon Scroggins III | 052ce66 | 2010-09-13 14:44:16 -0400 | [diff] [blame] | 159 | |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 160 | <LinearLayout |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 161 | android:layout_width="match_parent" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 162 | android:layout_height="wrap_content" |
The Android Open Source Project | 0c90888 | 2009-03-03 19:32:16 -0800 | [diff] [blame] | 163 | 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> |