Fix blurry launcher icon on Xiaomi tablet desktop and dock - #253
Merged
Conversation
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
approved these changes
Jul 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.xmlvector 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
Android/app/src/main/res/drawable/ic_launcher_foreground.xml:android:widthfrom24dpto108dpandroid:heightfrom24dpto108dpviewportWidthandviewportHeightremain at48(vector coordinate system)scaleX="0.68"andscaleY="0.68"transforms remain unchanged to maintain proper icon positioning within the safe zone