multiscreen - Supporting Multiple Screens Android -
i know there lot of questions asked concerning topic, need help.
first of all, yes read , reread official link http://developer.android.com/guide/practices/screens_support.html
my problem following. i'm creating game, landscape view only. i'm displaying little character on screen.
let me tell understand doc :
- the system automatically tries find best image screen in folders : drawable/mdpi; hdpi etc
- if system doesn't find best image, take closest 1 , re-size it, can create artifact. therefore it's better provide image dp's
so how come when provide game 1 image in drawable/mdpi, doesn not automatically re-size proportionally screen of current device ? have tried on tablet , s2 , have different result. want image proportional on every screen.
thank you
you need add different image sizes in hdpi,mdpi,ldpi,xhdpi folders, re-size depending on device density. if want different different screen sizes (tablets example) can add images @ folders drawable-xlarge,drawable-large,drawable-normal,drawable-small.
xlarge screens @ least 960dp x 720dp large screens @ least 640dp x 480dp normal screens @ least 470dp x 320dp small screens @ least 426dp x 320dp
you can read proportions , folders in article provided: supporting multiple screens.
also can use 9-patch image, image edges cut depending on screen size. here article it: simple guide 9-patch image. , there web-site generate 9-patch images - android asset studio.
Comments
Post a Comment