diff options
author | Alex Ning <chineseperson5@gmail.com> | 2018-12-27 07:14:10 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2018-12-27 07:14:10 +0000 |
commit | 93a9ad9ece6df6cd210ca03be26bd74a760cb90f (patch) | |
tree | 5ebef6b4902899154e779f256803944595e59db9 /app/src/main/res/layout | |
parent | 807ddf5a6e595d2368579008bb8132296be54ea2 (diff) | |
download | infinity-for-reddit-93a9ad9ece6df6cd210ca03be26bd74a760cb90f.tar infinity-for-reddit-93a9ad9ece6df6cd210ca03be26bd74a760cb90f.tar.gz infinity-for-reddit-93a9ad9ece6df6cd210ca03be26bd74a760cb90f.tar.bz2 infinity-for-reddit-93a9ad9ece6df6cd210ca03be26bd74a760cb90f.tar.lz infinity-for-reddit-93a9ad9ece6df6cd210ca03be26bd74a760cb90f.tar.xz infinity-for-reddit-93a9ad9ece6df6cd210ca03be26bd74a760cb90f.tar.zst infinity-for-reddit-93a9ad9ece6df6cd210ca03be26bd74a760cb90f.zip |
Display a MaterialLoadingProgressBar instead of a ProgressBar when loading posts. Correctly handle the visibility of the MaterialLoadingProgressBar when loading posts.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_view_post_detail.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_post.xml | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index 56b8db56..c9020ae9 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -258,13 +258,15 @@ </android.support.v7.widget.CardView> - <ProgressBar + <com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBar android:id="@+id/comment_progress_bar_view_post_detail" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center" - android:layout_margin="16dp" - android:visibility="gone"/> + android:layout_marginTop="16dp" + android:layout_marginBottom="16dp" + app:mlpb_progress_stoke_width="3dp" + app:mlpb_progress_color="@color/colorAccent" + android:layout_gravity="center_horizontal"/> <android.support.v7.widget.CardView android:id="@+id/comment_card_view_view_post_detail" diff --git a/app/src/main/res/layout/fragment_post.xml b/app/src/main/res/layout/fragment_post.xml index 431a2292..9493bb8f 100644 --- a/app/src/main/res/layout/fragment_post.xml +++ b/app/src/main/res/layout/fragment_post.xml @@ -6,13 +6,15 @@ android:id="@+id/coordinator_layout_post_fragment" tools:context="ml.docilealligator.infinityforreddit.PostFragment"> - <ProgressBar + <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" - android:layout_gravity="center" /> + app:mlpb_progress_stoke_width="3dp" + app:mlpb_progress_color="@color/colorAccent" + android:layout_gravity="center_horizontal"/> <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view_post_fragment" |