Added Android code
[wl-app.git] / Android / app / src / main / res / layout / fragment_search.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3               xmlns:tools="http://schemas.android.com/tools"
4               android:layout_width="match_parent"
5               android:layout_height="match_parent"
6               android:animateLayoutChanges="true"
7               android:orientation="vertical">
8
9     <RelativeLayout
10         android:id="@+id/rlFiltersContainer"
11         android:layout_width="match_parent"
12         android:layout_height="@dimen/book_search_filters_height"
13         android:background="@color/turquoise_dark"
14         android:visibility="gone">
15
16         <ImageButton
17             android:id="@+id/ibClearFilters"
18             android:layout_width="wrap_content"
19             android:layout_height="wrap_content"
20             android:layout_alignParentEnd="true"
21             android:layout_centerVertical="true"
22             android:layout_marginLeft="10dp"
23             android:layout_marginRight="10dp"
24             android:background="@drawable/close_filters_selector"
25             android:padding="12dp"
26             android:src="@drawable/close_small_dark_tint"
27             tools:ignore="ContentDescription"/>
28
29         <android.support.v7.widget.RecyclerView
30             android:id="@+id/rvFilters"
31             android:layout_width="match_parent"
32             android:layout_height="match_parent"
33             android:layout_toStartOf="@id/ibClearFilters"/>
34     </RelativeLayout>
35
36     <RelativeLayout
37         android:animateLayoutChanges="true"
38         android:layout_width="match_parent"
39         android:layout_height="match_parent">
40
41         <com.moiseum.wolnelektury.components.ProgressRecyclerView
42             android:id="@+id/rvBooks"
43             android:layout_width="match_parent"
44             android:layout_height="match_parent"/>
45
46         <ProgressBar
47             android:id="@+id/pbLoadMore"
48             style="@style/Base.Widget.AppCompat.ProgressBar"
49             android:layout_width="wrap_content"
50             android:layout_height="wrap_content"
51             android:layout_alignParentBottom="true"
52             android:layout_centerHorizontal="true"
53             android:layout_marginBottom="10dp"
54             android:visibility="gone"/>
55
56         <Button
57             android:id="@+id/btnReloadMore"
58             style="@style/RoundedButton.WhiteBorder"
59             android:layout_width="wrap_content"
60             android:layout_height="wrap_content"
61             android:layout_alignParentBottom="true"
62             android:layout_centerHorizontal="true"
63             android:layout_marginBottom="10dp"
64             android:text="@string/load_again"
65             android:visibility="gone"/>
66     </RelativeLayout>
67
68 </LinearLayout>