1
votes

we know that the drawable scale factor for hdpi, xhdpi and ldpi. ie., hdpi=1.5*mdpi, xhdpi=2*mdpi and ldpi=.75*mdpi.

But what I need is the scale factor for "drawable-large-mdpi" & "drawable-xlarge-mdpi". Because I need to design UI for 7" and 10" tablet. Please provide the scale factor for drawable-large-mdpi & drawable-xlarge-mdpi.

2

2 Answers

0
votes

The large and xlarge factors don't have a scale factor. You create a new design for them. You should see it like this:

  • there are 4 different device sizes atm: small, normal, large, xlarge.
  • Every device size has multiple scale factors atm these are: ldpi, mdpi, hdpi, xhdpi

These "Buckets" are changing when screens and device sizes change. I think i read something about the factor xxhdpi yesterday.

You can read more about this subject over here: http://developer.android.com/guide/practices/screens_support.html

0
votes

The scale factors for drawable-large-mdpi and drawable-xlarge-mdpi have the same scale factor as mdpi. The large and xlarge identifiers specify the screen size.

According to Android - Supporting Multiple Screens:

xlarge screens are at least 960dp x 720dp
large screens are at least 640dp x 480dp
normal screens are at least 470dp x 320dp
small screens are at least 426dp x 320dp

You should only use the density qualifiers for your drawables, by providing them for each density. The screen size qualifiers should be used to specify for what screen sizes your layout is suitable.

For example res/drawable-mdpi/my_icon.png provides an icon for a 'medium' density and res/layout-large/my_layout.xml provides a layout for a 'large' screen.