diff options
author | 2023-09-07 01:18:38 +0000 | |
---|---|---|
committer | 2023-09-07 01:18:38 +0000 | |
commit | e7b6dce2df1de1e57ccbe617fe34a51666958ff3 (patch) | |
tree | 30d6b138ddcab6bc2d1bf95bf0b4a410cb58cd79 /java/res | |
parent | 7e58e8edd139f8da01169999df6739571f730ccd (diff) | |
parent | 1e5f7710fd7f7065706bdee9baec1a77f679abad (diff) |
Merge "Image Preview UI: adjust the +N item and loading idicator layouts" into udc-qpr-dev am: 7a41683292 am: 1e5f7710fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/IntentResolver/+/24596231
Change-Id: I462b1f1c466ffb03db81072c29e5673fa0846634
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/layout-h480dp/image_preview_loading_item.xml | 32 | ||||
-rw-r--r-- | java/res/layout-h480dp/image_preview_other_item.xml | 31 | ||||
-rw-r--r-- | java/res/layout/image_preview_image_item.xml | 4 | ||||
-rw-r--r-- | java/res/layout/image_preview_loading_item.xml | 5 | ||||
-rw-r--r-- | java/res/layout/image_preview_other_item.xml | 10 |
5 files changed, 74 insertions, 8 deletions
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 @@ +<!-- + ~ Copyright (C) 2023 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" + android:layout_width="@dimen/chooser_preview_image_width" + android:layout_height="@dimen/chooser_preview_image_height_tall"> + + <ProgressBar + android:id="@+id/loading_indicator" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:indeterminate="true" + android:indeterminateTint="?androidprv:attr/materialColorPrimary" + android:indeterminateTintMode="src_in" /> + +</FrameLayout> 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 @@ +<!-- + ~ Copyright (C) 2023 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --> + +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="@dimen/chooser_preview_image_width" + android:layout_height="@dimen/chooser_preview_image_height_tall"> + + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:drawableTop="@drawable/ic_file_copy" + android:drawablePadding="8dp" + android:textAppearance="@style/TextAppearance.ChooserDefault" /> + +</FrameLayout>
\ 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 @@ <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" - android:layout_width="46dp" - android:layout_height="46dp"> + android:layout_width="@dimen/chooser_preview_image_height_tall" + android:layout_height="@dimen/chooser_preview_image_height_tall"> <com.android.intentresolver.widget.RoundedRectImageView android:id="@+id/image" diff --git a/java/res/layout/image_preview_loading_item.xml b/java/res/layout/image_preview_loading_item.xml index 85020e9a..a8a8f264 100644 --- a/java/res/layout/image_preview_loading_item.xml +++ b/java/res/layout/image_preview_loading_item.xml @@ -17,8 +17,9 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" - android:layout_width="@dimen/chooser_preview_image_width" - 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"> <ProgressBar android:id="@+id/loading_indicator" diff --git a/java/res/layout/image_preview_other_item.xml b/java/res/layout/image_preview_other_item.xml index 07f87e3a..db458656 100644 --- a/java/res/layout/image_preview_other_item.xml +++ b/java/res/layout/image_preview_other_item.xml @@ -16,16 +16,18 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="@dimen/chooser_preview_image_width" - android:layout_height="@dimen/chooser_preview_image_height_tall"> + android:layout_width="wrap_content" + android:layout_height="@dimen/chooser_preview_image_height_tall" + android:paddingHorizontal="@dimen/chooser_edge_margin_normal_half"> <TextView android:id="@+id/label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:drawableTop="@drawable/ic_file_copy" - android:drawablePadding="8dp" + android:drawableStart="@drawable/ic_file_copy" + android:drawablePadding="4dp" + android:gravity="bottom" android:textAppearance="@style/TextAppearance.ChooserDefault" /> </FrameLayout> |