I have a problem in my app dev process. Actually, I am a the size of drawable part and there is something I dont get !

I try my app on 2 devices, one is 7 inch and the other is 4 inch, but both are consider xtrem high density pixel ( both are around 300 dpi ).

So how do I manage to get the right image size on the screen ? Because both device take the same image on the same folder, but since I am using a match content, the image is greate on 7 inch but way too big on 4 inch !

Do I need to work on this, match parent, content, fill parent, content ... or is there something else that I don't get ?

Thanks everybody !!!

有帮助吗?

解决方案

Which images you want to use in 4 inch put that images in

res->drawable-xhdpi folder

and which images you want to use in 7 inch, create a folder named

drawable-sw600dp

in res and put 7 inch related images in that folder.

其他提示

For 300dpi phone create drawable folder for

drawable-xhdpi for 4" phone and for 7" create folder drawable-sw600dp-mdpi.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top