From e31cdf138128d50b1ea1c90cadff2d3cf286278c Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 2 Nov 2020 10:11:08 +0100 Subject: [PATCH] use rounded corners at the Extended Details view --- .../drawable/extended_details_background.xml | 9 +++++++ app/src/main/res/layout/pager_photo_item.xml | 24 +++++++++---------- app/src/main/res/layout/pager_video_item.xml | 23 +++++++++--------- 3 files changed, 32 insertions(+), 24 deletions(-) create mode 100644 app/src/main/res/drawable/extended_details_background.xml diff --git a/app/src/main/res/drawable/extended_details_background.xml b/app/src/main/res/drawable/extended_details_background.xml new file mode 100644 index 000000000..a2a09c0c3 --- /dev/null +++ b/app/src/main/res/drawable/extended_details_background.xml @@ -0,0 +1,9 @@ + + + + + + + + diff --git a/app/src/main/res/layout/pager_photo_item.xml b/app/src/main/res/layout/pager_photo_item.xml index 2b90a6bb3..2238ea26d 100644 --- a/app/src/main/res/layout/pager_photo_item.xml +++ b/app/src/main/res/layout/pager_photo_item.xml @@ -1,7 +1,7 @@ @@ -9,7 +9,7 @@ + android:layout_height="match_parent" /> + android:scaleType="fitCenter" /> @@ -30,17 +30,17 @@ android:id="@+id/subsampling_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:visibility="gone"/> + android:visibility="gone" /> + android:visibility="gone" /> + tools:text="My image\nAnother line" /> + android:layout_alignParentStart="true" /> + android:textSize="@dimen/extra_big_text_size" /> + android:layout_height="match_parent" /> + android:layout_alignParentEnd="true" /> diff --git a/app/src/main/res/layout/pager_video_item.xml b/app/src/main/res/layout/pager_video_item.xml index 144e53972..6e46132d8 100644 --- a/app/src/main/res/layout/pager_video_item.xml +++ b/app/src/main/res/layout/pager_video_item.xml @@ -1,6 +1,5 @@ - + android:layout_height="match_parent" /> + android:layout_centerInParent="true" /> @@ -28,12 +27,12 @@ android:id="@+id/video_volume_controller" android:layout_width="@dimen/media_side_slider_width" android:layout_height="match_parent" - android:layout_alignParentEnd="true"/> + android:layout_alignParentEnd="true" /> + android:layout_height="match_parent" /> + android:src="@drawable/ic_play_outline_vector" /> + android:visibility="gone" /> + tools:text="My video\nAnother line" /> - + + android:textSize="@dimen/extra_big_text_size" />