简体   繁体   中英

where to put stuffs(icons, color, stencils in .rar file) downloaded from official android developers site in ecplise

I'm pretty new to 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 ).

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?

Put it in the "res" folder of your android project. Just drag and drop (or copy past) an image in the "drawable" folder.

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".

Each folder represent a screen size for your device. Note that each ressource must have the same name (Eclipse should manage it).

You can do it for all the images by copying the images CTRL + C then in Eclipse select drawable(hpdi,...) folder, right click -> Paste

Or

1 - Extract the RAR file

2 - Store the contents of the extracted folder in ZIP format

3 - Right click (the project) -> import -> General -> Archive File

4 - Move the imported content to the required res folder (drawable ,drawable-hpdi,...)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM