fix: smartspacer layout (#5207)

Modified the smartspacer layout to be more like the stock At a Glance
layout by adding equal padding to both sides and clipping the pages as
they are scrolled.

Fixes #5206
This commit is contained in:
Andy Miller
2025-01-25 01:13:32 -05:00
committed by GitHub
parent 2ffd541baf
commit 011845a06e
2 changed files with 3 additions and 3 deletions

View File

@@ -78,6 +78,7 @@
<dimen name="enhanced_smartspace_icon_size">20dp</dimen>
<dimen name="enhanced_smartspace_margin_start_launcher">0dp</dimen>
<dimen name="enhanced_smartspace_padding_start">16dp</dimen>
<dimen name="enhanced_smartspace_padding_end">16dp</dimen>
<dimen name="enhanced_smartspace_padding_top">16dp</dimen>
<dimen name="enhanced_smartspace_secondary_card_corner_radius">28dp</dimen>
<dimen name="enhanced_smartspace_secondary_card_end_margin">1dp</dimen>

View File

@@ -4,9 +4,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:clipChildren="false"
android:clipToPadding="false"
android:paddingStart="@dimen/enhanced_smartspace_padding_start">
android:paddingStart="@dimen/enhanced_smartspace_padding_start"
android:paddingEnd="@dimen/enhanced_smartspace_padding_end">
<androidx.viewpager.widget.ViewPager
android:id="@+id/smartspace_card_pager"