1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2014 The Android Open Source Project
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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/favorite_view"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:gravity="center" >
23
24    <ListView
25        android:id="@+id/station_list"
26        android:layout_width="match_parent"
27        android:layout_height="match_parent" />
28
29    <LinearLayout
30        android:id="@+id/empty_tips"
31        android:layout_width="match_parent"
32        android:layout_height="match_parent"
33        android:gravity="center"
34        android:orientation="vertical"
35        android:visibility="gone" >
36
37        <ImageView
38            android:id="@+id/empty_img"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:src="@drawable/ic_station_null"/>
42
43        <TextView
44            android:id="@+id/empty_text"
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            android:layout_marginTop="@dimen/fm_empty_text_margin_top"
48            android:text="@string/station_empty_text"
49            android:gravity="center"
50            android:textSize="@dimen/fm_station_searching_tips_size"
51            android:fontFamily="sans-serif"
52            android:alpha="0.87" />
53    </LinearLayout>
54
55    <LinearLayout
56        android:id="@+id/search_tips"
57        android:layout_width="@dimen/fm_list_progress_width"
58        android:layout_height="match_parent"
59        android:visibility="gone"
60        android:gravity="center"
61        android:orientation="vertical" >
62        <TextView
63            android:layout_width="@dimen/fm_list_progress_width"
64            android:layout_height="wrap_content"
65            android:text="@string/station_searching_tips"
66            android:gravity="center"
67            android:textSize="@dimen/fm_station_searching_tips_size"
68            android:fontFamily="sans-serif"
69            android:alpha="0.87" />
70        <ProgressBar
71            android:id="@+id/search_progress"
72            android:layout_width="@dimen/fm_list_progress_width"
73            android:layout_height="wrap_content"
74            android:layout_marginTop="@dimen/fm_search_progress_margin_top"
75            style="?android:attr/progressBarStyleHorizontal"
76            />
77    </LinearLayout>
78</RelativeLayout>