-
Notifications
You must be signed in to change notification settings - Fork 1
/
movie_list.xml
85 lines (71 loc) · 3.33 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false"
android:divider="?android:attr/dividerHorizontal"
android:orientation="horizontal"
android:showDividers="middle"
tools:context="org.ipforsmartobjects.apps.popularmovies.movie.MovieListActivity">
<!--
This layout is a two-pane layout for the MovieItems
master/detail flow.
-->
<LinearLayout
android:layout_width="@dimen/item_width"
android:layout_height="match_parent">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/refresh_layout"
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="@dimen/item_width"
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" />
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
<FrameLayout
android:id="@+id/movie_item_detail_container"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"
android:background="@color/colorPrimaryDark"
tools:ignore="InconsistentLayout">
<TextView
android:id="@+id/empty_detail_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:text="@string/empty_detail_view"
android:textAppearance="@style/TextAppearance.AppCompat.Display1" />
</FrameLayout>
<ProgressBar
android:id="@+id/progress"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<TextView
android:id="@+id/error_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:text="@string/loading_failed"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:visibility="gone" />
<TextView
android:id="@+id/empty_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:text="@string/no_favorite"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:visibility="gone" />
</LinearLayout>
</layout>