MIUI Stacked Recent Tasks Launcher icon

MIUI Stacked Recent Tasks Launcher

v1.9.1guidecommunity

Systemless packaging of Xposeded's stacked desktop engine, unlocking iOS-style horizontal card stacking and smooth task switching in Xiaomi MIUI Launcher.

Community Package•Customization & UI•by Nanju Beizhi & Xposeded•GPL-3.0-only•Updated Jan 1, 2023
Platforms:
✓ Magisk✓ KernelSU✓ APatch
Download v1.9.1Starting download...
miui-stacked-recent-tasks-v1.9.1.zip

Overview

MIUI Stacked Recent Tasks Launcher (engineered by Xposeded and packaged for Magisk by Nanju Beizhi) is a specialized user interface modification that replaces Xiaomi’s vertical 2-column task switcher with a horizontal, overlapping stacked card deck inspired by iOS multitasking.

For users accustomed to horizontal task switching or who find small dual-column previews difficult to read, this module reprograms the layout manager inside MiuiHome.apk, providing large, detailed app windows with smooth gesture inertia.


Technical Architecture & How It Works

Task switching in MIUI is handled directly within the launcher package:

1. Layout Manager Replacement

The module overrides the default RecentsView implementation:

  • Injects custom horizontal layout calculations that dynamically offset each background task card along the Z-axis.
  • Applies scale factors (e.g. 0.9x to 0.7x) to background cards as they move away from the active center focus.

2. Gesture Transition Physics

Touch gesture curves are retuned to match the spring dynamics of stacked cards:

  • Upward swipe flick: Dismisses the focused application with inertia.
  • Downward swipe: Locks the application in memory to prevent automated cleanup.
  • Horizontal scrub: Cycles rapidly across the deck without dropping frames.

Troubleshooting & Verification

  • Changing Layout Options: Open Settings > Home screen > Arrange items in Recents and verify that the layout switcher is set to Horizontally.
  • Lag or Frame Drops: Ensure that your device has at least 3GB of free RAM; heavily cluttered background states can cause frame dips on older processors.

Frequently Asked Questions

How does the stacked layout compare to MIUI's stock vertical grid?

MIUI default recents use a 2-column vertical grid. The stacked layout presents large, single-app previews that overlap horizontally, allowing easier one-handed browsing and clearer window previews.

What should I do if the screen goes black upon reboot?

If you encounter an incompatible launcher conflict, enter custom recovery (TWRP/OrangeFox) or use Magisk safe mode to remove the module directory from /data/adb/modules/ppp.