From cdcdb41132c35d97aed252559786ff3db91e8d94 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Thu, 2 Dec 2021 23:12:00 +0100 Subject: [PATCH] align video duration to the middle of video icon --- app/src/main/res/layout/video_item_grid.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/video_item_grid.xml b/app/src/main/res/layout/video_item_grid.xml index fe8de5bf4..0b7836121 100644 --- a/app/src/main/res/layout/video_item_grid.xml +++ b/app/src/main/res/layout/video_item_grid.xml @@ -29,9 +29,9 @@ android:layout_alignParentTop="true" android:layout_alignParentEnd="true" android:layout_margin="@dimen/small_margin" - android:padding="@dimen/small_margin" - android:gravity="end" android:background="@drawable/circle_black_background" + android:gravity="end" + android:padding="@dimen/small_margin" android:src="@drawable/ic_star_vector" android:visibility="gone" /> @@ -39,9 +39,10 @@ android:id="@+id/video_duration" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:layout_toRightOf="@id/play_portrait_outline" + android:layout_alignTop="@+id/play_portrait_outline" + android:layout_alignBottom="@+id/play_portrait_outline" android:layout_marginTop="@dimen/small_margin" + android:layout_toEndOf="@id/play_portrait_outline" android:ellipsize="end" android:gravity="end" android:maxLines="1"