Files
lawnchair/res/layout/smartspace_smartspacer.xml
Andy Miller 011845a06e 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
2025-01-25 14:13:32 +08:00

29 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<app.lawnchair.smartspace.SmartspacerView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bc_smartspace_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingStart="@dimen/enhanced_smartspace_padding_start"
android:paddingEnd="@dimen/enhanced_smartspace_padding_end">
<androidx.viewpager.widget.ViewPager
android:id="@+id/smartspace_card_pager"
android:layout_width="match_parent"
android:layout_height="@dimen/enhanced_smartspace_height"
android:layout_marginBottom="@dimen/smartspace_page_margin_16"
android:layout_gravity="center" />
<com.kieronquinn.app.smartspacer.sdk.client.views.PageIndicator
android:id="@+id/smartspace_page_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left|center_vertical|center_horizontal|center|start"
android:importantForAccessibility="no"
android:paddingStart="@dimen/page_indicator_padding_start"
android:paddingTop="@dimen/page_indicator_padding_top_bottom"
android:paddingBottom="@dimen/page_indicator_padding_top_bottom"
android:visibility="visible" />
</app.lawnchair.smartspace.SmartspacerView>