1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** Copyright 2010, The Android Open Source Project 5 ** 6 ** Licensed under the Apache License, Version 2.0 (the "License"); 7 ** you may not use this file except in compliance with the License. 8 ** You may obtain a copy of the License at 9 ** 10 ** http://www.apache.org/licenses/LICENSE-2.0 11 ** 12 ** Unless required by applicable law or agreed to in writing, software 13 ** distributed under the License is distributed on an "AS IS" BASIS, 14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ** See the License for the specific language governing permissions and 16 ** limitations under the License. 17 */ 18 --> 19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical" 23 android:divider="?android:attr/dividerHorizontal" 24 android:showDividers="middle" 25 android:dividerPadding="16dip"> 26 27 <!-- The main area showing the list of downloads --> 28 <FrameLayout android:layout_width="match_parent" 29 android:layout_height="0dip" 30 android:layout_weight="1"> 31 32 <ExpandableListView android:id="@+id/date_ordered_list" 33 android:paddingLeft="16dip" 34 android:paddingRight="16dip" 35 android:paddingBottom="16dip" 36 android:clipToPadding="false" 37 android:layout_width="match_parent" 38 android:layout_height="match_parent"/> 39 <ListView android:id="@+id/size_ordered_list" 40 android:paddingLeft="16dip" 41 android:paddingRight="16dip" 42 android:paddingBottom="16dip" 43 android:clipToPadding="false" 44 android:layout_width="match_parent" 45 android:layout_height="match_parent"/> 46 <TextView xmlns:android="http://schemas.android.com/apk/res/android" 47 android:id="@+id/empty" 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" 50 android:text="@string/no_downloads" 51 android:gravity="center" 52 android:textStyle="bold"/> 53 </FrameLayout> 54 55 <!-- The selection menu that pops up from the bottom of the screen --> 56 <LinearLayout android:id="@+id/sort_menu" 57 android:orientation="horizontal" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:layout_gravity="center" 61 style="?android:attr/buttonBarStyle"> 62 63 <Button android:id="@+id/sort_button" 64 style="?android:attr/buttonBarButtonStyle" 65 android:layout_width="0dip" 66 android:layout_weight="1" 67 android:layout_height="match_parent"/> 68 </LinearLayout> 69 </LinearLayout> 70