Bogdan Tudorascu
Newbie
I have an image that I'm using as a background for an app. I really like how it looks. I would like the android device to resize it automatically.
I tried to use Picasso library with :
Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);
this will work but it takes time to display it and I don't like that.
After that I used android:scaleType="fitXY" which works on my Note3 device, but it won't work on a galaxy Nexus. I'm getting "Bitmap too large to be uploaded into a texture (2880x4320, max=4096x4096)". My image is 720x1080 px. I know that the android is converting it and it is somehow exceeding the dp limit.
My image is a png file. I have it in a photoshop project so I can save it as any file if it could help me.
I would like some ideas on how to scale it automatically on every device if it is possible, if not I would be happy with suggestions on what resolutions are every drawable-mhdpi,hdpi,xhdpi etc folder and how to resize my image without damaging the aspect. Thank you
I tried to use Picasso library with :
Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);
this will work but it takes time to display it and I don't like that.
After that I used android:scaleType="fitXY" which works on my Note3 device, but it won't work on a galaxy Nexus. I'm getting "Bitmap too large to be uploaded into a texture (2880x4320, max=4096x4096)". My image is 720x1080 px. I know that the android is converting it and it is somehow exceeding the dp limit.
My image is a png file. I have it in a photoshop project so I can save it as any file if it could help me.
I would like some ideas on how to scale it automatically on every device if it is possible, if not I would be happy with suggestions on what resolutions are every drawable-mhdpi,hdpi,xhdpi etc folder and how to resize my image without damaging the aspect. Thank you
