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

Commit 59924fe0 authored by Winson's avatar Winson
Browse files

Iterating on stack layout

- Tweaking initial layout to show more of the next task
- Bounding the width of the stack to the smallest display edge length
- Fixing issue where the screen pinning button was not shown when
  entering recents from home, and the task view clip state was not
  restored correctly for tasks in front of the launch task.
- Fixing issue where there was no alpha during the transition to/from
  home
- Refactoring and removing unused dimens, and moved remaining layout
  calculation logic out of RecentsConfiguration.
- Fixing small regression in finding task anchor scroll points. This
  caused tasks to be animated strangely when swiping to dismiss and
  the task had an override task progress.
- Fixing several regressions in drag and drop due to override progresses

Change-Id: I1eac1dcea19e502bc7fe6362011b38977e3f3d6d
parent e468a67d
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/task_view_bar"
    android:layout_width="match_parent"
    android:layout_height="@dimen/recents_task_bar_height"
    android:layout_height="@dimen/recents_task_view_header_height"
    android:layout_gravity="top|center_horizontal">
    <com.android.systemui.recents.views.FixedSizeImageView
        android:id="@+id/icon"
@@ -28,8 +28,8 @@
        android:layout_gravity="center_vertical|start"
        android:paddingTop="8dp"
        android:paddingBottom="8dp"
        android:paddingStart="12dp"
        android:paddingEnd="16dp" />
        android:paddingStart="16dp"
        android:paddingEnd="12dp" />
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
@@ -71,7 +71,7 @@
        android:layout_height="@dimen/recents_task_view_header_button_height"
        android:layout_marginEnd="@dimen/recents_task_view_header_button_width"
        android:layout_gravity="center_vertical|end"
        android:padding="13dp"
        android:padding="16dp"
        android:src="@drawable/star"
        android:background="?android:selectableItemBackground"
        android:alpha="0"
@@ -81,7 +81,7 @@
        android:layout_width="@dimen/recents_task_view_header_button_width"
        android:layout_height="@dimen/recents_task_view_header_button_height"
        android:layout_gravity="center_vertical|end"
        android:padding="13dp"
        android:padding="16dp"
        android:src="@drawable/recents_dismiss_light"
        android:background="?android:selectableItemBackground"
        android:alpha="0"
+4 −4
Original line number Diff line number Diff line
@@ -25,8 +25,8 @@
        android:layout_gravity="center_vertical|start"
        android:paddingTop="8dp"
        android:paddingBottom="8dp"
        android:paddingStart="12dp"
        android:paddingEnd="16dp" />
        android:paddingStart="16dp"
        android:paddingEnd="12dp" />
    <TextView
        android:id="@+id/app_title"
        android:layout_width="match_parent"
@@ -45,9 +45,9 @@
    <com.android.systemui.recents.views.FixedSizeImageView
        android:id="@+id/app_info"
        android:layout_width="@dimen/recents_task_view_header_button_width"
        android:layout_height="@dimen/recents_task_bar_height"
        android:layout_height="@dimen/recents_task_view_header_button_height"
        android:layout_gravity="center_vertical|end"
        android:padding="13dp"
        android:padding="16dp"
        android:background="?android:selectableItemBackground"
        android:src="@drawable/recents_info_light" />
</FrameLayout>
 No newline at end of file
+0 −10
Original line number Diff line number Diff line
@@ -28,14 +28,4 @@

    <!-- We have only space for one notification on phone landscape layouts. -->
    <integer name="keyguard_max_notification_count">1</integer>

    <!-- Recents: The relative range of visible tasks from the current scroll position
         while the stack is focused. -->
    <item name="recents_layout_focused_range_min" format="float" type="integer">-3</item>
    <item name="recents_layout_focused_range_max" format="float" type="integer">2</item>

    <!-- Recents: The relative range of visible tasks from the current scroll position
         while the stack is not focused. -->
    <item name="recents_layout_unfocused_range_min" format="float" type="integer">-2</item>
    <item name="recents_layout_unfocused_range_max" format="float" type="integer">1.5</item>
</resources>
+0 −3
Original line number Diff line number Diff line
@@ -22,9 +22,6 @@
    <!-- Standard notification gravity -->
    <integer name="notification_panel_layout_gravity">@integer/standard_notification_panel_layout_gravity</integer>

    <!-- The size of the initial peek area at the bottom of the stack (above the nav bar). -->
    <dimen name="recents_initial_bottom_peek_size">@dimen/recents_task_bar_height</dimen>

    <dimen name="docked_divider_handle_width">2dp</dimen>
    <dimen name="docked_divider_handle_height">16dp</dimen>
</resources>
+0 −10
Original line number Diff line number Diff line
@@ -33,16 +33,6 @@
    <!-- Set to true to enable the user switcher on the keyguard. -->
    <bool name="config_keyguardUserSwitcher">true</bool>

    <!-- Recents: The relative range of visible tasks from the current scroll position
         while the stack is focused. -->
    <item name="recents_layout_focused_range_min" format="float" type="integer">-3</item>
    <item name="recents_layout_focused_range_max" format="float" type="integer">3</item>

    <!-- Recents: The relative range of visible tasks from the current scroll position
         while the stack is not focused. -->
    <item name="recents_layout_unfocused_range_min" format="float" type="integer">-2</item>
    <item name="recents_layout_unfocused_range_max" format="float" type="integer">2.5</item>

    <!-- Nav bar button default ordering/layout -->
    <string name="config_navBarLayout" translatable="false">space;back,home,recent;menu_ime</string>

Loading