• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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                            android:scrollbarStyle="outsideOverlay" />
40        <ListView android:id="@+id/size_ordered_list"
41                  android:paddingLeft="16dip"
42                  android:paddingRight="16dip"
43                  android:paddingBottom="16dip"
44                  android:clipToPadding="false"
45                  android:layout_width="match_parent"
46                  android:layout_height="match_parent"
47                  android:scrollbarStyle="outsideOverlay" />
48        <TextView xmlns:android="http://schemas.android.com/apk/res/android"
49                  android:id="@+id/empty"
50                  android:layout_width="match_parent"
51                  android:layout_height="match_parent"
52                  android:text="@string/no_downloads"
53                  android:gravity="center"
54                  android:textStyle="bold"/>
55    </FrameLayout>
56
57    <!-- The selection menu that pops up from the bottom of the screen -->
58    <LinearLayout android:id="@+id/sort_menu"
59                  android:orientation="horizontal"
60                  android:layout_width="match_parent"
61                  android:layout_height="wrap_content"
62                  android:layout_gravity="center"
63                  style="?android:attr/buttonBarStyle">
64
65          <Button android:id="@+id/sort_button"
66                  style="?android:attr/buttonBarButtonStyle"
67                  android:layout_width="0dip"
68                  android:layout_weight="1"
69                  android:layout_height="match_parent"/>
70     </LinearLayout>
71</LinearLayout>
72