mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user