Deldri
Lurker
Hi everyone,
I got one image wich size is 64x64. It is placed in res/drawable-nodpi directory.
The image is getting scaled (to a tiny version) in a xxhdpi screen. Why? Isn't a resource in drawable-nodpi directory meant to not be scaled?
I have got minSDK 8 in manifest.
I'm also using:
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inScaled = false;
icon = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon, opts);
And drawing it in a canvas with drawBitmap(icon, 0, 0, paint);
I'm getting tired of trying a lot of things and not getting the right answer, if anyone knows please answer.
Thanks in advance.
I got one image wich size is 64x64. It is placed in res/drawable-nodpi directory.
The image is getting scaled (to a tiny version) in a xxhdpi screen. Why? Isn't a resource in drawable-nodpi directory meant to not be scaled?
I have got minSDK 8 in manifest.
I'm also using:
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inScaled = false;
icon = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon, opts);
And drawing it in a canvas with drawBitmap(icon, 0, 0, paint);
I'm getting tired of trying a lot of things and not getting the right answer, if anyone knows please answer.
Thanks in advance.
Last edited: