• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (C) 2008 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 -->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19        android:orientation="vertical"
20        android:layout_width="fill_parent"
21        android:layout_height="fill_parent">
22
23    <FrameLayout
24            android:layout_width="fill_parent"
25            android:layout_height="0dip"
26            android:layout_weight="1">
27
28        <LinearLayout android:id="@+id/progressContainer"
29                android:orientation="vertical"
30                android:layout_width="fill_parent"
31                android:layout_height="fill_parent"
32                android:gravity="center">
33
34            <ProgressBar android:id="@+android:id/progress"
35                    style="?android:attr/progressBarStyleLarge"
36                    android:layout_width="wrap_content"
37                    android:layout_height="wrap_content" />
38            <TextView android:layout_width="wrap_content"
39                    android:layout_height="wrap_content"
40                    android:textAppearance="?android:attr/textAppearanceSmall"
41                    android:text="@string/loading"
42                    android:paddingTop="4dip"
43                    android:singleLine="true" />
44
45        </LinearLayout>
46
47        <FrameLayout android:id="@+id/listContainer"
48                android:layout_width="fill_parent"
49                android:layout_height="fill_parent">
50
51            <ListView android:id="@android:id/list"
52                    android:layout_width="fill_parent"
53                    android:layout_height="fill_parent"
54                    android:drawSelectorOnTop="false"
55                    android:fastScrollEnabled="true" />
56            <TextView android:id="@android:id/empty"
57                    android:layout_width="fill_parent"
58                    android:layout_height="fill_parent"
59                    android:gravity="center"
60                    android:text="@string/no_tracks_title"
61                    android:textAppearance="?android:attr/textAppearanceLarge" />
62        </FrameLayout>
63
64    </FrameLayout>
65
66    <RelativeLayout
67            android:layout_width="fill_parent"
68            android:layout_height="?android:attr/listPreferredItemHeight"
69            android:layout_marginTop="1dip"
70            android:background="@android:drawable/bottom_bar">
71        <Button android:id="@+id/okayButton"
72                android:layout_width="wrap_content"
73                android:layout_height="wrap_content"
74                android:layout_centerVertical="true"
75                android:layout_alignParentLeft="true"
76                android:text="@android:string/ok"
77                android:minWidth="120dip"
78                android:minHeight="48dip" />
79        <Button android:id="@+id/cancelButton"
80                android:layout_width="wrap_content"
81                android:layout_height="wrap_content"
82                android:layout_centerVertical="true"
83                android:layout_alignParentRight="true"
84                android:text="@android:string/cancel"
85                android:minWidth="120dip"
86                android:minHeight="48dip" />
87    </RelativeLayout>
88
89</LinearLayout>
90