Sometimes, you wish to put some placeholders to be shown only on the IDE, in layout files.
As an example, you can use this:
<
On my side I tried to use a image file as a placeholder for an Imageview using tools:src="...": I did put my PNG file in a sampledatasubdirectory but it either wouldn't show or appear as a broken image.
After a bit of fiddlings I found something that fixed my issue:
sampledata subdirectory named: drawableimage.png -> image_drawable.pngOnly then did the placeholder showed up.
You can create subdirectories from drawable as you see fit to keep your sample images organized, but the important thing seems to be that drawable remains a parent directory.
I do not have any documentation or sources to back me up, but I figure it could be useful for other in the same situation.