| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- \r |
| 3 | * Copyright (C) 2007-2008 OpenIntents.org\r |
| 4 | *\r |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License");\r |
| 6 | * you may not use this file except in compliance with the License.\r |
| 7 | * You may obtain a copy of the License at\r |
| 8 | *\r |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0\r |
| 10 | *\r |
| 11 | * Unless required by applicable law or agreed to in writing, software\r |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS,\r |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r |
| 14 | * See the License for the specific language governing permissions and\r |
| 15 | * limitations under the License.\r |
| 16 | --> |
| 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:orientation="vertical" |
| 19 | android:layout_width="fill_parent" |
| 20 | android:layout_height="fill_parent">\r |
| 21 | <FrameLayout\r |
| 22 | android:layout_width="fill_parent" \r |
| 23 | android:layout_height="wrap_content">\r |
| 24 | <LinearLayout android:id="@+id/directory_buttons"\r |
| 25 | android:orientation="horizontal"\r |
| 26 | android:layout_width="wrap_content" \r |
| 27 | android:layout_height="wrap_content">\r |
| 28 | <!-- Buttons added here dynamically -->\r |
| 29 | </LinearLayout>\r |
| 30 | <LinearLayout android:id="@+id/directory_input"\r |
| 31 | android:orientation="horizontal"\r |
| 32 | android:layout_width="fill_parent" \r |
| 33 | android:layout_height="wrap_content"\r |
| 34 | android:visibility="gone">\r |
| 35 | <EditText android:id="@+id/directory_text"\r |
| 36 | android:layout_width="0dip"\r |
| 37 | android:layout_weight="1" \r |
| 38 | android:layout_height="wrap_content" />\r |
| 39 | <ImageButton android:id="@+id/button_directory_pick"\r |
| 40 | android:src="@drawable/ic_menu_forward_small"\r |
| 41 | android:layout_width="wrap_content" \r |
| 42 | android:layout_height="wrap_content" />\r |
| 43 | </LinearLayout>\r |
| 44 | </FrameLayout>\r |
| 45 | <FrameLayout |
| 46 | android:layout_width="fill_parent" |
| 47 | android:layout_height="wrap_content"> |
| 48 | <LinearLayout android:id="@+id/action_normal" |
| 49 | android:orientation="horizontal" |
| 50 | android:layout_width="fill_parent" |
| 51 | android:layout_height="wrap_content"> |
| 52 | <EditText android:id="@+id/filename" |
| 53 | android:layout_width="0dip" |
| 54 | android:layout_weight="1" |
| 55 | android:layout_height="wrap_content" /> |
| 56 | <Button android:id="@+id/button_pick" |
| 57 | android:text="@android:string/ok" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="wrap_content" |
| 60 | android:minWidth="64dip" /> |
| 61 | </LinearLayout> |
| 62 | <LinearLayout android:id="@+id/action_multiselect" |
| 63 | android:orientation="horizontal" |
| 64 | android:layout_width="fill_parent" |
| 65 | android:layout_height="wrap_content"> |
| 66 | <Button android:id="@+id/button_move" |
| 67 | android:text="@string/move_button_multiselect" |
| 68 | android:layout_width="fill_parent" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:layout_weight="1" |
| 71 | android:maxLines="1" /> |
| 72 | <Button android:id="@+id/button_copy" |
| 73 | android:text="@string/copy_button_multiselect" |
| 74 | android:layout_width="fill_parent" |
| 75 | android:layout_height="wrap_content" |
| 76 | android:layout_weight="1" |
| 77 | android:maxLines="1" /> |
| 78 | <Button android:id="@+id/button_delete" |
| 79 | android:text="@string/delete_button_multiselect" |
| 80 | android:layout_width="fill_parent" |
| 81 | android:layout_height="wrap_content" |
| 82 | android:layout_weight="1" |
| 83 | android:maxLines="1" /> |
| 84 | <Button android:id="@+id/button_compress_zip" |
| 85 | android:text="@string/compress_zip_button_multiselect" |
| 86 | android:layout_width="fill_parent" |
| 87 | android:layout_height="wrap_content" |
| 88 | android:layout_weight="1" |
| 89 | android:maxLines="1" /> |
| 90 | <ImageView android:id="@+id/check_icon_select" |
| 91 | android:layout_width="wrap_content" |
| 92 | android:layout_height="wrap_content" |
| 93 | android:minWidth="23dp" |
| 94 | android:layout_marginRight="4dp" |
| 95 | android:layout_gravity="right|center_vertical" |
| 96 | android:src="@drawable/ic_button_unchecked" /> |
| 97 | </LinearLayout> |
| 98 | </FrameLayout> |
| 99 | <!-- |
| 100 | <LinearLayout |
| 101 | android:orientation="vertical" |
| 102 | android:layout_width="fill_parent" |
| 103 | android:layout_height="wrap_content"> |
| 104 | |
| 105 | <Button android:id="@+id/add" |
| 106 | android:layout_width="wrap_content" |
| 107 | android:layout_height="wrap_content" |
| 108 | android:text="@string/menu_insert"\r |
| 109 | android:layout_gravity="center" /> |
| 110 | |
| 111 | </LinearLayout> |
| 112 | -->\r |
| 113 | |
| 114 | <!-- The frame layout is here since we will be showing either |
| 115 | the empty view or the list view. --> |
| 116 | <FrameLayout |
| 117 | android:layout_width="fill_parent" |
| 118 | android:layout_height="0dip" |
| 119 | android:layout_weight="1" > |
| 120 | <!-- Here is the list. Since we are using a ListActivity, we |
| 121 | have to call it "@android:id/list" so ListActivity will |
| 122 | find it -->\r |
| 123 | <ListView android:id="@android:id/list" |
| 124 | android:layout_width="fill_parent" |
| 125 | android:layout_height="fill_parent" |
| 126 | android:fastScrollEnabled="true" |
| 127 | android:drawSelectorOnTop="false"/> |
| 128 | |
| 129 | <!-- Here is the view to show if the list is empty -->\r |
| 130 | |
| 131 | <LinearLayout android:id="@+id/empty" |
| 132 | android:layout_width="fill_parent" |
| 133 | android:layout_height="fill_parent"> |
| 134 | |
| 135 | <!-- If the list is empty because there are no files... --> |
| 136 | |
| 137 | <TextView android:id="@+id/empty_text" |
| 138 | android:layout_width="fill_parent" |
| 139 | android:layout_height="fill_parent" |
| 140 | android:text="@string/this_folder_is_empty"\r |
| 141 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 142 | android:gravity="center" /> |
| 143 | |
| 144 | <!-- If the list is empty because we're still scanning... --> |
| 145 | |
| 146 | <ProgressBar android:id="@+id/scan_progress" |
| 147 | android:layout_height="wrap_content" |
| 148 | style="?android:attr/progressBarStyleHorizontal" |
| 149 | android:layout_width="fill_parent" |
| 150 | android:progress="0" |
| 151 | android:max="10" |
| 152 | android:secondaryProgress="0" |
| 153 | android:layout_gravity="center" |
| 154 | android:visibility="gone"/> |
| 155 | |
| 156 | </LinearLayout> |
| 157 | |
| 158 | </FrameLayout> |
| 159 | </LinearLayout> |