dpi - Android: Background image resolution? -


I am developing an Android application that displays an image in the background. I have read the documentation and it says that MDPI should be the base line and all other DPIs should be related to it. But I am not able to decide what the image of the background image should be in pixels for all the DPI? Any remedy?

The best approach depends, but to save space and to maintain resolution on all density, only one Includes a single image When your activities are loaded in your app, use a scale load based on the device's DisplayMetrics. If you are not worried about the resolution, then scaling from MPDI is fine (but I'm pretty sure you are asking because the resolution on high density is a concern, and based on your background image).

For the advice of "beginning" with MDPI, it is necessary to make numerical scaling and be able to conceptualize it. In other words, when you start with MDPI how "scanning" is the easiest, how scaling works on Android, your usage cases are more important.

There are several instances of scaling up images based on your needs, do not forget to use caching whenever possible, if your app loads many.

Another thing is that there is extended Hep Memory, if you come out due to OAMM due to the IAMG handling issues.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -