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
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" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With