Ale-Jandra
Ale-Jandra

Reputation: 83

How to change number of pixels to support different screen densities

I've read that it's good practice to provide images of different sizes in Android app development, to account for different pixel densities.

My question is: how can I accomplish this?

Should I find the image I want and just resize it (using, for example, something like Microsoft Paint)?

Or am I getting this wrong?

Upvotes: 3

Views: 61

Answers (1)

phatnhse
phatnhse

Reputation: 3920

Follow the documentation, create multiple resources is a right approach.Supporting Multiple Screens

Android support scaleType attributes to help you scale your ImageView (default is CenterCrop)

Beside of that, there is a library that could help you support all screens in Android SDP Github

Upvotes: 2

Related Questions