[英]where to put stuffs(icons, color, stencils in .rar file) downloaded from official android developers site in ecplise
I'm pretty new to android. 我对android很新。 I stuck at a point where I need to add a downloaded .rar file for icons, stencils and color swatches into Eclipse (the RAR file has been downloaded from official android developer site.here is the link ).
我陷入了一个需要将图标,模板和色板的下载.rar文件添加到Eclipse中的点(RAR文件已从官方android开发者网站下载。这是链接 )。
Is there any way to directly copy and paste in ADT bundle root folder and use it or we have to do it by copying and pasting into the drawable folder each of the required itens? 有没有办法直接复制和粘贴ADT捆绑根文件夹并使用它或我们必须通过复制并粘贴到drawable文件夹中的每个所需的itens?
Put it in the "res" folder of your android project. 把它放在你的android项目的“res”文件夹中。 Just drag and drop (or copy past) an image in the "drawable" folder.
只需在“drawable”文件夹中拖放(或复制过去)图像即可。
You have to do that for each item. 您必须为每个项目执行此操作。
If you have different size for an image you can put the ressources of your image in those folders: "drawable-hdpi", "drawable-ldpi" and "drawable-mdpi". 如果图像的大小不同,可以将图像的资源放在这些文件夹中:“drawable-hdpi”,“drawable-ldpi”和“drawable-mdpi”。
Each folder represent a screen size for your device. 每个文件夹代表您设备的屏幕尺寸。 Note that each ressource must have the same name (Eclipse should manage it).
请注意,每个资源必须具有相同的名称(Eclipse应该管理它)。
You can do it for all the images by copying the images CTRL + C then in Eclipse select drawable(hpdi,...) folder, right click -> Paste 您可以通过复制图像CTRL + C然后在Eclipse中选择drawable(hpdi,...)文件夹,右键单击 - >粘贴,对所有图像执行此操作
Or 要么
1 - Extract the RAR file 1 - 提取RAR文件
2 - Store the contents of the extracted folder in ZIP format 2 - 以ZIP格式存储解压缩文件夹的内容
3 - Right click (the project) -> import -> General -> Archive File 3 - 右键单击(项目) - >导入 - >常规 - >存档文件
4 - Move the imported content to the required res folder (drawable ,drawable-hpdi,...) 4 - 将导入的内容移动到所需的res文件夹(drawable,drawable-hpdi,...)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.