Skip to content

Fix blurry launcher icon on Xiaomi tablet desktop and dock - #253

Merged
ravindu644 merged 2 commits into
ravindu644:devfrom
Yizhou147:fix-launcher-icon-blurry
Jul 26, 2026
Merged

Fix blurry launcher icon on Xiaomi tablet desktop and dock#253
ravindu644 merged 2 commits into
ravindu644:devfrom
Yizhou147:fix-launcher-icon-blurry

Conversation

@Yizhou147

Copy link
Copy Markdown
Contributor

Summary

The launcher icon appears blurry on Xiaomi tablet's desktop and dock bar, while it displays correctly in Settings > All Apps. This fix addresses the root cause by ensuring the adaptive icon foreground vector has the correct canvas size.

Root Cause

The ic_launcher_foreground.xml vector drawable was configured with an intrinsic size of 24dp × 24dp, while the standard Android adaptive icon canvas size is 108dp × 108dp.

On Xiaomi's MIUI/HyperOS launcher, the icon rendering pipeline rasterizes the vector at its intrinsic size first, then scales it up to the target size (108dp), resulting in a 4.5x magnification and visible blurriness. The Settings app uses a different rendering path that directly renders the vector at the target size, which is why it appears sharp there.

Changes Made

  • Modified Android/app/src/main/res/drawable/ic_launcher_foreground.xml:
    • Changed android:width from 24dp to 108dp
    • Changed android:height from 24dp to 108dp
    • viewportWidth and viewportHeight remain at 48 (vector coordinate system)
    • The scaleX="0.68" and scaleY="0.68" transforms remain unchanged to maintain proper icon positioning within the safe zone

Change ic_launcher_foreground.xml width/height from 24dp to 108dp to match
adaptive icon canvas size. This fixes the blurry icon issue on Xiaomi tablet
desktop and dock bar where the launcher renders the vector at its intrinsic
size before scaling up.
@ravindu644
ravindu644 changed the base branch from main to dev July 26, 2026 15:01
@ravindu644
ravindu644 merged commit 0e022a2 into ravindu644:dev Jul 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants