Sitemap
Dipien

Productivity tools & ideas for Android, Kotlin & Gradle developers.

Member-only story

10 ideas to reduce your APK size [Part III]

6 min readMar 12, 2023

--

In this series of 3 articles, we will explore some ideas to minimize your app’s download and install size. This is the second part of the 10 ideas to reduce your APK size series. Here you can read Part I and Part II.

1. Use nine-patch images

Nine-patch images are a useful tool for reducing the size of Android APKs. These images allow developers to create scalable images that can be resized without losing quality, reducing the need for multiple versions of the same image. This means that fewer images need to be included in the APK, reducing its size and improving performance.

In addition, using nine-patch images can help to improve the user experience of the app. By providing high-quality images that scale well across different devices and screen sizes, developers can ensure that the app looks and performs well on all devices.

However, it’s important to note that nine-patch images are not suitable for all types of images. They work best for images with simple shapes and clear borders, and may not be suitable for more complex images or those with intricate details.

--

--

Dipien
Dipien

Published in Dipien

Productivity tools & ideas for Android, Kotlin & Gradle developers.

Maxi Rosson
Maxi Rosson

Written by Maxi Rosson

I write about Bitcoin, Productivity tools & ideas for Android, Kotlin & Gradle developers | ⚡️dipien@getalby.com

No responses yet