Folder for Android for large screens

I have images in drawable-hdpi (large images) and in drawable-mdpi (small images)

I opened the application on Kindle fire (its layout from the layout is large) and it uses images from drawable-mdpi, is there any way to allow the application to get images from drawable-hdpi when the screen size is large?

thank

+5
source share
3 answers

I think you are looking to use configuration qualifiers.

You don't seem to understand what these folders are doing. Your Android will choose a folder based on screen size or pixel density.

Kindle Fire . , res .

/ /my _layout.xml

res/drawable-mdpi/my_icon.png

, Kindle hdpi, .

,

res/drawable-large-mdpi/ 

Kindle Fire.

, .

.: 3.2.

, , . , (: 5 " 7" - , ). dp 3.2. . developer.android.com/guide/practices/... -

+12

Android.

, drawable-large, 3.2 .

, :

res/drawable-sw600dp-mdpi

sw600dp represents the smallest width available to the activity in density-independent pixels, 600dp in this case. This is deemed as being a little more fitting for device-specific layouts and drawables as the width is provided instead of a generalized size grouping such as large`.

, :

+4

All qualifiers are processed in the order in which they appear in Table2 .

Read How Android Names the Best Match Resource .

+3
source

All Articles