diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_post.xml | 25 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 5 |
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> |