From c393f91bcf5976d2db378b1da5a82a37ddc8e6c1 Mon Sep 17 00:00:00 2001 From: 1 Date: Fri, 21 Apr 2023 02:23:11 +0000 Subject: Align file sharing UI with mocks. Mocks: https://www.figma.com/file/JVIcmg4OhWuO5Vc1UdPVxe/Sharesheet-(U)?node-id=66-5067&t=GK4LwE6SDaQyVyov-0 - Split text into two lines (when needed) - Change headline to "files" instead of "items". - Shaded background around content. - Just use one icon for now (this will be updated later). Bug: 279070016 Test: atest UnbundledChooserActivityTest Test: atest HeadlineGeneratorImplTest Change-Id: I696b4bc21250290253b78b56c6fc20278e939a8a --- java/res/layout/chooser_grid_preview_file.xml | 76 ++++++++++++++++----------- java/res/layout/chooser_grid_preview_text.xml | 1 - java/res/values/strings.xml | 21 ++++---- 3 files changed, 55 insertions(+), 43 deletions(-) (limited to 'java/res') diff --git a/java/res/layout/chooser_grid_preview_file.xml b/java/res/layout/chooser_grid_preview_file.xml index 40ab2f0b..9fd90f10 100644 --- a/java/res/layout/chooser_grid_preview_file.xml +++ b/java/res/layout/chooser_grid_preview_file.xml @@ -27,41 +27,53 @@ android:paddingBottom="@dimen/chooser_view_spacing" android:background="?android:attr/colorBackground"> - + - - - - - + android:layout_gravity="center" + android:layout_marginHorizontal="@dimen/chooser_edge_margin_normal" + android:layout_marginBottom="@dimen/chooser_view_spacing" + android:padding="@dimen/chooser_edge_margin_normal" + android:background="@drawable/chooser_content_preview_rounded" + android:id="@androidprv:id/content_preview_file_layout"> + + + + + + - + diff --git a/java/res/layout/chooser_grid_preview_text.xml b/java/res/layout/chooser_grid_preview_text.xml index e22cfbd2..3a390025 100644 --- a/java/res/layout/chooser_grid_preview_text.xml +++ b/java/res/layout/chooser_grid_preview_text.xml @@ -32,7 +32,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" - android:orientation="horizontal" android:layout_marginLeft="@dimen/chooser_edge_margin_normal" android:layout_marginRight="@dimen/chooser_edge_margin_normal" android:layout_marginBottom="@dimen/chooser_view_spacing" diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index 1648831c..8a24b349 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -124,12 +124,6 @@ Edit - {count, plural, - =1 {{file_name} + # file} - other {{file_name} + # files} - } - - {count, plural, =1 {+ # file} @@ -137,6 +131,13 @@ } + + {count, plural, + =1 {+ # more file} + other {+ # more files} + } + + Sharing text @@ -153,11 +154,11 @@ other {Sharing # videos} } - - {count, plural, - =1 {Sharing # item} - other {Sharing # items} + {count, plural, + =1 {Sharing # file} + other {Sharing # files} } {count, plural, -- cgit v1.2.3-59-g8ed1b