I want to provide the same image resources / drawings for both drawable-xlarge-mdpi and drawable-sw600dp-mdpi.
It seems the only way to do this is to create two folders under res / and copy the same set of resources to each folder.
With layouts, we can do smoothing. That is, by creating a file called layout.xml in the values ββfolder with specific qualifiers and adding elements to indicate one layout file for both determinants:
- Values-XLarge \ values.xml
- Values-sw600dp \ values.xml
The contents of both files will look something like this:
<?xml version="1.0" encoding="utf-8"?> <resources> <item name="activity_shows" type="layout">@layout/activity_shows_tablet</item> </resources>
(Devices matching xlarge or devices matching sw600dp will now use activity_shows_tablet.xml as the layout file for "activity_shows")
Is there a similar approach for drawings?
Npike source share