0

I have just realised I have been under the wrong impression about the whole mdpi/hdpi/xhdpi issue. I had the idea that on a big 10 inch tablet, the OS will naturally use the image in the xhdpi directory and on a small phone the OS will select the one in the mdpi directory... but after some experimentation I've realised that the different directories are for different pixels per inch and independent of the the actual total number of pixels. But this is a real problem, because now I am having trouble arranging to have the largest images being used for the largest absolute number of pixels. Can this be done without stretching/shrinking the bitmaps?

4

1 に答える 1

0

私自身の質問に答える...

私が今まで見たすべてのXMLの例がmdpi/hdpi / xhdpiを使用しているように見えたので、私はつまずいたので、画面の特性を指定するために存在する唯一の方法であると思いました。しかし、私はあなたが小/中/大および他のものも使用できることを見たばかりです-ここで説明されています。

于 2013-02-22T12:11:37.033 に答える