From a914ed95ef2874bbde229a79e5c314dad474e25f Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 19 Dec 2019 18:39:40 +0800 Subject: Hide progress bar in post compact layout when the post is a video. --- app/src/main/res/layout/item_post_compact.xml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml index 411bf5fc..c3de103f 100644 --- a/app/src/main/res/layout/item_post_compact.xml +++ b/app/src/main/res/layout/item_post_compact.xml @@ -89,8 +89,7 @@ app:layout_constraintBottom_toTopOf="@id/flow_layout_item_post_compact" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toStartOf="@id/barrier2" - app:layout_constraintTop_toTopOf="parent" - tools:text="asdfas fas dfa sdfa sdfa sdfasdfasdf asdfasdfasdf" /> + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintBottom_toBottomOf="parent" /> + app:layout_constraintTop_toTopOf="parent"> + android:layout_centerInParent="true" + android:visibility="gone" /> @@ -273,16 +270,14 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toEndOf="@id/barrier2" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintTop_toTopOf="parent" - tools:visibility="visible" /> + app:layout_constraintTop_toTopOf="parent" /> + app:constraint_referenced_ids="image_view_wrapper_item_post_compact,image_view_no_preview_link_item_post_compact" /> -- cgit v1.2.3