Skip to content

Commit

Permalink
fix: smartspacer layout (#5207)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
amcoder authored Jan 25, 2025
1 parent 2ffd541 commit 011845a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions lawnchair/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 2 additions & 3 deletions res/layout/smartspace_smartspacer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 011845a

Please sign in to comment.