Added Android code
[wl-app.git] / Android / app / src / main / res / layout / fragment_library.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <ScrollView 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:fillViewport="true">
7
8     <LinearLayout
9         android:layout_width="match_parent"
10         android:layout_height="wrap_content"
11         android:orientation="vertical"
12         android:paddingBottom="20dp">
13
14         <RelativeLayout
15             android:id="@+id/rlBecomeAFriend"
16             android:layout_width="match_parent"
17             android:layout_height="wrap_content"
18             android:layout_gravity="center_horizontal"
19             android:background="@color/splash_background"
20             android:padding="10dp">
21
22             <Button
23                 android:id="@+id/btnBecomeAFriend"
24                 style="@style/RoundedButton.Orange"
25                 android:layout_width="wrap_content"
26                 android:layout_alignParentEnd="true"
27                 android:drawableEnd="@drawable/ic_arrow_right_white_24dp"
28                 android:text="@string/become_a_friend"
29                 android:textSize="10dp"
30                 tools:ignore="SpUsage"/>
31
32             <View
33                 android:layout_width="match_parent"
34                 android:layout_height="1dp"
35                 android:layout_centerVertical="true"
36                 android:layout_margin="@dimen/separator_padding"
37                 android:layout_toStartOf="@id/btnBecomeAFriend"
38                 android:background="@color/orange_light"/>
39
40         </RelativeLayout>
41
42         <View
43             android:id="@+id/vBecomeAFriendSeparator"
44             android:layout_width="match_parent"
45             android:layout_height="10dp"
46             android:background="@color/splash_background"/>
47
48         <include
49             android:id="@+id/libraryHeader"
50             layout="@layout/library_header"/>
51
52         <RelativeLayout
53             android:id="@+id/rlReadingNowContainer"
54             android:layout_width="match_parent"
55             android:layout_height="wrap_content"
56             android:visibility="gone">
57
58             <TextView
59                 android:id="@+id/tvNowReading"
60                 style="@style/SeparatorText"
61                 android:layout_width="wrap_content"
62                 android:layout_height="wrap_content"
63                 android:layout_alignParentStart="true"
64                 android:layout_centerVertical="true"
65                 android:layout_margin="10dp"
66                 android:text="@string/library_now_reading"/>
67
68             <Button
69                 android:id="@+id/btnNowReadingSeeAll"
70                 style="@style/FlatButton.Separator"
71                 android:layout_width="wrap_content"
72                 android:layout_height="wrap_content"
73                 android:layout_alignParentEnd="true"
74                 android:layout_centerVertical="true"
75                 android:text="@string/see_all"/>
76
77             <View
78                 android:layout_width="match_parent"
79                 android:layout_height="1dp"
80                 android:layout_centerVertical="true"
81                 android:layout_margin="@dimen/separator_padding"
82                 android:layout_toEndOf="@id/tvNowReading"
83                 android:layout_toStartOf="@id/btnNowReadingSeeAll"
84                 android:background="@color/gray_dark"/>
85
86         </RelativeLayout>
87
88         <com.moiseum.wolnelektury.components.ProgressRecyclerView
89             android:id="@+id/rvNowReading"
90             android:layout_width="match_parent"
91             android:layout_height="200dp"
92             android:visibility="gone"/>
93
94         <RelativeLayout
95             android:layout_width="match_parent"
96             android:layout_height="wrap_content">
97
98             <TextView
99                 android:id="@+id/tvNewest"
100                 style="@style/SeparatorText"
101                 android:layout_width="wrap_content"
102                 android:layout_height="wrap_content"
103                 android:layout_alignParentStart="true"
104                 android:layout_centerVertical="true"
105                 android:layout_margin="10dp"
106                 android:text="@string/library_newest"/>
107
108             <Button
109                 android:id="@+id/btnNewestSeeAll"
110                 style="@style/FlatButton.Separator"
111                 android:layout_width="wrap_content"
112                 android:layout_height="wrap_content"
113                 android:layout_alignParentEnd="true"
114                 android:layout_centerVertical="true"
115                 android:text="@string/see_all"/>
116
117             <View
118                 android:layout_width="match_parent"
119                 android:layout_height="1dp"
120                 android:layout_centerVertical="true"
121                 android:layout_margin="@dimen/separator_padding"
122                 android:layout_toEndOf="@id/tvNewest"
123                 android:layout_toStartOf="@id/btnNewestSeeAll"
124                 android:background="@color/gray_dark"/>
125
126         </RelativeLayout>
127
128         <com.moiseum.wolnelektury.components.ProgressRecyclerView
129             android:id="@+id/rvNewest"
130             android:layout_width="match_parent"
131             android:layout_height="200dp"/>
132
133         <RelativeLayout
134             android:layout_width="match_parent"
135             android:layout_height="wrap_content">
136
137             <TextView
138                 android:id="@+id/tvRecommended"
139                 style="@style/SeparatorText"
140                 android:layout_width="wrap_content"
141                 android:layout_height="wrap_content"
142                 android:layout_alignParentStart="true"
143                 android:layout_centerVertical="true"
144                 android:layout_margin="10dp"
145                 android:text="@string/library_recommended"/>
146
147             <Button
148                 android:id="@+id/btnRecommendedSeeAll"
149                 style="@style/FlatButton.Separator"
150                 android:layout_width="wrap_content"
151                 android:layout_height="wrap_content"
152                 android:layout_alignParentEnd="true"
153                 android:layout_centerVertical="true"
154                 android:text="@string/see_all"/>
155
156             <View
157                 android:layout_width="match_parent"
158                 android:layout_height="1dp"
159                 android:layout_centerVertical="true"
160                 android:layout_margin="@dimen/separator_padding"
161                 android:layout_toEndOf="@id/tvRecommended"
162                 android:layout_toStartOf="@id/btnRecommendedSeeAll"
163                 android:background="@color/gray_dark"/>
164
165         </RelativeLayout>
166
167         <com.moiseum.wolnelektury.components.ProgressRecyclerView
168             android:id="@+id/rvRecommended"
169             android:layout_width="match_parent"
170             android:layout_height="200dp"/>
171
172         <!--<RelativeLayout-->
173         <!--android:layout_width="match_parent"-->
174         <!--android:layout_height="wrap_content">-->
175
176         <!--<TextView-->
177         <!--android:id="@+id/tvMyCollection"-->
178         <!--style="@style/SeparatorText"-->
179         <!--android:layout_width="wrap_content"-->
180         <!--android:layout_height="wrap_content"-->
181         <!--android:layout_alignParentStart="true"-->
182         <!--android:layout_centerVertical="true"-->
183         <!--android:layout_margin="10dp"-->
184         <!--android:text="@string/library_my_collection"/>-->
185
186         <!--<Button-->
187         <!--android:id="@+id/btnMyCollectionSeeAll"-->
188         <!--style="@style/FlatButton.Separator"-->
189         <!--android:layout_width="wrap_content"-->
190         <!--android:layout_height="wrap_content"-->
191         <!--android:layout_alignParentEnd="true"-->
192         <!--android:layout_centerVertical="true"-->
193         <!--android:text="@string/see_all"/>-->
194
195         <!--<View-->
196         <!--android:layout_width="match_parent"-->
197         <!--android:layout_height="1px"-->
198         <!--android:layout_centerVertical="true"-->
199         <!--android:layout_margin="@dimen/separator_padding"-->
200         <!--android:layout_toEndOf="@id/tvMyCollection"-->
201         <!--android:layout_toStartOf="@id/btnMyCollectionSeeAll"-->
202         <!--android:background="@color/gray_dark"/>-->
203
204         <!--</RelativeLayout>-->
205
206         <!--<com.moiseum.wolnelektury.components.ProgressRecyclerView-->
207         <!--android:id="@+id/rvMyCollection"-->
208         <!--android:layout_width="match_parent"-->
209         <!--android:layout_height="200dp"/>-->
210
211
212     </LinearLayout>
213
214 </ScrollView>