views:

43

answers:

1

I have some images in my drawable folder and they have landscape versions in drawable-land. However I want some of the landscape images to be shared, as it seems a waste to duplicate the file with a different name. Is it possible to make a sym link (shortcut) or something for one of the duplicated files to prevent wasting space

Folder explanation below as I'm not great at explaining myself:

/drawable 
> image1.png
> image2.png 
/drawable-land
>image1.png  <-- This image
>image2.png  <-- is identical to this file
+5  A: 

Insead of image2.png you can definde image2.xml with following contents (obviously, place it at landscape folder):

<bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/image1" />
Konstantin Burov
Brilliant, should have thought of using xml. Thanks!
stealthcopter