Questions tagged [mdpi]

MDPI refers to a medium-density screen (about 160 dpi) used on an Android device.

Term or suffix used in Android that stands for medium density displays. -mdpi can be added to layout, drawable, etc. folders in order to maintain artifacts that have especially been designed for this density.

Beside mdpi, one might use ldpi, hdpi or xhdpi, too. The Android system automatically chooses the appropriate resource files.

See official documentation for more.

46 questions
5
votes
1 answer

Android Launcher Icon - are my default / mdpi resources redudant?

I'm new to Android development (using Mono for Android), I've read this, this this and a some other questions here on SO but I'm not sure on how to provide all necessary Icon files for my application. From the template project, the IDE created for…
Eduardo Coelho
  • 1,953
  • 8
  • 34
  • 60
4
votes
3 answers

Same DPI but different inch size

I know the Internet is overwhelmed with questions about DPI px inches and so on. But after several hours of googling my situation doesnt seem to happen to anyone else! I have 2 devices custom build with android studio which are both mdpi. BUT one…
Fosa
  • 457
  • 1
  • 5
  • 17
4
votes
0 answers

Android image that can support both 5.4" FWVGA mdpi and 3.2" QVGA mdpi?

I know that you have to put images for medium density devices in drawable-mdpi folder. But the image that look perfect for 3.2" mdpi devices looks small for 5.4" mdpi device. How can I resolve this.
Mihir
  • 2,064
  • 2
  • 21
  • 28
4
votes
2 answers

Android, mdpi density but different screens

I am working on an application that will run on multiple devices. I have three devices for testing. HTC Desire S -- 480 x 800 pixels, 3.7 inches (~252 ppi pixel density) Samsung P6200 Galaxy Tab 7.0 Plus -- 600 x 1024 pixels, 7.0 inches (~170…
MA1
  • 2,767
  • 5
  • 35
  • 51
3
votes
1 answer

How to force android choose the right layout for the screen sizes supported?

I'm trying to support all kind of screens on my project. I added the the respective graphics in the folders-drawables(ldpi,mdpi,Hdpi,xhdpi,xxhdpi),, And also the layouts folders(layout-small,layout,layout-large,layout-xlarge,layout-xxlarge). Here is…
Chapo
  • 31
  • 1
  • 7
2
votes
1 answer

Programmatically find best-matching resource at runtime

Is it possible to find the best-matching resource Programmatically at run-time ? For example I have some device that have screen properties that makes perfect match for layout-normal-mdpi. How can I, at run time, read that that specification ? For…
Lukap
  • 31,523
  • 64
  • 157
  • 244
2
votes
3 answers

Android layout mdpi phone vs tablet

I'm developing an Android app (API 11+) and I want to support multiple screen size and densities, my project has different density folders to provide drawable resources (mdpi, hdpi, xhdpi and xxhdpi) and different layout folders with qualifiers…
Istigar
  • 221
  • 1
  • 3
  • 5
2
votes
1 answer

165 ppi resolution device comes under mdpi or hdpi

I have device Display Resolution of 320*480,3.5 inch. So its diagonal resolution is 165 ppi. So this device comes under mdpi or hdpi? In multiple support screen document a table shows the category but, ~160 means minimum 160 0r maximum 160. From…
Ramprasad
  • 7,981
  • 20
  • 74
  • 135
1
vote
1 answer

How do I scale graphics properly for an Android phone app moving to 3.x

Situation I have an app that I have been developing with Froyo as the target and I have followed all the best practise guidelines (dp for sizes, sp for text, 9-patch drawables, no absolute layouts e.t.c.). My layout xmls are in the default layout…
Don Diego
  • 11
  • 1
1
vote
2 answers

Galaxy S screen DPI

I am developing and testing an android application on my Galaxy S device, which should be (according to the android dev site) a normal size screen (4 inch) with HDPI (233dpi). For some reason, drawables that I put in drawable-mdpi are shown instead…
Ran
  • 1,089
  • 1
  • 12
  • 30
1
vote
2 answers

Android: Optimize for high-dpi devices only but still support (small- and) medium-dpi screens

I'm building a game with graphic assets in hdpi resolutions (hence I put the files in drawable-hdpi directory). I don't want to have a corresponding mdpi resolution of the images, and I will code everything in 240-dpi based pixel coordinates. Is it…
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
1
vote
0 answers

10'' tablet 1280x800 with MDPI screen reads values data from values-sw800dp-xhdpi instead of values-sw800dp-mdpi?

I just want to admit that there are folder for landscape for the both devices as well called values-sw800dp-land-mdpi and values-sw800dp-land-xhdpi. The other two folders are for Portrait orientation. Android version 4.0.3.
Fireball
  • 41
  • 6
1
vote
2 answers

Android icons for different displays and screen densities

I'm completely confused to the core reading various articles to understand to get my app to fit in to different screen sizes. basically the issue i am having is to have a logo fit in to screens with different screen densities. I've got an image with…
Mr.Noob
  • 1,005
  • 3
  • 24
  • 58
1
vote
1 answer

why in Android 1024x600 is considered as mdpi?

I'm new with Android, and i don't know why android consider 1024x600 as mdpi, in my application i'm using some images, and there is no drawable folder for the 1024x600
EssaidiM
  • 7,924
  • 1
  • 18
  • 22
1
vote
3 answers

how to distinguish two different android mdpi phones

Im trying to write app witch will look similar on all (or most) android phones. I have a problem with two phones: Samsung Galaxy Ace 2 and Samsung Galaxy mini 2. Layout that takes whole screen in galaxy ace is too large for galaxy mini. First I…
1
2 3 4