Skip to content Skip to sidebar Skip to footer

Display Density And Resources Usage (ldpi/mdpi/hdpi/xhdpi)

So I got HTC smartphone with 800x480 display. I always thought that it is HDPI device. And I was ensured using the following code: Display display = activity.getWindowManager().get

Solution 1:

You may try to read this page: http://developer.android.com/guide/topics/resources/providing-resources.html , it shows a complete explanation about screen density and others when you want to organize your resource folder.

About device being treated like MDPI it may be like Nexus 7, we were sure that it was MDPI, but it was using images from HDPI and also some values from MDPI/sw600dp (things that you will find better explained at that link above there), because its density, actually was TVDPI and so it's a 'middle' density between HDPI and MDPI. Try to download an app called ScreenInfo, on GooglePlay. It shows various informations about device screen, and may help you to make sure about your HTC.

Hope it helps.

Solution 2:

Sorry for delay, so, first of all, you have to decide which public you want. You have to keep in mind that there are inumerous devices around there and it's almost impossible to cover all of them. I'd advise you to start with devices considered normal(screen normal, and MDPI density) because that is the baseline. And then, worry about others, based on that first one. Understand that the differentiation on resources folders are only done if necessary. In most cases, resources used to baseline works well for everyone.

Hope it helps.

Post a Comment for "Display Density And Resources Usage (ldpi/mdpi/hdpi/xhdpi)"