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 authored and GitHub committed 2025-01-25 14:13:32 +08:00
1 parent 2ffd541baf
commit 011845a06e
2 files changed
+3 -3

No files matched your search

+1
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>
+2 -3
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"