From 746ad60b021fef0773e32c1ceb3072d4ec966459 Mon Sep 17 00:00:00 2001 From: Andrey Epin Date: Tue, 29 Aug 2023 17:19:40 -0700 Subject: Image Preview UI: adjust the +N item and loading idicator layouts Add layout variants for phone-landscape orientation. Fix: 298112959 Test: visual check while sharing items using ShareTest app with artificial delays and loading failures enabled. Change-Id: I2d323784908143b435aefcc9ce96de6ab91df027 --- .../layout-h480dp/image_preview_loading_item.xml | 32 ++++++++++++++++++++++ .../res/layout-h480dp/image_preview_other_item.xml | 31 +++++++++++++++++++++ java/res/layout/image_preview_image_item.xml | 4 +-- java/res/layout/image_preview_loading_item.xml | 5 ++-- java/res/layout/image_preview_other_item.xml | 10 ++++--- 5 files changed, 74 insertions(+), 8 deletions(-) create mode 100644 java/res/layout-h480dp/image_preview_loading_item.xml create mode 100644 java/res/layout-h480dp/image_preview_other_item.xml (limited to 'java') diff --git a/java/res/layout-h480dp/image_preview_loading_item.xml b/java/res/layout-h480dp/image_preview_loading_item.xml new file mode 100644 index 00000000..85020e9a --- /dev/null +++ b/java/res/layout-h480dp/image_preview_loading_item.xml @@ -0,0 +1,32 @@ + + + + + + + diff --git a/java/res/layout-h480dp/image_preview_other_item.xml b/java/res/layout-h480dp/image_preview_other_item.xml new file mode 100644 index 00000000..470f105a --- /dev/null +++ b/java/res/layout-h480dp/image_preview_other_item.xml @@ -0,0 +1,31 @@ + + + + + + + \ No newline at end of file diff --git a/java/res/layout/image_preview_image_item.xml b/java/res/layout/image_preview_image_item.xml index 3f534831..442e9345 100644 --- a/java/res/layout/image_preview_image_item.xml +++ b/java/res/layout/image_preview_image_item.xml @@ -18,8 +18,8 @@ + android:layout_width="@dimen/chooser_preview_image_height_tall" + android:layout_height="@dimen/chooser_preview_image_height_tall"> + android:layout_width="wrap_content" + android:layout_height="@dimen/chooser_preview_image_height_tall" + android:padding="8dp"> + android:layout_width="wrap_content" + android:layout_height="@dimen/chooser_preview_image_height_tall" + android:paddingHorizontal="@dimen/chooser_edge_margin_normal_half"> -- cgit v1.2.3-59-g8ed1b