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
0
votes
1 answer

I have a image in layout and i generate xdpi,hdpi etc but my layout show error

layout show error and images also does not show when i open it in android package: what is happening I don't know
sdevis
  • 31
  • 6
0
votes
1 answer

android picks wrong image from drawable folder

My sample app has these res folders: drawable-hdpi drawable-ldpi drawable-mdpi drawable-xhdpi drawable-xxhdpi In each folder, I have a display.png which shows which folder is from. I tested my app on my mi max phone which has a density of…
max
  • 5,963
  • 12
  • 49
  • 80
0
votes
0 answers

Image Scaling Issue using MDPI

I am creating a app using Multiple screen support. I am little confused while going through the MDPI resolutions. I came across several resolutions on MDPI. Can anyone tell me what is the exact and proper MDPI resolution needs to be used for image…
NatheemYousf
  • 97
  • 1
  • 2
  • 11
0
votes
1 answer

android: image in different devices

I want to insert images in my android application, first I will be create the images with photoshop then insert it in the projetct. I have a problem in the size of the images: how convert dpi to width and height in…
0
votes
2 answers

drawable-mdpi folder for handsets and tablets

I am developing an Android application for handsets and tablets. I have images in drawable-mdpi folder for handsets, I have an mdpi tablet that gets resources from drawable-mdpi. How can I make difference between mdpi handsets and mdpi tablets?
Najoua Mahi
  • 304
  • 3
  • 16
0
votes
1 answer

do i have to be specific with hdpi and mdpi?

my app is choosing to show mdpi images over there hdpi twins on tablets, unless the mdpi images are removed, then it will gladly use my hdpi images. ive read the docs and other posts and ive tried adding the line;…
martinseal1987
  • 1,862
  • 8
  • 44
  • 77
0
votes
2 answers

Scaling ratio in Android 3:4:6:8

I would like to understand What is the scaling ratio for xxhdpi? ldpi = 3 mdpi = 4 hdpi = 6 xhdpi = 8 xxhdpi = ?
user3103823
  • 135
  • 1
  • 3
  • 13
0
votes
1 answer

Error with ImageView size in Android

I have some image files, which are to be used in Android in ImageViews. Now for MDPI. I created new ImageViews, but the IDE make them smaller than I need, so for MDPI I have a smaller image. How can I return the normal size image? If change manually…
user2543953
  • 123
  • 1
  • 3
  • 11
0
votes
2 answers

Quickly Change Resource Resolutions

Are there any programs out there to upload a bunch of Android resources to and it will change the image's dimensions according to hdpi and mdpi? I have about 50 different pictures all in hdpi resolution and it would take forever to re-size them all…
Shane
  • 972
  • 2
  • 12
  • 27
0
votes
1 answer

Why 4" and 5" screen not showing images properly

I have develop a simple application and compile it with screen resolution 480*800 mdpi emulator.It shows all images perfectly placed on screen. I have added images only in drawable folder. But when i try the same application with 480*800 hdpi…
0
votes
2 answers

how to handle android different device size

I know many persons have asked this question, but I really can't get a clear answer. I am new to android, and find it's hard to have my layout work well on all different size devices.Below is the problem:(I put the sprite image in drawable-hdpi…
Charlesjean
  • 566
  • 1
  • 5
  • 16
0
votes
2 answers

I want my app to support only xlarge screens with mdpi density

I'm developing an app that only supports tablets for now. But I don't have high res photos for tablets with higher density (Like latest Asus tablet with ~230 dpi, 1920X1200, I think it's called TF700T or something like this), and I don't want to…
Elad92
  • 2,471
  • 4
  • 22
  • 36
0
votes
2 answers

MDPI to HDPI SystemUI.apk porting

I'm trying to port an MDPI SystemUI.apk to HDPI. I've decompiled the file, added the line - to AndroidManifest.xml, and also I've made drawable-hdpi folder with required images, but still it is…
0
votes
1 answer

android : in application only images from ldpi are showing

I have my android application. For test i situate 3 different images in folders drawable-ldpi, drawable-mdpi and drawable-hdpi. They have the same names. I have read that: 240x320 - ldpi, 320x480 - mdpi, 480x800 - hdpi. I test my app on my device…
yital9
  • 6,544
  • 15
  • 41
  • 54
0
votes
1 answer

Should I create resized images for all drawable folders (ldpi-mdpi-hdpi) if the image is the same?

If the image is the same but only resized, should I create (resize) all the images? Or let the system resize the images for me and only ship the app with hdpi images? For me it makes sense to create new images if the images are different, for…
Héctor Júdez Sapena
  • 5,329
  • 3
  • 23
  • 31