2014-10-11 78 views

回答

0

您不能在资源目录中创建子目录。例如,res/drawable-hdpi/可以保存图像,但不包含图像的目录。

assets/可以有任何你想要的目录结构。

+0

所以要澄清,我可以有res/assets/images吗?当我尝试在xml布局查看器中使用它们时,它们似乎不被识别? – Bushes 2014-10-11 20:50:04

+0

@Bushes:“我可以拥有资源/资产/图片吗?” - 不,因为没有名为'res/assets /'的资源类型。你可以将一个'assets /'目录作为'res /'的同位体。资产不是资源。 – CommonsWare 2014-10-11 20:52:01

+0

对不起,我打算说res/drawable/assets/images – Bushes 2014-10-11 22:59:57

相关问题