From the course: Android Development Essential Training: The User Interface with Kotlin

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create alternative bitmap resources

Create alternative bitmap resources - Android Tutorial

From the course: Android Development Essential Training: The User Interface with Kotlin

Start my 1-month free trial

Create alternative bitmap resources

- [Instructor] Whenever you include a Bitmap image files in your application, especially JPG and PNG files, it's a good practice to create multiple versions of these files for the different pixel density buckets, different screens; When you create icons in Android Studio, this is handled for you, so for example I have multiple versions of my IC_monster.png file. In recent versions of Android Studio, you can also see this in the Resources tab. It shows here that there are five versions of IC_monster and double clicking shows the different images in preview. Now, this is handled for you for icons in Android Studio, but Android Studio will not do the same thing for your larger, more colorful files. To create multiple versions of images like this one, I use an open source software project called Final Android Resizer; It's a Java based application that's packaged in a JAR file, and I've included a copy of it in this project, specifically in this branch of this GitHub repository. You'll…

Contents