Added Android code
[wl-app.git] / Android / app / src / main / res / layout / fragment_news.xml
diff --git a/Android/app/src/main/res/layout/fragment_news.xml b/Android/app/src/main/res/layout/fragment_news.xml
new file mode 100644 (file)
index 0000000..c7912c6
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:animateLayoutChanges="true">
+
+    <com.moiseum.wolnelektury.components.ProgressRecyclerView
+        android:id="@+id/rvNews"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"/>
+
+    <ProgressBar
+        android:id="@+id/pbLoadMore"
+        style="@style/Base.Widget.AppCompat.ProgressBar"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentBottom="true"
+        android:layout_centerHorizontal="true"
+        android:layout_marginBottom="10dp"
+        android:visibility="gone"/>
+
+    <Button
+        android:id="@+id/btnReloadMore"
+        style="@style/RoundedButton.WhiteBorder"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignParentBottom="true"
+        android:layout_centerHorizontal="true"
+        android:layout_marginBottom="10dp"
+        android:text="@string/load_again"
+        android:visibility="gone"/>
+</RelativeLayout>
\ No newline at end of file