I've done some research online with this problem, and i'm totally confused. If someone could help explain this in simple terms that would be great.
I have a background, menubackground.png. It was made in photoshop, I can resize this to any size for the different screens. It seems I get the error "the image menubackground.png varies significantly in its dpi across various density versions"
I have this in the xml file :
android:background="@drawable/menubackground"
I'm really confused why I get the lint error showing, I'm guessing it's because these sizes need changing according to screen size, but I have no idea what they should be to get this error removed. It's just a background, should be full screen.
Any ideas what sizes ( in pixels ) these need to be? Or, if there is something I need to change in photoshop when saving these images?
Thanks,
( Error below for details ): The image menubackground.png varies significantly in its density-independent (dip) size across the various density versions: drawable-ldpi\menubackground.png: 2017x3141 dp (1513x2356 px), drawable-mdpi\menubackground.png: 1513x2356 dp (1513x2356 px), drawable-hdpi\menubackground.png: 1009x1571 dp (1513x2356 px)
Issue: Ensures that icons across densities provide roughly the same density-independent size
Checks the all icons which are provided in multiple densities, all compute to roughly the same density-independent pixel (dip) size. This catches errors where images are either placed in the wrong folder, or icons are changed to new sizes but some folders are forgotten.
Additional Edit:
I have this for a few images, also for splash.png, but I have no idea how to calculate the sizes these should be. The background is a full screen background. The splash is just an image for the splash screen, centered.