summaryrefslogtreecommitdiff
path: root/java/res/layout
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-05-10 21:03:56 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-05-10 21:03:56 +0000
commit2fbd1d66dbb4a9fe26052b161970cb79f44488bd (patch)
tree2688bef6d8caf50df5c40e9452c0f0543262aa18 /java/res/layout
parent71f770aed21d7a1147c0582777a0f19200812941 (diff)
parente2fd2b2491d9ac79c58691707b7d64657619cd2a (diff)
Merge "Modify thumbnails on landscape phones to UX spec" into udc-dev
Diffstat (limited to 'java/res/layout')
-rw-r--r--java/res/layout/image_preview_image_item.xml14
1 files changed, 6 insertions, 8 deletions
diff --git a/java/res/layout/image_preview_image_item.xml b/java/res/layout/image_preview_image_item.xml
index 52f88ea0..3f534831 100644
--- a/java/res/layout/image_preview_image_item.xml
+++ b/java/res/layout/image_preview_image_item.xml
@@ -14,21 +14,21 @@
~ limitations under the License.
-->
+<!-- Note that this is the layout for landscape phones, the default is in drawable-480dp -->
<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="wrap_content"
- android:layout_height="@dimen/chooser_preview_image_height_tall">
+ android:layout_width="46dp"
+ android:layout_height="46dp">
<com.android.intentresolver.widget.RoundedRectImageView
android:id="@+id/image"
- android:layout_width="0dp"
+ android:layout_width="match_parent"
android:layout_height="match_parent"
- app:layout_constraintDimensionRatio="W,1:1"
android:layout_alignParentTop="true"
android:adjustViewBounds="false"
android:scaleType="centerCrop"
- app:radius="@dimen/chooser_corner_radius_small" />
+ app:radius="8dp" />
<FrameLayout
android:id="@+id/badge_frame"
@@ -45,9 +45,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
- android:layout_marginEnd="6dp"
- android:layout_marginTop="6dp"
android:tint="@android:color/white"
- android:layout_gravity="top|end" />
+ android:layout_gravity="center" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>