From 93a9ad9ece6df6cd210ca03be26bd74a760cb90f Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 27 Dec 2018 15:14:10 +0800 Subject: Display a MaterialLoadingProgressBar instead of a ProgressBar when loading posts. Correctly handle the visibility of the MaterialLoadingProgressBar when loading posts. --- app/src/main/res/layout/activity_view_post_detail.xml | 10 ++++++---- app/src/main/res/layout/fragment_post.xml | 6 ++++-- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'app/src/main/res') 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:layout_marginTop="16dp" + android:layout_marginBottom="16dp" + app:mlpb_progress_stoke_width="3dp" + app:mlpb_progress_color="@color/colorAccent" + android:layout_gravity="center_horizontal"/> - + app:mlpb_progress_stoke_width="3dp" + app:mlpb_progress_color="@color/colorAccent" + android:layout_gravity="center_horizontal"/>