Search code examples
androidnine-patch

Sometimes after cleaning and redeploying 9 Patches images dont work. Have to redeploy a few times to fix


I'm not sure why this is happening.. But sometimes when we have a new build, the 9 patches don't work (the actual 9 patch image gets stretched instead of being scaled properly)..

I'm not sure why this happens, but i think it happens after cleaning and creating a new build, i have to uninstall, and re-build to fix it..

I'm just worried when we release, customers might get this screen (it looks terrible).. Any ideas why this is happening?


Solution

  • The only 'fast' way I found on fixing that issue is renaming the nine patch drawable to a temporal name and then rename it back to it's original name.

    I know it's a bit hacky but at least it works :D