Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b185e25 authored by Adam Cohen's avatar Adam Cohen
Browse files

Fixing up PagedView to work in landscape mode

-> separated notion of page spacing and paged view padding
-> always position the current page within the rect
   created by pagedview's viewport + padding
-> space pages by a constant amount

Change-Id: I6bb35f72f04543f83b51ef981f8c9ded051623ac
parent b88ae415
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@
            android:layout_height="match_parent"
            android:layout_gravity="center"
            launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
            launcher:pageSpacing="@dimen/workspace_page_spacing"
            launcher:pageIndicator="@id/page_indicator" />

        <include layout="@layout/hotseat"
+0 −1
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
            launcher:pageSpacing="@dimen/workspace_page_spacing"
            launcher:pageIndicator="@id/page_indicator">
        </com.android.launcher3.Workspace>

+0 −1
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            launcher:defaultScreen="@integer/config_workspaceDefaultScreen"
            launcher:pageSpacing="@dimen/workspace_page_spacing"
            launcher:pageIndicator="@id/page_indicator">
        </com.android.launcher3.Workspace>

+0 −5
Original line number Diff line number Diff line
@@ -19,11 +19,6 @@
    <dimen name="toolbar_button_vertical_padding">8dip</dimen>
    <dimen name="toolbar_button_horizontal_padding">0dip</dimen>

<!-- Workspace -->
    <!-- We really want the page spacing to be the max of either the button bar
     height or the qsb bar height -->
    <dimen name="workspace_page_spacing">-1dp</dimen>

<!-- AppsCustomize -->
    <dimen name="apps_customize_tab_bar_height">42dp</dimen>
    <integer name="apps_customize_widget_cell_count_x">3</integer>
+0 −3
Original line number Diff line number Diff line
@@ -15,9 +15,6 @@
-->

<resources>
<!-- Workspace -->
    <dimen name="workspace_page_spacing">-1dp</dimen>

<!-- AppsCustomize -->
    <integer name="apps_customize_cling_focused_x">1</integer>
    <integer name="apps_customize_cling_focused_y">1</integer>
Loading