Binary files are always read from the mdpi folder, regardless of screen size

I am trying to create an application that works both on the Samsung Galaxy GT P1000 tab and on the Samsung 10.1 galaxy; The female Galaxy Samsung 10.1 (1280 * 800) has a much larger screen than the GT P1000 screen, so I assume that the GT P1000 should be read from hdpi, and 10.1 should be read from xhdpi. Surprisingly, they both read from the mdpi folder. Relations

+4
source share
3 answers

Large screen sizes do not necessarily mean high pixel density. For pixel density, you must consider both the physical size of the screen and the screen resolution.

For example, consider Galaxy Note 1 and Galaxy Tab 10.1 , both have a screen resolution of 1280*800 , but the galaxy tab 10.1 has a physical screen size of 10.1 inch , while a galactic note has a physical screen size of 5.3 inch , which is almost half the size of a galaxy. Thus, a galactic note has more pixels per inch than the galaxy tab 10.1, and has a density of xhdpi , where when the 10.1 galaxy tab has a density of mdpi , check the density values ​​in this link -

http://developer.android.com/guide/practices/screens_support.html

For tab 10.1 you should use drawable-xlarge-mdpi folder, and GT P1000 should also use mdpi, but as I saw in many online posts that have problems with GT P1000, it has mdpi density but it uses drawables from hdpi I did not check so for GT P1000 you can try to use drawable-large-hdpi folder if drawable-large-mdpi not wok.

Also add xlarge support to your manifest.

  <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" /> 

You must use 2.3 and above sdk to use xlarge, as was added later.

+15
source

mdpi refers to screen density, in dots per inch, and not to total size. I believe that both devices have the same density, so they load resources from the mdpi folder.

You may have separate layout resources based on the actual screen size (large / medium / small) rather than density. See the documentation .

+1
source

Just create a new drawable-xlarge-mdpi folder name and paste all the images into it .. The device will automatically receive from this folder ..!

My problem with Galaxy Tab2 has been resolved!

0
source

All Articles