-
Notifications
You must be signed in to change notification settings - Fork 1
/
movie_list.xml
51 lines (45 loc) · 2.25 KB
/
movie_list.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.ipforsmartobjects.apps.popularmovies.util.AutoFitGridRecyclerView
android:id="@+id/movie_item_list"
android:name="org.ipforsmartobjects.apps.popularmovies.MovieItemListFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:columnWidth="@dimen/movie_item_column_width"
app:layoutManager="GridLayoutManager"
tools:context="org.ipforsmartobjects.apps.popularmovies.movie.MovieListActivity"
tools:listitem="@layout/movie_list_item" />
<ProgressBar
android:id="@+id/progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:visibility="gone" />
<TextView
android:id="@+id/error_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/loading_failed"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:visibility="gone" />
<TextView
android:id="@+id/empty_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/no_favorite"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:visibility="gone" />
</RelativeLayout>
</android.support.v4.widget.SwipeRefreshLayout>
</layout>