aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-11-15 09:23:59 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-11-15 09:23:59 +0000
commite0a9a02157153cbfd27ad6dacbfbabba158a278d (patch)
treed8356015ae1e4eb271e1271a584791192f98d378 /app/src/main/res
parent3233ca6471af3f966b3f6dee5497421442893ff7 (diff)
downloadinfinity-for-reddit-e0a9a02157153cbfd27ad6dacbfbabba158a278d.tar
infinity-for-reddit-e0a9a02157153cbfd27ad6dacbfbabba158a278d.tar.gz
infinity-for-reddit-e0a9a02157153cbfd27ad6dacbfbabba158a278d.tar.bz2
infinity-for-reddit-e0a9a02157153cbfd27ad6dacbfbabba158a278d.tar.lz
infinity-for-reddit-e0a9a02157153cbfd27ad6dacbfbabba158a278d.tar.xz
infinity-for-reddit-e0a9a02157153cbfd27ad6dacbfbabba158a278d.tar.zst
infinity-for-reddit-e0a9a02157153cbfd27ad6dacbfbabba158a278d.zip
Swiping to refresh posts is now available.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_post.xml25
-rw-r--r--app/src/main/res/values/styles.xml5
2 files changed, 16 insertions, 14 deletions
diff --git a/app/src/main/res/layout/fragment_post.xml b/app/src/main/res/layout/fragment_post.xml
index 56a9290f..263929d6 100644
--- a/app/src/main/res/layout/fragment_post.xml
+++ b/app/src/main/res/layout/fragment_post.xml
@@ -5,22 +5,19 @@
android:layout_height="match_parent"
tools:application="ml.docilealligator.infinityforreddit.Fragment.PostFragment">
- <com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBar
- android:id="@+id/progress_bar_post_fragment"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:layout_marginBottom="16dp"
- app:mlpb_progress_stoke_width="3dp"
- app:mlpb_progress_color="@color/colorAccent"
- app:mlpb_background_color="?attr/circularProgressBarBackground"
- android:layout_gravity="center_horizontal"/>
-
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_post_fragment"
+ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+ android:id="@+id/swipe_refresh_layout_post_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:clipToPadding="false" />
+ android:background="@color/backgroundColor">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/recycler_view_post_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:clipToPadding="false" />
+
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<LinearLayout
android:id="@+id/fetch_post_info_linear_layout_post_fragment"
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 57a528fd..3248cfd4 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -27,6 +27,11 @@
<item name="android:windowTranslucentStatus">true</item>
</style>
+ <style name="AppTheme.NoActionBarWithTransparentBackground" parent="AppTheme.NoActionBar">
+ <item name="android:windowIsTranslucent">true</item>
+ <item name="android:windowBackground">@android:color/transparent</item>
+ </style>
+
<style name="AppTheme.ActionBar.Transparent" parent="AppTheme">
<item name="android:windowBackground">@android:color/black</item>
<item name="android:windowTranslucentStatus">true</item>